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
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to