Open MarcoRavich opened 3 years ago
Thanks forart for the feedback. Detecting split points procedurally sounds great, and can be done by interrogating whether a specific frame is a Keyframe of a Intraframe in scenarios where the codec doesn't artificially insert keyframes every 1s or so. However, a lot of codecs do insert keyframes at fixed intervals (due to streaming) so we cannot rely on every keyframe being a cut point. We can use some heuristics to determine the delta of a keyframe with it's previous frame and do the split at that interval. This greatly reduces the number of frames we need to check, so sounds like a valid and effective strategy.
I will investigate this feature for R1.1. Right now there are thousands of bugs to fix first, and I'd like to get some more audio effects to reach feature parity with Audacity.
It could be very useful - expecially for editors - to have an option for automated clip splitting based on scene cuts.
PySceneDetect can help to implement it:
https://pyscenedetect.readthedocs.io/en/latest/
Hope that inspires !