[FFmpeg-devel] [PATCH] avformat/matroskaenc: do not write timebase as framerate

Carl Eugen Hoyos ceffmpeg at gmail.com
Sat Apr 28 20:52:38 EEST 2018


2018-04-28 19:24 GMT+02:00, wm4 <nfxjfg at googlemail.com>:
> If the API user doesn't set avg_frame_rate, matroskaenc will write the
> current timebase as "default duration" for the video track. This makes
> no sense, because the "default duration" implies the framerate of the
> video. Since the timebase is forced to 1/1000, this will make the
> resulting file claim 1000fps.
>
> Drop it and don't write the element. It's optional, so it's better not
> to write it if the framerate is unknown.

(Isn't it default frame duration?)

Please mention ticket #6386 if you commit.

Carl Eugen


More information about the ffmpeg-devel mailing list