From: Steve on
Hi!

I have big video files and load the frames via the mmreader function. The problem is, if I want to load frame number 5000 of the video (frame=read(readerObj,5000)), this takes over one minute. If I want to load the first frame of the video its very fast. How can I get access to frames at the end of the video with a good speed?

Thanks a lot!
From: Steve on
No way?
From: Walter Roberson on
Steve wrote:
> No way?

No way that I know of. MPEG videos are not seekable to arbitrary points.
You might not have to decode all the previous frames, but you have to
count them and find out how big each one is to know where to look for
the next frame. Once you get to the target frame, you have to move
backwards to the last key frame and decode from there in order to arrive
at the exact frame contents for the frame of interest.
 | 
Pages: 1
Prev: PCA...guys urgent help
Next: argument error