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

Fade-out then Fade-in is not detected as a Scene Change #1

Open
rlaphoenix opened this issue Apr 26, 2023 · 0 comments
Open

Fade-out then Fade-in is not detected as a Scene Change #1

rlaphoenix opened this issue Apr 26, 2023 · 0 comments

Comments

@rlaphoenix
Copy link
Owner

rlaphoenix commented Apr 26, 2023

The algorithm used is just a simple threshold on the scene change score calculated by FFmpeg.

Since a Fade-out doesn't wildly differ from its previous frame, the entire transition occurs without detection. Similarly, the Fade-in works out the same.

This is only a problem when a Fade-out is met with a Fade-in directly after. A Fade-out to then a jump-cut works fine. A jump-cut to a Fade-in also works fine.

The only fix I can think of is to remove the frames after the start of the transition, and before or on the end of the transition. This results in what looks to be a jump cut instead of a fade transition and the algorithm by FFmpeg with the threshold will pick it up as a Scene Change. However, doing so in an automated way is not such an easy task to pull off.

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

No branches or pull requests

1 participant