[FFmpeg-devel] [PATCH] avformat/mov: set AVFMT_SEEK_TO_PTS flag

Gyan ffmpeg at gyani.pro
Fri May 3 08:25:46 EEST 2019



On 03-05-2019 10:01 AM, Gyan wrote:
>
>
> On 03-05-2019 03:00 AM, Hendrik Leppkes wrote:
>> On Thu, May 2, 2019 at 7:42 PM Sasi Inguva
>> <isasi-at-google.com at ffmpeg.org> wrote:
>>> Looks good to me. We were already doing PTS based seeking in MOV 
>>> demuxer
>>> (although it's not perfect).
>>>
>> There are several problems with the MOV approach however. You cannot
>> look at AVStream->index_entries, take a timestamp of such an index,
>> and then ask the demuxer to seek to it. Because one is PTS and one is
>> DTS, you would end up somewhere else.
>> This mismatch is rather annoying if you want to use the index for
>> anything externally.
>>
>> I know its a tad bit off-topic here, but this patch directly touches
>> this area, and I ran into this just quite recently.
>>
>> Patch is good either way, it just documents what the demuxer does.
>>
> Will apply soon.

Pushed as 6223d076e3d0b887282a3ac67213a6a1563b71df

Gyan


More information about the ffmpeg-devel mailing list