[MPlayer-users] Startup latency and AV sync problems with RTSP stream from VLC through SDP file

Nico Sabbi nsabbi at tiscali.it
Mon Nov 15 11:24:33 CET 2004


Selwyn Tang wrote:

> Hi all,
>
> I am trying to playback an rtsp stream (udp multicast) of mpeg2 ts 
> from a vlc server described in an sdp file. But there are problems 
> with the startup latency and AV sync.
>
> Mplayer holds for a very long time in:
>     PROBING UP TO 2000000, PROG: 0
> before playing back. Then the A/V sync are seriously out of mind, 
> cumulating too many audio or video packets in the buffer, and 
> eventually causing mplayer to quit itself.
>
> To work around the problems, I tried starting two mplayer processes, 
> one with "-nosound" and the other "-novideo". The result was 
> acceptable, but there were frequent broken macroblocks.
>
> Does mplayer support such rtsp stream from vlc? Is there a better way 
> to playback the stream?
>
> Selwyn
>

I haven't been able to definitively solve this problem yet; a temporary 
workaround is to raise the
values of MAX_PACKS and MAX_PACK_SIZE (e.g. 4096000 and 0x8000000) then 
recompile and retry,
but the best way would be to use TS over RTP (not RTSP) and use

$ mplayer rtp://ip:port

    Nico




More information about the MPlayer-users mailing list