Skip to content

Add Frame.best_effort_timestamp - #2478

Merged
WyattBlue merged 1 commit into
masterfrom
best-effort-timestamp
Oct 25, 2026
Merged

WyattBlue merged 1 commit into
masterfrom
best-effort-timestamp

Conversation

@WyattBlue

Copy link
Copy Markdown
Member

For inputs that store only DTS, such as AVI, the PTS that genpts generates can go backwards when the video has B-frames. Expose FFmpeg's own estimate, which falls back to DTS when PTS is unreliable, and document that input containers set genpts and how to turn it off.

Closes #2477

For inputs that store only DTS, such as AVI, the PTS that `genpts`
generates can go backwards when the video has B-frames. Expose FFmpeg's
own estimate, which falls back to DTS when PTS is unreliable, and
document that input containers set `genpts` and how to turn it off.

Closes #2477
@WyattBlue
WyattBlue merged commit 54ee662 into master Oct 25, 2026
9 checks passed
@WyattBlue
WyattBlue deleted the best-effort-timestamp branch October 25, 2026 13:04
@Breakthrough

Copy link
Copy Markdown

Thanks for the prompt fix here!

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.

Unconditionally adding AVFMT_FLAG_GENPTS causes non-monotonic PTS values on DTS-only inputs

2 participants