[FFmpeg-user] Efficiently doing thousands of edits?

John Hawkinson jhawk at alum.mit.edu
Thu Apr 11 05:44:20 EEST 2019

Michael Shaffer <mikeshaffer at gmail.com> wrote on Wed, 10 Apr 2019
at 19:40:36 -0400 in <CAMrzi1s55GuHbXoWW+r6XibbDKdtsHa=x04vf5DO4fhUqUh4Jg at mail.gmail.com>:

> I'm pretty sure you could use Python and OpenCV to create a solution..

"Just because you can, doesn't mean you should."

My original post explained how to determine where the runs of black are, using ffmpeg (libavfilter)'s "blackdetect." The only piece left is applying the edits in a practical fashion.

Rolling your own with opencv would be a whole lot more work. I'm not entirely sure that I agree with Carl Eugen that ffmpeg isn't a video editing tool, but if it's not, Python certainly isn't. Yes, you can make it work. But you're going to spend a lot more time doing it than if higher level tools were used.

The goal here is for higher-level tools, not lower-level ones.

Or I might just end up using ffmpeg to split it into 7,000 files and then concatenating them. That's hardly the worst thing in the world.

jhawk at alum.mit.edu
John Hawkinson

More information about the ffmpeg-user mailing list