Skip to content

Conversation

@xiota
Copy link

@xiota xiota commented Jan 22, 2023

When trimming, FFmpeg 5.x retains the input presentation timestamp (PTS) in the output. This causes the trimmed output frames to be duplicates of the first.

#726 detects and ignores the duplicate frames. This PR prevents the duplicate frames by recalculating the PTS.

When trimming, FFmpeg 5.x retains the input presentation timestamp (PTS)
in the output.  This causes the trimmed output frames to be duplicates
of the first.  To prevent this, the output PTS needs to be recalculated.
@xiota xiota mentioned this pull request Jan 22, 2023
4 tasks
@emilazy
Copy link

emilazy commented Aug 3, 2024

This fix didn’t work for me on FFmpeg 7, whereas #726 does.

@xiota
Copy link
Author

xiota commented Dec 24, 2024

Closing in favor of #726.

@xiota xiota closed this Dec 24, 2024
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.

2 participants