[Libav-user] How to decode arbitrary frame

Thomas zengaja at gmx.de
Thu Jul 18 14:55:25 CEST 2013


Am 18.07.2013 14:42, schrieb James Board:
> I have the doc/examples programs compiled and running.  I use
> the program demuxing.c to decode an AVI file.  From the source
> code, it looks it calls its own subroutine decode_packet() to decode
> the next video or audio packet, and that subroutine calls
> avcodec_ecode_video2()to decode the next frame.  But they all decode
> sequential frames.  How can I decode an arbitrary frame in the
> video stream?
You can use avformat_seek_file() followed by avcodec_flush_buffers() 
before av_read_frame() to jump to an arbitrary position in the Stream.


>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user

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


More information about the Libav-user mailing list