NetStream.publish Actionscript 3, recording with the best quality

After some time of working on this I found that with the following code, I could get the best quality when recording videos with Flash:

camera.setMode(300, 240, 30);
// camera.setKeyFrameInterval(CAMERA_KEY_FRAME_INTERVAL); /* Comment this out */
camera.setQuality(0, 0);

Funny, with 15 frames per second, there was a lot of problems, but 30 frames per second fixed all the issues for me.

Please do let me know if you have a better solution :)

2 Comments for NetStream.publish Actionscript 3, recording with the best quality

  1. pallzoltan said,

    October 13, 2008 @ 9:25 am

    i’m just playing around with red5 and FMS, and the live streaming is really easy to do, but i’m wondering if you can encode to OnVP6 or H.264 straight from flash player. i found some posts saying that flash player can only encode sorenson, but i wonder if this is true.

  2. Codehead said,

    October 13, 2008 @ 2:34 pm

    Hey, I think FMS is capable of this but I’m really not sure.

RSS comments feed· TrackBack URI NetStream.publish Actionscript 3, recording with the best quality

Leave a Comment for NetStream.publish Actionscript 3, recording with the best quality