[Libav-user] How to decode arbitrary frame
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user