Page 1 of 1
How to add camera "Axis M3204"
Posted: Thu Oct 21, 2010 1:20 pm
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!
Posted: Thu Oct 21, 2010 2:33 pm
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).
Posted: Fri Oct 22, 2010 1:26 am
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?
Posted: Fri Oct 22, 2010 4:11 am
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?
Posted: Fri Oct 22, 2010 5:42 am
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.
Posted: Fri Oct 22, 2010 1:41 pm
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
Posted: Fri Oct 22, 2010 3:38 pm
by bb99
Posted: Fri Oct 22, 2010 4:05 pm
by Pada
This user contribution topic might also be worth looking at:
Matroska (.mkv) Event Storage + Axis RTSP/H264 fixes
Posted: Wed Nov 03, 2010 9:44 am
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.