Hi guys =)
Still got problem with my application, and I was hoping to get some help from you guys.
I'm saving each frame of a .FLV file to an array, but there seeme to be a problem with my framerate.
If I set the application framerate to 25, and encode my .flv to 25, it works. But I need to play through the animation faster to buffer it to my array as fast as possible.
So I've set my application framerate to 100 (tried 50 too, but more seemes better), and my .FLV encoding to 50FPS.
Problem now, is that the first second or two it seemes to skip frames. And later on, it seemes to be saving the same frame multiple times..?
Here is the code: http://codeviewer.org/view/code:2090
Frame rate is not guaranteed if you are going to fast for the runtime environment. I would think it would buffer as fast as the network stream, not at the play rate.
How would you go about to buffer a .FLV file to an array as fast as possible?
I'm capturing each frame with BitmapData.draw(), and my goal is to run through all the frames as fast as possible and save them to my array. When this is done, it's removed. I now use the buffered frames..
(the faster the better. This reduces the loading time, of course).