Hi all,

I was wondering if you could point me in the direction of some example code
which shows how to extract/decode frames from an mpeg video file with random
access using avcodec, etc (if such a thing is even possible) ... any help or
advice in this direction would be appreciated

thanks,

Aaron Lieber

Hi Aaron,

I'm not a libav specialist but the following procedure works fine for me: open the MPEG file as shown in the example codes and then jump to the desired position using av_seek_frame(...). av_seek_frame doesn't jump backwards in my case (probably caused by a lack of knowledge on my side) So my program closes the file and reopenes it to jump to a preceding position.

And don't forget to start decoding at an I Frame ;)

Best Regards,

Thomas

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to