Page 1 of 1

Axis M3007

Posted: Thu Nov 21, 2013 12:06 pm
by pointdee
We recently acquired an Axis M3007 (I would provide a link but the forum doesn't like off-site links for new users) and after a bit of hacking around I think I’ve got all the features to work.

First off – This device has 4 fixed views and 4 variable views. The 4 fixed views are listed below along with their Remote Host Path for the Source tab of ZM
Overview - /mjpg/video.mjpg or /mjpg/1/video.mjpg
Panorama - /mjpg/video.mjpg?camera=2 or /mjpg/2/video.mjpg
Double Panorama - /mjpg/video.mjpg?camera=3 or /mjpg/3/video.mjpg
Quad - /mjpg/video.mjpg?camera=4 or /mjpg/4/video.mjpg

The 4 variable views are listed below along with their Remote Host Path for the Source tab of ZM
Feed 1 - /mjpg/video.mjpg?camera=5 or /mjpg/5/video.mjpg
Feed 2 - /mjpg/video.mjpg?camera=6 or /mjpg/6/video.mjpg
Feed 3 - /mjpg/video.mjpg?camera=7 or /mjpg/7/video.mjpg
Feed 4 - /mjpg/video.mjpg?camera=8 or /mjpg/8/video.mjpg

These variable feeds also have PTZ controls and apart from the normal stuff to make PTZ work these require an additional parameter to identify the feed so this is what I’ve done

Used the Control Device field in the Control Tab to add:-
&camera=5 (For Feed 1)

In the Control Address field enter:-
user:pass@ipaddress:80

and changed this line in sendCmd subroutine of AxisV2.pm from:-
Please note I've had to reverse the slashes in this code to fool the off-site links filter

Code: Select all

my $req = HTTP::Request->new( GET=>"http:\\".$self->{Monitor}->{ControlAddress}."$cmd" );
to

Code: Select all

my $req = HTTP::Request->new( GET=>"http:\\".$self->{Monitor}->{ControlAddress}."$cmd".$self->{Monitor}->{ControlDevice} );
Does anyone see a problems with this approach? This is the only Axis PTZ camera I have access to so can't test whether it would affect other models but I can't see why changing that line in the control module would have an adverse effect

Thanks

Re: Axis M3007

Posted: Thu Jan 16, 2014 3:02 pm
by raymonvdm
I also got one of these camera`s but i cannot get any video feed from it using the settings you provide. However i can open the url in VLC so the camera seems ok. It has something to do with ZoneMinder

Re: Axis M3007

Posted: Thu Jan 16, 2014 5:05 pm
by pointdee
You may have already come across this but there's slightly more info at the bottom of http://www.zoneminder.com/wiki/index.php/Axis

On top of that I've had to turn the resolution down to 800 or less for the image width IIRC. I'm not in s position to look at this until tomorrow but it might be worth a try. I should probably update the wiki as well if this appears to be true for you