[FFmpeg-devel] [PATCH] avformat/movenc: Fix tfdt out of sync

Martin Storsjö martin at martin.st
Mon Jul 19 23:33:59 EEST 2021


Hi,

Thanks for the patch! I'll try to look into it in a while (I'm a bit 
swamped and short on time at the moment), hopefully within a couple days 
or so.

On Sun, 18 Jul 2021, Hu Weiwen wrote:

> Fix an edge case when auto flushing an empty fragment, and the previous fragment
> has inaccurate duration, the track->frag_start would be out of sync from input
> dts, and all subsequent tfdt box will have out of sync base_media_decode_time.
> This error can accumulate to quite large over long-running streaming.
>
> This can be easily reproduced by remux a variable frame rate source with dash
> muxer and set streaming to 1.

Can you provide a specific sample and a command line, and point out what 
values in the output file that are mismatched - so I can zoom in on the 
issue quicker once I have time to sit down and look at it?

// Martin



More information about the ffmpeg-devel mailing list