It supports MPEG4/MJPEG RTSP streaming, so i'm trying to convert the RTSP stream to rawvideo to use it with Zoneminder.
I'm trying to decode the RSTP stream with ffmpeg without success.
I can succesfully view the RTSP stream with MPlayer on Windows, and also i can succesfully decode the RTSP stream with MPlayer on Linux (don't mind the X11 error). See output:
Code: Select all
C:\MPlayer\MPlayer-1.0rc2>mplayer rtsp://admin:admin@192.168.1.221/live/m
MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1.73GHz (Family: 6, Model: 13, Stepp
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Playing rtsp://admin:admin@192.168.1.221/live/mjpeg.
Connecting to server 192.168.1.221[192.168.1.221]: 554...
librtsp: server responds: 'RTSP/1.0 401 Unauthorized'
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp://admin:admin@192.168.1.221/live/mjpeg
Stream not seekable!
file format detected.
Initiated "video/JPEG" RTP subsession on port 4138
demux_rtp: Guessed the video frame rate as 30 frames-per-second.
(If this is wrong, use the "-fps <frame>" option instead.)
VIDEO: [MJPG] 0x0 0bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
=========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
=========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [directx] 640x480 => 640x480 Planar YV12
V: 1.4 42/ 42 9% 1% 0.0% 0 0
Exiting... (Quit)
C:\MPlayer\MPlayer-1.0rc2>
Code: Select all
root@videoserver:~# mplayer rtsp://admin:admin@192.168.1.221/live/mjpeg
MPlayer 2:1.0~rc1-0ubuntu13.2 (C) 2000-2006 MPlayer Team
CPU: Dual-Core AMD Opteron(tm) Processor 1210 (Family: 15, Model: 67,
Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
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://admin:admin@192.168.1.221/live/mjpeg.
Resolving 192.168.1.221 for AF_INET6...
Couldn't resolve name for AF_INET6: 192.168.1.221
Connecting to server 192.168.1.221[192.168.1.221]: 554...
librtsp: server responds: 'RTSP/1.0 401 Unauthorized'
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp://admin:admin@192.168.1.221/live/mjpeg
Stream not seekable!
file format detected.
Initiated "video/JPEG" RTP subsession on port 32770
demux_rtp: Guessed the video frame rate as 30 frames-per-second.
(If this is wrong, use the "-fps <frame>" option instead.)
VIDEO: [MJPG] 0x0 0bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
vo: couldn't open the X11 display ()!
Error opening/initializing the selected video_out (-vo) device.
Exiting... (End of file)
root@videoserver:~#
Code: Select all
root@videoserver:~# ffmpeg -i rtsp://admin:admin@192.168.1.221/live/mjpeg
FFmpeg version SVN-r12774, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration:
libavutil version: 49.6.0
libavcodec version: 51.54.0
libavformat version: 52.13.0
libavdevice version: 52.0.0
built on Apr 9 2008 16:36:53, gcc: 4.1.3 20070929 (prerelease)
(Ubuntu 4.1.2-16ubuntu2)
rtsp://admin:admin@192.168.1.221/live/mjpeg: Error while parsing header
Thank you i.a.
aNt1X