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

example: encoding with custom PTS #725

Open
wants to merge 1 commit into
base: main
from
Open

Conversation

@crackwitz
Copy link
Contributor

@crackwitz crackwitz commented Dec 9, 2020

I didn't notice an encoding example that uses PTSes so I thought I'd add one.

I hope I got this right. I realize ffmpeg's notions of time are "implementation-defined", to put it mildly, and PyAV can't hide that in any good way.

  • setting stream.codec_context.time_base
  • setting frame.pts calculated from stream.codec_context.time_base
@crackwitz crackwitz force-pushed the crackwitz:main branch from 0de3c8f to 079194c Dec 9, 2020
@crackwitz crackwitz force-pushed the crackwitz:main branch from 079194c to 2ad8b9d Dec 25, 2020
@crackwitz crackwitz force-pushed the crackwitz:main branch from 2ad8b9d to f341fa5 Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant