[FFmpeg-user] looping realtime ffmpeg stream hesitates a few seconds into each new file
Gary
gary0318 at me.com
Thu Jul 22 17:00:10 EEST 2021
iI am running this loop to feed a local nginx server. when this stream
is viewed as m3u8 from a web client, the next video in the loop begins
playing immediately and it looks nice and professional. But, about 5
seconds or so later it hesitates. Sometimes it is a pause and it picks
up where it left off, and sometimes some of the content is lost in the
playback. How can I tweak this command line to stop this hiccup?
for i in *.ts
do
ffmpeg -re -i $i -vcodec copy -c:a copy -b:v 2500k -preset fast
-b 900k -b:a 190k -s 1920��1080 -f flv rtmp://localhost/live/$1
done
Thanks, in advance!
Gar
More information about the ffmpeg-user
mailing list