AVTECH AVR760 + OpenRTSP + FFplay ... need help please!

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
skumpic
Posts: 2
Joined: Mon Feb 16, 2009 9:47 am

AVTECH AVR760 + OpenRTSP + FFplay ... need help please!

Post by skumpic »

Hi i'm a new user and i'm trying to setup a basic system using my dvr (an avtech avr 760) and my pc (equipped with ubuntu 8.04.1 Hardy Heron).

When i try to access the direct stream of my camera at rtsp://admin:pass@192.168.2.11/live/mpeg4 with FFMPEG i get some error (Error while parsing header ), and i'm not able to play the stream also using vlc, totem (they all complain that are unable to open the stream or that there is nothing to play)....

Only Mplayer open and play the stream but after a while (10 min usually) it hangs. The stream is in MPEG4 and on windows the camera use an activeX control to start working in my browser.

Then i saw this post:
http://www.zoneminder.com/forums/viewto ... t=openrtsp
At this moment i see some problems with the rtsp code as used in ffmpeg.

best solution to use rtsp camera's at the moment is the openRTSP work around:
1. create a pipe ( f.e. mkpipe /tmp/pipes/achterterrein.pipe )
2. change owner of pipe to the user you use for running zoneminder (f.e. chown nobody /tmp/pipes/achterterrein.pipe )
3. use the path to the pipe as input path for the camer, enter camera ip en port number dummy values.
4. start openRTSP to stream video to the pipe

I put my openRTSP commands in the inittab, so they are automatically restarted, check your own camera's so your buffer is large enough:
g1:3:respawn:/usr/bin/openRTSP -t -b 40000 -v rtsp://x.x.x.x/mpeg4/media.amp > /tmp/pipes/achterterrein.pipe
g2:3:respawn:/usr/bin/openRTSP -t -b 100000 -v rtsp://x.x.x.x/live.sdp > /tmp/pipes/mpeg4.pipe
g3:3:respawn:/usr/bin/openRTSP -t -b 100000 -v rtsp://x.x.x.x/live.sdp > /tmp/pipes/lesruimte.pipe


With this work around I have al my rtsp cameras working like a charm. With openRTSP you can also add username and password [-u <username> <password>].

camera's working for me at the moment:
axis 2120, http://x.x.x.x/mjpg/video.mjpg?resoluti ... ps=5&.mjpg
axis 2110, http://x.x.x.x/mjpg/video.mjpg?resoluti ... &fmt=.mjpg
axis 2100, http://x.x.x.x/mjpg/video.mjpg?resolution=640x480&.mjpg
axis 210, rtsp://x.x.x.x/mpeg4/media.amp best via openRTSP workaround
Mobotix M1, http://x.x.x.x/cgi-bin/faststream.jpg?.mjpg
Abus T7204 & T7203, rtsp://x.x.x.x/live.sdp best via openRTSP workaround
Sony SNC-M3W, http://x.x.x.x/img/video.asf
AVTECH AVI203 h264 cam, rtsp://x.x.x.x/live/h264 best via openRTSP workaround

Hope this helps
regards,
Gert-Jan
So i tried openRTSP.
I got really surprised as openRTSP save a perfect MPEG4 stream in my /tmp folder and then i can play it with ffmplay without problem!

My only doubt is about the file size. The saved MPEG4 stream grow really fast (5 min are about 150mb) and will fill up completely my harddisk in 1 or 2 days. The system is up 24/7 so the /tmp directory will never emptied automatically at reboot.
Noone had the same issue? How is possible to solve it?

Thanks in advance and sorry for my poor english
Skumpic
andresurzagasti
Posts: 1
Joined: Wed Apr 29, 2009 4:23 am
Location: Reconquista, SF, AR

Where I can get openRTSP?

Post by andresurzagasti »

Hi everyone!

I have CENTos 5.2
I cannot get to download, openRTSP. I have searched trough yum at RPMForge and anothers, but nothing found.

At the page www.live555.com/openRTSP , the "Source code" for openRTSP points to http://www.mplayerhq.hu/homepage/dload.html

This link is not working (404 Page not found)

Have some alternate link?

Thanks and regards,
Andres
miahac
Posts: 1
Joined: Sat Aug 22, 2009 7:55 pm
Location: Wichita KS

Post by miahac »

We host servers in our Downtown Wichita, KS Data Center
Post Reply