[MPlayer-users] mplayer+ffmpeg streaming delay
    Reimar Döffinger 
    Reimar.Doeffinger at gmx.de
       
    Sun Mar 27 11:01:42 CEST 2011
    
    
  
On 26 Mar 2011, at 16:12, Victor Petrescu <victor.petrescu13 at gmail.com> wrote:
> On the laptop I use vlc to stream (protocol rtp, transcodation options:
> mpeg-ts incapsulation, video codec: mpeg-1, 1600 kbps, 24 fps, audio codec:
> mpeg audio, 192kbp).
> 
> terminal 1:
> #mkfifo pipe.avi
> #ffserver &
> #ffmpeg -i pipe.avi -r 24 http://localhost:8090/feed1.ffm
> 
> terminal 2:
> #mplayer -quiet -double -dumpstream rtp://192.168.1.8:5004 -dumpfile
> pipe.avi
Your whole description makes no sense, are you streaming mpeg-ts or AVI or?
Also where does the delay come from? Have you tried getting the cam out of the loop by streaming from a file? Getting VLC out of the loop by using a file it transcoded before directly?
Either way MPEG-TS is a horrible format for low-delay streaming, it does not contain sufficient data in the headers so a lot of parsing and reading additional data must happen.
There's an option for FFmpeg to make it stop reading in so much before going on and start the actual transcode.
    
    
More information about the MPlayer-users
mailing list