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

Synchronize number of stamps to number of h264 frames #2

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

proger
Copy link
Contributor

@proger proger commented Nov 27, 2023

  1. remove all packets from the stream that have no decodable images in them (bad idea: see below)
  2. observe that some streams start with leading P frames which we can't use, so we drop them
  3. add debug output to ffmpeg to see discrepancies in input vs output frame counts

Thanks @nicholas-carlotti for testing

@proger
Copy link
Contributor Author

proger commented Nov 27, 2023

I found that dropping packets that don't have decodable frames by libmedia_codec have a negative impact on the video output.

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.

1 participant