Skip to main content
Participant
May 7, 2009
Question

Changing video codec for recording

  • May 7, 2009
  • 1 reply
  • 611 views

Hi,

I am using FMS 3.5 and Flash CS3 (though using action script 2 at the mo)

What I  have is a simple program that records a webcam and saves the result as an FLV. - Note, I am doing all this locally, NOT over the internet or a local server. FMS is on the same PC as the program.

OK, all works pretty much ok, apart from 2 things....

1) The frames per second does not seem to be fixing to 25fps, but instead seems to be around 15fps depending upon which pc I use. I'm using: cam.setMode( 320, 240, 25 ); to set the size and frame rate in flash.

2) When I get the properties for the resulting flv, it says it is using h.263 codec. Is there a way to change the codec that is used (to say h.264)? Or is this dependent on the version of flash used? ie. would creating it in flash 9 using AS3 give a better quality result?

Thanks for any help - I'm pretty new at all this so bear with me!

Tim

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    May 7, 2009

    1) For the FPS issue - make sure the camera actually supports 25 fps.  Many webcams only support up to 15 fps.

    2) The encoding in this scenario actually takes place in the Flash Player - the only video codec included in the Flash Player for encode is the Sorenson codec regardless of version of the Flash Player.  You can get higher quality encoding using the Flash Media Live Encoder, but this is a stand-alone application.