Is there a program for automatic clip creation from scene detection/recognition result? I want to parse a large set of movie/advertisement mixture in one video file, i.e. some hours of video, and separate not only movie and advertisement, but also split/cut different advertisements into clips (I'm only interested in advertisement clips separated into different files). Is there a tool which allows to do such thing without interaction (most tools, e.g. kdenlive, have great scene recognition, but only split the clips into logical units for editing in the GUI)? Of course, scene detection isn't deterministic and some clips will require cutting, but that shouldn't matter.

The important thing is the separation of clips into files and the automatization (might be done within the program or on the console with Linux command pipes or an API for - lets say - python).

The program should run on Linux and be FLOSS software.
I had a similar need as yours - to produce shorter videos with different scenes from a single large video. I came across PySceneDetect which provides two kinds of cutting method:


threshold scene detection (detect-threshold): analyzes video for changes in average frame intensity/brightness
content-aware scene detection (detect-content): based on changes between frames in the HSV color space


More information can be found on their website.