Hi all,
This is my first post on stack overflow, but i have visited this great site lots of times! I did a lot of googling before i posted this, I'm really desperate...
The problem is that I am trying to get the av_seek_frame() function to go to a byte position I specify. I am implementing a frame accurate seeking mechanism for my application, and the way I see it, I will scan the entire video file, and store byte positions for each keyframe in a struct. I found out where to get the current byte position: AVPacket.pos . I now test this position with av_seek_frame like this: av_seek_frame( pFormatCtx, videoStream, 110285594, AVSEEK_FLAG_BYTE); however, this does not seem to do the right thing, when I call av_read_frame, it just starts with frame 23. If i do not seek, it starts at frame 1.
Thanks!