Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Remixer: Find Break Frame in Scene Splitter #339

Merged
merged 4 commits into from
Oct 6, 2024
Merged

Conversation

jhogsett
Copy link
Owner

@jhogsett jhogsett commented Oct 6, 2024

Adds Find Next Break buttons to the Video Remixer Scene Splitter

  • scans through the frames to find a mostly all-black frame
  • works in forward and reverse directions
  • samples a configurable subset of pixels to speed up the search

This is useful when trimming content around opening and ending credits, or when manually splitting a scene on natural breaks.

New config.yaml settings

remixer_settings:
  find_break_stride: 128  # only check every this many pixels in the image to speed up the check
  find_break_threshold: 1 # the average lightness of the sampled pixels must be this value or lower to be a break frame (0-255)
  skip_break_threshold: 3 # near-break frames are skipped on repeated use if at or below this value

@jhogsett jhogsett changed the title implement UI logic Video Remixer: Find Break Frame in Scene Splitter Oct 6, 2024
@jhogsett jhogsett marked this pull request as ready for review October 6, 2024 18:59
@jhogsett jhogsett merged commit 23fd55b into main Oct 6, 2024
2 checks passed
@jhogsett jhogsett deleted the find-next-break branch October 6, 2024 19:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant