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 -
EDIT 1: The program should run on Linux and be free software.