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

Detect black-scene change #623

Closed
adoenz opened this issue Jan 26, 2021 · 11 comments
Closed

Detect black-scene change #623

adoenz opened this issue Jan 26, 2021 · 11 comments

Comments

@adoenz
Copy link

adoenz commented Jan 26, 2021

Problem
I've got many videos containing several black sections which I need to seek manually and cut out.

Solution
It would be great if it could detect when a black-frame change happens, and when the normal picture is appearing again.
A luxurious solution would be to have the black-sections removed automatically (saving me hours...).

What would already tremendously help is that I could manually navigate to the next scene change (eg. begin black-section, end black-section); then I'd just manually mark/cut-out those sections.

@adoenz adoenz changed the title Detect scene change Detect black-scene change Jan 26, 2021
@mifi
Copy link
Owner

mifi commented Jan 26, 2021

I think black screen is a very specialized use case (maybe other videos will have a static image, a video loop, a counter or something else).
I think you can probably do this with a custom script that generates EDL cut files and then import them into losslesscut.
If it is a common use case that a lot of people need however, we can look into implementing it.

@mifi
Copy link
Owner

mifi commented May 15, 2021

We could probably use http://ffmpeg.org/ffmpeg-all.html#blackdetect

@ShenMengBJ
Copy link

Recommend this auto cut function would be based on the wave graph of volume.

@mifi
Copy link
Owner

mifi commented May 15, 2021

could you elaborate? what does wave graph of volume mean?

@ShenMengBJ
Copy link

could you elaborate? what does wave graph of volume mean?

Lossless Cut could show the wave graph of video now, and if Lossless Cut will automatically tag and cut the clips of empty or short or noise based on volume, it is very interesting.

@adoenz
Copy link
Author

adoenz commented Jun 3, 2021

I think using the ffmpeg blackdetect filter would be a geat and easy solution (from its description; haven't worked with it yet). Simply giving the user the possibility of tweaking "what black means" based on the filter's parameters (duration, level-of-black).

@mifi
Copy link
Owner

mifi commented Jul 25, 2021

These are interesting features indeed. However I'm worried that the blackdetect command takes some time to finish for long videos. need to test more

@skinkie
Copy link

skinkie commented Jul 26, 2021

For me it takes 1 second per minute of video on DVD resolution.

@mifi
Copy link
Owner

mifi commented Mar 18, 2022

have now implemented this and it will be avail in the next version

@adoenz
Copy link
Author

adoenz commented Jul 15, 2022

Thanks a lot for this great feature! Works very well!

@mifi
Copy link
Owner

mifi commented Dec 28, 2022

next version will allow changing parameters
Screenshot 2022-12-28 at 23 52 10

mifi added a commit that referenced this issue Dec 28, 2022
closes #1334

also allow chnaging parameters of black detect #623
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants