[Libav-user] How to decode arbitrary frame

James Board jpboard2 at yahoo.com
Fri Jul 19 02:26:18 CEST 2013





________________________________
 From: Thomas <zengaja at gmx.de>
To: "This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter." <libav-user at ffmpeg.org> 
Sent: Thursday, July 18, 2013 8:55 AM
Subject: Re: [Libav-user] How to decode arbitrary frame
 


>You can use avformat_seek_file() followed by avcodec_flush_buffers() before av_read_frame() to jump to an arbitrary position in the Stream.

Thank you.  That works.  But I have an question.  Will avformat_seek_file()
seek to the exact frame, or merely to the nearest key frame?  I'm coding a
video editor and I need to seek to exact frames.  My input
format, for now, are raw formats where all frames are stored in
full such as rawuyvy, or raw422P.  Will avformat_seek_file()
seek to the exact frame in those raw formats, and will it also
seek to the exact frame if I use it on MPEG-type formats?

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130718/7e921db7/attachment.html>


More information about the Libav-user mailing list