I'm reading the stream index table (AVIndexEntry *index_entries within
AVStream structure) so i can know what is the frame start position.
Is there a simple/working way for seeking (exactly) frame #n within all
frames e.g if file contains 1000 frames and i want to read frame 400?
I thought using the index table and seek for right position/timestamp
will do, but i guess i'm missing something.
Thanks
Ami
On 12/12/2010 1:49 AM, Mike Edenfield wrote:
On Tue, 2010-11-23 at 23:30 +0200, Amihud Bruchim wrote:
/It seems that /av_read_frame /doesn't read the packet which i seek for
with /av_seek_frame /even though seek operation succeeded (i verified it
on AVFormatContext->pb->pos) and I'm pretty sure it reads the next
packet according to packets order within file.
My file format is avi and I'm seeking using byte seek option.
Is there a reason you are using the byte seek option? Unless you are
making sure your byte position is exactly at the start of a frame
header, av_read_frame is going to rejects the next read because it's not
a valid frame. The subsequent av_read_frame picks up the next full
frame and works properly.
--Mike
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user
This mail was received via Mail-SeCure system.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user