[Ffmpeg-devel] libav Ratios through Video file
Wed Mar 28 10:17:18 CEST 2007
Scott Harper <orcein at gmail.com> writes:
> I THINK I've figured out how to get the ratio of how far I am in the
> video file when playing through, by using AVStream->cur_dts and
> dividing that by AVStream->nb_index_entries. Is this correct?
> If it is not, how can I accurately determine the ratio of how far
> through the video file I am when I grab a frame/decode a frame to how
> long the video file is?
You can't in general. Your best bet is to compare timestamps of
packets to the start and end times of the stream. That should work in
mans at mansr.com
More information about the ffmpeg-devel