[vlc] Re: [streaming] [OT] RTSP playing using mplayer

Ow Mun Heng Ow.Mun.Heng at wdc.com
Mon Sep 19 08:32:54 CEST 2005


On Mon, 2005-09-19 at 11:22 +0800, Ow Mun Heng wrote:
> Has anyone here been successful in getting mplayer to work rtsp streams
> properly? I hit it with both mpg and avi streams (using VLM and VOD) and
> it keeps getting dropped frames and all that. I've tried various other
> -vo(videoout) and -ao (audio out). (vlc works fine though)
> 
> Mplayer is compiled with live.com support. 
(Updated live.com code to 2005.08.26 (not the latest and greatest)

> 
> Mplayer is version mplayer-1.0_pre7
> 
> The streams keeps jerking and dropping frames and all that.
> 
> Does anyone know any streams available on the Internet which I can test
> mplayer and vlc with? (


Here are the logs when ran from the command line with. Also note that it
says "not a Realmedia rtsp url"

Anyone have any clue??

$mplayer -v rtsp://url 

onnecting to server 192.168.10.100[192.168.10.100]:5554 ...
rtsp_session: Not a Real server. Server type is 'VLC Server'.
Not a Realmedia rtsp url. Trying standard rtsp protocol.
Connected to server: 192.168.10.100
This stream is non-cacheable
Stream not seekable!
Sending request: DESCRIBE rtsp://192.168.10.100:5554/test2 RTSP/1.0
CSeq: 1
Accept: application/sdp
User-Agent: MPlayer (LIVE.COM Streaming Media v2005.08.26)
Received DESCRIBE response: RTSP/1.0 200 OK
Content-type: application/sdp
Server: VLC Server
Content-Length: 297
Cseq: 1
Cache-Control: no-cache


Need to read 297 extra bytes
Read 297 extra bytes: v=0
o=- 1127111223429873 3 IN IP4 127.0.0.1
t=0 0
a=tool:vlc 0.8.2
c=IN IP4 0.0.0.0/0
a=range:npt=0-31.940
m=video 0 RTP/AVP 32
a=rtpmap:32 MPV/90000
a=control:rtsp://0.0.0.0:5554/test2/trackid=0
m=audio 0 RTP/AVP 14
a=rtpmap:14 MPA/90000
a=control:rtsp://0.0.0.0:5554/test2/trackid=1

Initiated "video/MPV" RTP subsession
Increased video socket receive buffer to 2000000 bytes 
Sending request: SETUP rtsp://0.0.0.0:5554/test2/trackid=0 RTSP/1.0
CSeq: 2
Transport: RTP/AVP;unicast;client_port=32882-32883
User-Agent: MPlayer (LIVE.COM Streaming Media v2005.08.26)


Received SETUP response: RTSP/1.0 200 OK
Transport: RTP/AVP/UDP;client_port=32882-32883
Server: VLC Server
Content-Length: 0
Cseq: 2
Cache-Control: no-cache
Session: 247900370

Initiated "audio/MPA" RTP subsession
Increased audio socket receive buffer to 111616 bytes 
Sending request: SETUP rtsp://0.0.0.0:5554/test2/trackid=1 RTSP/1.0
CSeq: 3
Transport: RTP/AVP;unicast;client_port=32884-32885
Session: 247900370
User-Agent: MPlayer (LIVE.COM Streaming Media v2005.08.26)


Received SETUP response: RTSP/1.0 200 OK
Transport: RTP/AVP/UDP;client_port=32884-32885
Server: VLC Server
Content-Length: 0
Cseq: 3
Cache-Control: no-cache
Session: 247900370


Sending request: PLAY rtsp://192.168.10.100:5554/test2 RTSP/1.0
CSeq: 4
Session: 247900370
Range: npt=0.000-
User-Agent: MPlayer (LIVE.COM Streaming Media v2005.08.26)


Received PLAY response: RTSP/1.0 200 OK
Server: VLC Server
Content-Length: 0
Cseq: 4
Cache-Control: no-cache
Session: 247900370;timeout=5


==> Found video stream: 0
==> Found audio stream: 0
VIDEO:  []  0x0  0bpp  0.000 fps    0.0 kbps ( 0.0 kbyte/s)
Searching for sequence header... OK!
VIDEO:  MPEG1  352x288  (aspect 3)  25.000 fps  1000.0 kbps (125.0
kbyte/s)
[V] filefmt:21  fourcc:0x10000001  size:352x288  fps:25.00
ftime:=0.0400
get_path('sub/') -> '/home/gentoo/.mplayer/sub/'
get_path('default.sub') -> '/home/gentoo/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using MMX optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 44100 Hz 192 kbit Stereo, BPF: 626
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16le, 192.0 kbit/13.61% (ratio: 24000->176400)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1400x1050 with depth 24 and 32 bpp (":0.0" => local
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
Disabling DPMS
DPMSDisable stat: 1
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x00001e).
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 288 (preferred csp: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder
libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/s16le ->
44100Hz/2ch/s16le...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 44100Hz/2ch/s16le
AF_pre: 44100Hz/2ch/s16le
ao2: 44100 Hz  2 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
AO: [oss] 44100Hz 2ch s16le (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/s16le ->
44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Starting playback...
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (352x288->512x288,flags=0,'MPlayer',0x32315659)
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder
libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/s16le ->
44100Hz/2ch/s16le...
[libaf] Adding filter dummy 
[dummy] Was reinitialized: 44100Hz/2ch/s16le
AF_pre: 44100Hz/2ch/s16le
ao2: 44100 Hz  2 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 44100 Hz samplerate (requested: 44100)
audio_setup: frags:  16/16  (4096 bytes/frag)  free:  65536
AO: [oss] 44100Hz 2ch s16le (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 44100Hz/2ch/s16le ->
44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Starting playback...
VDec: vo config request - 352 x 288 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (352x288->512x288,flags=0,'MPlayer',0x32315659)
VO Config (352x288->512x288,flags=0,'MPlayer',0x32315659)
VO: [xv] 352x288 => 512x288 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 69 for hw scaling
[xv] dx: 0 dy: 0 dw: 512 dh: 288
*** [vo] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
[xv] dx: 0 dy: 0 dw: 512 dh: 288
*** [vo] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064
bytes                                                                                                        
*** [vo] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064
bytes                                                                                                        
[xv] dx: 0 dy: 0 dw: 512 dh: 288:  0.588 148/148  6%  0%  6.8% 25 0
0%                                                                                                        
[xv] dx: 0 dy: 0 dw: 512 dh: 288:  0.680 171/171  5%  0%  6.0% 44 0
0%                                                                                                        
A:   6.7 V:   0.0 A-V:  6.738 ct:  0.708 178/178  5%  0%  5.8% 50 0
0%                                                                                                        

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try -hardframedrop.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If noneVO Config (352x288->512x288,flags=0,'MPlayer',0x32315659)
VO: [xv] 352x288 => 512x288 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 69 for hw scaling
[xv] dx: 0 dy: 0 dw: 512 dh: 288
*** [vo] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064 bytes
[xv] dx: 0 dy: 0 dw: 512 dh: 288
*** [vo] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064
bytes                                                                                                        
*** [vo] Allocating mp_image_t, 352x288x12bpp YUV planar, 152064
bytes                                                                                                        
[xv] dx: 0 dy: 0 dw: 512 dh: 288:  0.588 148/148  6%  0%  6.8% 25 0
0%                                                                                                        
[xv] dx: 0 dy: 0 dw: 512 dh: 288:  0.680 171/171  5%  0%  6.0% 44 0
0%                                                                                                        
A:   6.7 V:   0.0 A-V:  6.738 ct:  0.708 178/178  5%  0%  5.8% 50 0
0%                                                                                                        

           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try -hardframedrop.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.
 of this helps you, read DOCS/HTML/en/bugreports.html.




-- 
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html



More information about the vlc mailing list