PySceneDetect icon indicating copy to clipboard operation
PySceneDetect copied to clipboard

Feature Request: Batch Processing

Open jeremymeyers opened this issue 4 years ago • 2 comments

The ability to add wildcards to the "--input" parameter would be super helpful.

For example, if i have a folder full of AVI files, being able to say '

  • scenedetect --input "*.avi" detect-threshold split-video -c

rather than having to do each individually...-

jeremymeyers avatar Jul 03 '21 23:07 jeremymeyers

This is definitely possible using the glob module - could also process multiple files in parallel to utilize multicore systems better until there is better GPU support. Will add this to the list of items for v1.0, thanks for the suggestion.

Breakthrough avatar Jul 04 '21 00:07 Breakthrough

There are some edge cases that need to be dealt with to make this work properly:

  • Need to figure out how to specify output file name properly
  • Same with statsfile(s)

An initial implementation, however, can simply error out if a wildcard is specified with any of the above flags.

Breakthrough avatar Jul 04 '21 01:07 Breakthrough