Created by: crackwitz
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.
stream.codec_context.time_base
frame.pts
calculated from stream.codec_context.time_base