0 Replies Latest reply on Jul 27, 2009 11:44 PM by shi liu

    How to get each frame of flv file

    shi liu

      hi, all, I want to get each frame of a flv file and save them into pictures.

      I encoded the file from an AVI (uncompressed) to flv using Adobe Media Encoder, with fps of flv being 15.

      Then with flex, I write code like this:


      public function countFrame():void

      <mx:VideoDisplay visible="true" id="flvSrc" source="D:\\DevProgram\\ROI\\data\\800600flvout_15fps_1.flv" enterFrame="countFrame();" complete="endFrame();"/>


      But the total count of frames does not match the number from AVI.


      How can I get correct frame number and get each frame? Thanks!