> And in that case I have no idea how to translate a value in the
> "duration" format to something that will match the value needed to look
> in the index_entries.

duration * 90000 / AV_TIME_BASE



> duration * 90000 / AV_TIME_BASE

I use the following to get a value to give to av_seek_frame:

  ts_increment = av_rescale(SEEK_PERIOD_IN_SECONDS,
avctx->streams[vidTrackId]->time_base.den,
avctx->streams[vidTrackId]->time_base.num);

And it seems to work for many formats.
- Show quoted text -

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@mplayerhq.hu
http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel
