[FFmpeg-user] ffmpeg streaming to youtube "Delay between the first packet and last packet in the muxing queue is 10500000 > 10000000: forcing output"

owen s owen94012 at gmail.com
Thu Jan 14 06:41:46 EET 2021


This is a large log file: https://0x0.st/-zyL.txt

starting up a youtube livestream with this ffmpeg command:

ffmpeg -hwaccel auto -threads 8 -re -loop 1 -framerate 2 -i ./image.jpg \
-i ./audio.mp3 \
-video_size 1920x1080 \
-threads 4 -vcodec libx264 -pix_fmt yuv420p \
-tune zerolatency \
-movflags +faststart \
-use_wallclock_as_timestamps 1 \
-fflags +genpts \
-x264opts opencl \
-preset ultrafast -crf 18 \
-b:v 1500k \
-bufsize 10000k \
-b:a 128k -ar 44100 -ac 2 -acodec aac \
-r 30 -g 1 -strict experimental \
-f flv rtmp://a.rtmp.youtube.com/live2/xxxx



The YouTube stream starts off with excellent quality but after some time
the YouTube widget starts to show the buffering circle, I get this warning
in the ffmpeg log:
"Delay between the first packet and last packet in the muxing queue is
10500000 > 10000000: forcing output"


More information about the ffmpeg-user mailing list