[FFmpeg-devel] Is AV_TIME_BASE required to be a full millisecond?
Michael Fabian 'Xaymar' Dirks
michael.dirks at xaymar.com
Wed May 19 01:32:11 EEST 2021
On 2021-05-18 22:04, Michael Fabian 'Xaymar' Dirks wrote:
> Hello,
>
> while tracking some time stamp issues unique to FFmpeg I noticed AV_Time_BASE(_Q) being present quite often, which appears to be a value to define time stamps in milliseconds. Tracking it back to its origin I could find very little to no information about why this value was chosen. All I know so far is that it was chosen for compatibility with very early versions of FFmpeg.
>
> Does FFmpeg require this value to be a full millisecond? Or is it possible to adjust this to microseconds and "fix" many of the time stamp issues that occur? While it seems to be possible to work-around this issue on a muxer/demuxer level, the underlying issue in FFmpeg would still be present. At the moment, most non-integer ms framerates and sample rates end up performing weird without post-processing.
>
It seems like my rubber ducky debugging has misled me into believing the culprit to be AV_TIME_BASE. Ignore me, I misunderstood how FFmpeg works internally.
--
Sincerely | Mit freundlichen Grüßen
Michael Fabian 'Xaymar' Dirks
More information about the ffmpeg-devel
mailing list