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

Hendrik Leppkes h.leppkes at gmail.com
Fri May 3 00:30:07 EEST 2019


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.

- Hendrik


More information about the ffmpeg-devel mailing list