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

Fix ffmpeg/tests/test_ffmpeg.py: test_pipe() (v2: recalculate PTS) #737

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

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