How to add camera "Axis M3204"

Forum for questions and support relating to the 1.24.x releases only.
Locked
peterchenkai
Posts: 4
Joined: Thu Oct 21, 2010 9:37 am

How to add camera "Axis M3204"

Post by peterchenkai »

Hi, I tried to add new monitor which is Axis M3204. But failed.

Does anyone know how to add this type camera?

I have try this, but not work:
Remote protocol: RTSP
Remote method: RTP/RTSP
Remote host name: <userID>:<password>@<ip>
Remote host port: 554
Remote host path: /axis-media/media.amp

I have also tried HTTP configuration, neither can work.
Remote protocol: HTTP
Remote method: simple
Remote host name: <userID>:<password>@<ip>
Remote host port: 80
Remote host path: /axis-cgi/mjpg/video.cgi or [ /view/viewer_index.shtml ]

Thanks!
Pada
Posts: 69
Joined: Fri Jul 30, 2010 12:29 am

Post by Pada »

Try Source Type = Ffmpeg
Source Path = rtsp://<userID>:<passw>@<ip>:554/axis-media/media.amp

BTW, I would suggest that you try and play from that URL using Mplayer or VLC first (if you have a Desktop installation that is).
peterchenkai
Posts: 4
Joined: Thu Oct 21, 2010 9:37 am

Post by peterchenkai »

Thanks Pada

I tried the url rtsp://root:password@192.168.0.199:554/axis-media/media.amp in my VLC player. That works.

But it does not work in my zoneminder (ffmpeg/monitor mode)

Is there anything else I can do?
Pada
Posts: 69
Joined: Fri Jul 30, 2010 12:29 am

Post by Pada »

Can you stream to VLC using ffmpeg like follow:

Code: Select all

ffmpeg -i rtsp://root:password@192.168.0.199:554/axis-media/media.amp -f asf -r 25 -b 150000 - | vlc -
Where asf is the output format, 25 is the framerate and 150000 is the bitrate.

If that works, then ZoneMinder capturing is also supposed to work.

Did you compile ZoneMinder and FFmpeg from source? It could be that your ZM doesn't have FFmpeg support, which would be strange.
BTW: what distro & version of ZM are you using?
peterchenkai
Posts: 4
Joined: Thu Oct 21, 2010 9:37 am

Post by peterchenkai »

No, I can't view video through the code you write.

It shows
[NULL @ 0x8c4ba10]non-existing PPS referenced
[H264 @ 0x8c4ba10]non-existing PPS referenced

The VLC popped up, but no video.

I use Ubuntu 10.04, zm 1.24.2, build from source.
configure --with-webdir=/var/www/zm --with-cgidir=/var/www/cig-bin --with-webuser=atv --with-webgroup=atv ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=atv ZM_DB_PASS=password

I have ffmpeg also.
Pada
Posts: 69
Joined: Fri Jul 30, 2010 12:29 am

Post by Pada »

Just take note that the default Ubuntu installation wiki's does not show you how to compile x264 support with FFmpeg!
I'd reckon that this is your problem here: that your FFmpeg doesn't have libx264 support.

This thread might be helpful: http://ubuntuforums.org/showthread.php?t=786095
I've also posted in that thread on how to compile it on Ubuntu 10.10 x64: http://ubuntuforums.org/showpost.php?p= ... count=1356
bb99
Posts: 943
Joined: Wed Apr 02, 2008 12:04 am

Post by bb99 »

Pada
Posts: 69
Joined: Fri Jul 30, 2010 12:29 am

Post by Pada »

This user contribution topic might also be worth looking at: Matroska (.mkv) Event Storage + Axis RTSP/H264 fixes
peterchenkai
Posts: 4
Joined: Thu Oct 21, 2010 9:37 am

Post by peterchenkai »

Thanks for your help.

Now, I found I can view from simple http/mjpg format, but cannot from rtsp format. I have failed with ffmpeg either.
Locked