Skip to content

Use Per-Frame Durations instead of Average #148

Merged
philipp-fischer merged 2 commits intodevelopfrom
mehrlich/av_frame_duration
Jul 7, 2025
Merged

Use Per-Frame Durations instead of Average #148
philipp-fischer merged 2 commits intodevelopfrom
mehrlich/av_frame_duration

Conversation

@Queuecumber
Copy link
Copy Markdown
Collaborator

In PyAV-Org/PyAV#1880 I added support for the ffmpeg duration field on frames (it was previously only present in packets). That PR was shipped in PyAV 14.4.0 and this PR updates energon to use this field instead of a computed average duration.

Since variable frame-rate videos can have frames with differing durations this PR makes our decode loop more accurate.

Signed-off-by: Max <mehrlich@nvidia.com>
Signed-off-by: Max <mehrlich@nvidia.com>
@philipp-fischer
Copy link
Copy Markdown
Collaborator

Cool 😎

@philipp-fischer philipp-fischer merged commit 0c51ad0 into develop Jul 7, 2025
8 checks passed
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