A walkthrough of creating a 'two-minute' supercut of the Gilbert & Sullivan opera Iolanthe using ffmpeg and yt-dlp. The post covers the technical challenges of clipping and concatenating 169 short video snippets, particularly the problem of audio/video timestamp drift. Three approaches are compared: clip-then-concat (causes drift), single filter_complex invocation (quadratic slowdown, memory issues), and a hybrid approach using filter_complex in batches of 20 clips followed by a final concat copy. The author shares the resulting Bash and Python scripts.
Sort: