You Are Here Home > NetStream.publish Actionscript 3, recording with the best...

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 :)

NetStream.publish Actionscript 3, recording with the best quality
Filed under: Actionscript,Flash   Posted by: Hamid

3 Comments »

  1. pallzoltan:
     

    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.

    Comment

     
  2. Codehead:
     

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

    Comment

     
  3. Dileep Kumar:
     

    hi

    i am working on creating flash player. i am playing advertisement and movie both.firstly i play movie . i play advertisement at particular period after pausing movie.after completing advertisement ,i resume movies.
    when i play both using http protocol. then it is working fine.whenever i play movie using rtmp protocol and advertisement using http protocol.i pause movie using both protocol.I am facing one problem . problem is here.
    whenever i pause movie at specified position using rtmp protocol . then playhead is skipped specified position and moved more from specified position. after moving, movie pauses.and starts to play advertisement video. i am very perplexing after happening this thing.

    so please tell me about what to do for solving it and suggest me.
    Thanks in advance.

    Comment

     

RSS feed for comments on this post. TrackBack URL

Leave a comment