FFmpeg - Error message - Too many packets buffered for output stream 0:1

By xngo on June 9, 2019

When you run ffmpeg command, you get the following error message: "Too many packets buffered for output stream 0:1.". Simply add the following option at the end of your video options: -max_muxing_queue_size 1024.

For example,

ffmpeg -y -i VIDEO.mp4 -i logo.png \
    -filter_complex "overlay=x=main_w-overlay_w-(main_w*0.01):y=main_h-overlay_h-(main_h*0.01)" \
    -max_muxing_queue_size 1024 \
    OUTPUT.mp4

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.