Page 1 of 1

rtsp/sdp as source

Posted: Wed Jan 24, 2007 12:47 pm
by micw
Hi,

I've searched the web and forum without success: is it possible to use a rtsp/sdp server as "remote camera"?
The reason is that i have a lan camera which is accessible in 3 ways: rtsp, jpeg and an activex control.
I can run mplayer on the rtsp access (it used ffmpeg) and i have 24fps.
I can use ZoneMinder with the jpeg image but then i get only 1 fps.

So i'm looking for a way to use the rtsp server as ZoneMinder monitor.

Michael.

Posted: Thu Feb 01, 2007 11:40 am
by zoneminder
Currently this is not possible. However it is something I am looking into. I _think_ that ffmpeg can capture from rtsp sources but I have not got it to work reliably yet. If I can get ffmpeg to do it, then I should be able to apply the same thing to ZM.

Posted: Fri Feb 02, 2007 6:33 am
by micw
Thank you for your reply. I'm very sure that ffmpeg can capture rtsp because i simply can run "mplayer rtsp://cam1/live.sdp" to view the cam's output.

Here's the mplayer output when i do this. maybe it helps a bit:

Code: Select all

$ mplayer rtsp://cam1/live.sdp
MPlayer 1.0rc1-rpm.livna.org-4.1.1 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) D CPU 3.00GHz (Family: 15, Model: 6, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing rtsp://cam1/live.sdp.
Resolving cam1 for AF_INET6...
Couldn't resolve name for AF_INET6: cam1
Resolving cam1 for AF_INET...
Connecting to server cam1[192.168.100.160]: 554...
A single media stream only is supported atm.
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp://cam1/live.sdp
Stream not seekable!
 file format detected.
Initiated "video/MP4V-ES" RTP subsession on port 32786
Initiated "audio/MPEG4-GENERIC" RTP subsession on port 32788
demux_rtp: Guessed the video frame rate as 5 frames-per-second.
        (If this is wrong, use the "-fps <frame-rate>" option instead.)
VIDEO:  [mp4v]  0x0  0bpp  5.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 32000 Hz, 2 ch, s16le, 128.0 kbit/12.50% (ratio: 16000->128000)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
[mpeg4 @ 0x39e90de690]header damaged
Error while decoding frame!
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)         
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 640x480 => 640x480 Planar YV12 

Posted: Thu Jun 14, 2007 3:18 pm
by wilso027
Phil would it be possible to use something like
http://www.live555.com/openRTSP/

to convert the feed for you. It looks like it is doing what you need but I'm not sure if it is the right format.

I just got in some Grandstream GXV-3000 Video phones at the office that support rtsp video streaming and it would be a cool feature to add.

Let me know if I can do anything to help.

Allan

Posted: Wed Aug 15, 2007 5:00 pm
by rakhbari
zoneminder wrote:Currently this is not possible. However it is something I am looking into. I _think_ that ffmpeg can capture from rtsp sources but I have not got it to work reliably yet. If I can get ffmpeg to do it, then I should be able to apply the same thing to ZM.
Hi there,

I've got the exact same issue. I have an IP camera that uses MJPEG for its streaming, but using the RTSP protocol and not plain HTTP. I was just wondering if there's been any progress on this in ZM?

Thanks in advance,

Ramin
:)