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

Add mpdecimate feature to remove similar frames #1448

Open
4 tasks done
rudolphos opened this issue Feb 2, 2023 · 1 comment
Open
4 tasks done

Add mpdecimate feature to remove similar frames #1448

rudolphos opened this issue Feb 2, 2023 · 1 comment

Comments

@rudolphos
Copy link

rudolphos commented Feb 2, 2023

I have a lot of issues to go through, so in order to make it easier for me to help you, I ask that you please try these things first

Description

mpdecimate is an ffmpeg feature, which losslessly can remove frames that are the same. This is useful for videos which mostly contain a presentation of still frames.

Sometimes this can cause keyframe issues where resulting video doesn't start and you have to scrub manually further for it to play. I think here can come handy the already existing lossless-cut feature which re-renders some parts of the video to avoid keyframe issues.

This is a small excerpt from the PowerShell script I use:
ffmpeg -i $var.FullName -vf mpdecimate -fps_mode vfr -acodec copy $($path+'\'+$tempName)

@mifi
Copy link
Owner

mifi commented Feb 3, 2023

Hi. I don't think this is a lossless operation. Meaning that in order to use mpdecimate, you would have to re-encode the video. This means it's not really part of losslesscut's main feature set. As for re-encoding parts of the video to in order to call mpdecimate, I'm not sure exactly what that will solve. Do you have an example reproducible case where mpdecimate would solve a problem?

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

2 participants