[FFmpeg-user] Force transcoding upon reception of first HLS chunk

Cntct Ginh cntct.ginh at gmail.com
Mon Jun 7 17:02:29 EEST 2021


Hi,

I'm working with an HLS input with 3 chunks in a playlist, each of 4
seconds. Is it possible to force FFmpeg to start transcoding as soon as the
first chunk is received? Currently FFmpeg delays the output by 12 seconds
with the following settings. Browser based playback with hls.js can be
forced to start after the first chunk, making FFmpeg lag behind by about 8
seconds.

ffmpeg -i <HLS_input> -map 0:v:0 -map 0:a:0 -c copy -f flv <Output>

Thanks and regards


More information about the ffmpeg-user mailing list