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 playback with avi files missing PTS #602

Merged
merged 3 commits into from
Aug 22, 2024
Merged

Fix playback with avi files missing PTS #602

merged 3 commits into from
Aug 22, 2024

Conversation

zoriya
Copy link
Owner

@zoriya zoriya commented Aug 21, 2024

AVI doesn't really support H.264 (source). AVI files sometimes don't contain PTS timestamps.

This means keyframe extraction succeed with no keyframes and starting a stream panics.

We can instead use DTS to get keyframe timing (source).

@zoriya
Copy link
Owner Author

zoriya commented Aug 21, 2024

genpts as an input flag for transcode source: https://trac.ffmpeg.org/ticket/6905

@zoriya
Copy link
Owner Author

zoriya commented Aug 21, 2024

still need to test this w/ normal streams to ensure nothing is broken (my computer decided to not randomly give up hwaccel so not tonight)

@zoriya zoriya marked this pull request as ready for review August 22, 2024 15:43
@zoriya zoriya added bug Something isn't working transcoder labels Aug 22, 2024
@zoriya zoriya added this to the v4.7.0 milestone Aug 22, 2024
@zoriya zoriya self-assigned this Aug 22, 2024
@zoriya zoriya merged commit 4176bd0 into master Aug 22, 2024
11 checks passed
@zoriya zoriya deleted the fix/avi branch August 22, 2024 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working transcoder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant