[Libav-user] How to read audio/video samples based on timestamp instead of position and timestamp

qw applemax82 at 163.com
Mon Sep 14 06:13:51 CEST 2015


Hi,


In mov.c, there is one function, i.e. 'static AVIndexEntry *mov_find_next_sample(AVFormatContext *s, AVStream **st)', which get audio/video samples in terms of position and timestamp. In general, this function will output samples chunk by chunk. But I want ffmpeg output samples only based on timestamp, where sample with the smallest dts will be output first. How to set parameter to make ffmpeg output samples only based on timestamp?


Thanks!


B.R.


Andrew

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20150914/e284ae1f/attachment.html>


More information about the Libav-user mailing list