[FFmpeg-user] Shorten the delay

Kevin Kuei kevin.kuei.0321 at gmail.com
Thu May 17 10:22:00 CEST 2012


Hello all,

I'm using ffmpeg&ffserver to stream the X11 desktop display to another PC
(over LAN) in real-time.
Here are my commands:

ffserver -f /etc/ffserver_kkuei.conf &
ffmpeg -f alsa -i hw:0,1 -f x11grab -s 1280x720 -i :0.0 -acodec libfaac
-vcodec libx264  http://localhost:10090/feed_kkuei.ffm
(ffserver is configured as a RTSP&RTP server)

In another PC, I just use ffplay to play the RTSP stream.

In my observation, there is about 2.5 seconds delay between the input (X11
display) and output (ffplay) .
The PC is under the same LAN and I'm sure the RTP/UDP didn't waste much ot
the time.

The delay is really a concern in our use case.

It will be very appreciated if anyone can tell me how to shorten the delay.

Cheers,

Kevin Kuei


More information about the ffmpeg-user mailing list