Page 1 of 1

Help needed: Want to use camera MPEG as source (Axis 211)

Posted: Thu Jun 11, 2009 12:55 pm
by anupmankar
Hi all,

I'm trying to configure ZM to use the MPEG stream provided by an Axis 211 network camera. This camera provides an RTSP stream named rtsp://x.x.x.x:554/mpeg4/media.amp

I select camera type as FFMPEG and put the above URL in the source. After configuring the monitor, the source stays red for a very long time, needless to say there is no image in the watch window. Even when it turns yellow there is no image in the watch window.

I have tried both MPEG and JPEG options for watch but to no avail. Have been wracking my brains over this for well over 3 days now. Help please :(

Posted: Thu Jun 11, 2009 2:21 pm
by coke
Any particular reason you'd rather use MPEG instead of MJPEG? Theoretically ZM can do both as of 1.24, and there's a preset for both, with the MPEG being towards the bottom of the list. Have you tried the presets? Generally all you have to do after a preset is put add the IP address in the source tab and everything's hunky dory. Should probably name the camera on the first tab while you're at it, unless you want it to be called Monitor-#.

Actually, it's more than theory, I've tested the axis rtsp preset, and it works fine on my machine.

Posted: Fri Jun 12, 2009 7:24 am
by anupmankar
Thanks ... the preset worked. I can see the video being streamed.

But now I can see the video on only one of my zoneminder installations. I configured the same camera on another machine with the same steps but there's no capture. Need to see the debug log. Will get back if I need more help.

Thanks again.

Posted: Fri Jun 12, 2009 10:38 am
by majere
Hi All,

I'm trying to connect to a Axis 211 also but encountered problem as follows.

From the logs, it will shows that the packets are dropped.
06/12/09 18:26:56.289583 zmc_m1[-1].WAR-zm_rtp_data.cpp/57 [Discarding packet for unrecognised ssrc e10283c2]
06/12/09 18:26:56.289777 zmc_m1[-1].WAR-zm_rtp_data.cpp/57 [Discarding packet for unrecognised ssrc fdc038ba]

I'm running ZM on Debian 5 x64 with FFmpeg version SVN-r19141.

Any one has any idea what could be the issue?

Posted: Mon Jun 15, 2009 6:36 am
by anupmankar
Ok. So the preset worked for a different camera. I could configure an Axis 215 PTZ properly for MPEG streaming into Zoneminder. And I was momentarily happy.

But when I tried using the preset for the Axis 211 that I have, it failed. Here's the zm_debug log:
06/15/09 11:57:04.124481 zmc_m9[12886].DB1-zm_monitor.cpp/2260 [Got 1 monitors]
06/15/09 11:57:04.125053 zmc_m9[12886].DB1-zm_thread.cpp/240 [Creating thread]
06/15/09 11:57:04.125181 zmc_m9[12886].DB2-zm_rtsp.cpp/187 [RTSP Local SSRC is 6b8b4567]
06/15/09 11:57:04.125214 zmc_m9[12886].DB1-zm_thread.cpp/276 [Starting thread]
06/15/09 11:57:04.125401 zmc_m9[12887].DB2-zm_thread.cpp/252 [Invoking thread]
06/15/09 11:57:04.125485 zmc_m9[12886].DB1-zm_thread.cpp/297 [Started thread 12887]
06/15/09 11:57:04.126615 zmc_m9[12886].DB1-zm_monitor.cpp/338 [monitor purpose=1]
06/15/09 11:57:04.126645 zmc_m9[12886].DB1-zm_monitor.cpp/345 [mem.size=9217192]
06/15/09 11:57:04.141020 zmc_m9[12887].ERR-zm_comms.cpp/276 [connect(), errno = 111, error = Connection refused]
06/15/09 11:57:04.141389 zmc_m9[12887].FAT-zm_rtsp.cpp/208 [Unable to connect RTSP socket]
I'm no RTSP expert, so could someone decode this for me?