Conversation
timpecter
marked this pull request as ready for review
September 24, 2026 18:09
Author
|
Scene detect plugin |
Adds a Detect Scene Cuts command to the playlist media-item context menu. Analyses the selected source video for hard scene cuts (via an ffmpeg subprocess + numpy frame-difference detector, avoiding a dependency on compiled Python video-decoding extensions) and builds a new Timeline with the source split into one sub-clip per detected scene. Includes a small QML settings dialog to configure detector type, cut threshold, and minimum scene length. Signed-off-by: timpecter <timpecter@hotmail.com>
## Summary Adds a Python Scene Cut Detector plugin for xSTUDIO. The plugin: - Adds a `Detect Scene Cuts...` command to the playlist media-item context menu. - Detects hard scene cuts by piping downscaled grayscale frames from `ffmpeg` and comparing consecutive frames with `numpy`. - Creates a new Timeline containing the selected source media split into one sub-clip per detected scene. - Provides a QML settings dialog for detector mode, cut threshold, and minimum scene length. - Uses the existing xSTUDIO Python plugin and Timeline APIs. ## Testing - Built and deployed the Python plugin with `COPY_PY_PLUGIN_scene_cut_detector`. - Verified the plugin loads in the Windows dev build. - Tested the detector against a `.mov` source using `ffmpeg` and `numpy`. - Tested Timeline creation, media registration, clip insertion, and repeated splitting against a running xSTUDIO instance. - Built on Windows with Visual Studio 2022, Qt 6.5.3, vcpkg, and NSIS. ## Notes This is an initial local implementation for review. The plugin requires `ffmpeg` to be available on `PATH`. Signed-off-by: timpecter <timpecter@hotmail.com>
Signed-off-by: timpecter <timpecter@hotmail.com>
Signed-off-by: timpecter <timpecter@hotmail.com>
timpecter
force-pushed
the
feature/scene-cut-detector-plugin
branch
from
September 28, 2026 16:53
b88b2b6 to
3409602
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a Python Scene Cut Detector plugin for xSTUDIO.
Detect Scene Cuts...to the playlist media-item context menu.ffmpegsubprocess andnumpyframe differences.Testing
COPY_PY_PLUGIN_scene_cut_detector.This is an initial implementation for review and requires
ffmpegonPATH.