FFmpeg Cookbook
FFmpeg: Too many packets buffered for output stream — Fix
Fix the FFmpeg error "Too many packets buffered for output stream". Learn why the muxing queue overflows when one stream's packets pile up, how to raise -max_muxing_queue_size, and why re-encoding instead of copying often resolves the underlying interleaving problem.