You are not logged in.

#1 2015-04-14 14:25:14

RankoKohime
Member
Registered: 2014-01-08
Posts: 87
Website

Large delay in FFMPEG stream

I'm attempting to setup a system where my co-hosts of our show can send me their video feeds, without having to use Skype.  I've worked out a system using ffmpeg, nginx, and vlc that works, but has several seconds of delay, which if it can be reduced, would be very helpful.

ffmpeg pulls the video from the webcam, (and I have tested this with merely copying the h264 stream from the webcam, and sending that raw to the server), ffmpeg then sends an rtmp stream to nginx, and finally, vlc connects and displays the stream from nginx.

I'm not sure which component here is introducing delay, or even why.

Offline

#2 2015-04-14 21:13:39

rikn00
Member
Registered: 2014-06-26
Posts: 21

Re: Large delay in FFMPEG stream

You could try replacing VLC with mplayer with -benchmark option. Have you tried zerolatency tune option with x264 encoder?

Offline

#3 2015-04-19 17:21:03

RankoKohime
Member
Registered: 2014-01-08
Posts: 87
Website

Re: Large delay in FFMPEG stream

The combination of both of these reduced latency to a much more managable ~500ms.

Thanks!  smile

Offline

Board footer

Powered by FluxBB