[FFmpeg-user] HLS restreaming showing lags and stutters

Cntct Ginh cntct.ginh at gmail.com
Sat May 29 16:52:56 EEST 2021


Hi, I'm trying to restream HLS input to RTMP output with lowest latency
possible. Tried following methods.

ffmpeg -i <HLS-INPUT> -c copy -f flv <RTMP-OUTPUT with
overrun_nonfatal=1&fifo_size=500000000>

This method has latency of about 2 seconds behind live. But it has a lot of
lags and stutters.


ffmpeg -re -i <HLS-INPUT> -c copy -f flv <RTMP-OUTPUT with
overrun_nonfatal=1&fifo_size=500000000>

This method works smoothly most of the time. But latency is over 10 seconds
behind live.

Is there a possibility of achieving a middleground? Latency of about 5
seconds is workable, but the stream should not show network lags/stutters
at all.

thank you


More information about the ffmpeg-user mailing list