Camera.setQuality() not working for H.264 enconding in Flash Player 11?

Hi,
I am using the new Flash Player 11 ability to encode the webcam video with H264 codec and send it via RTMP to a Flash Media Server. It works, but the bitrate of the video stream is not constant. Therefore the resulting stream is stuttering when playing back.
I tested it in two ways:
A) Encoding and sending the webcam video to FMS via FMLE -> very fluent playback
B) Encoding and sending the webcam video to FMS via Flash Player 11 (all setting for codec etc. are the same) -> playback is stuttering
As you can see in the screenshots below, the incoming bandwidth at FMS varies a lot. When using FMLE the incoming bitrate at the FMS is very constant:
In contrast: when using FP11, the bitrate jumps between 1000 and 6000 kbps during the whole stream:
That is definitely the reason why it "stutters" when using Flash Player 11. But I have no idea what I am doing wrong.
I am using these encoding settings for FP11 ...
var videoStreamSettings : H264VideoStreamSettings = new H264VideoStreamSettings();
videoStreamSettings.setKeyFrameInterval(5);
videoStreamSettings.setMode(1280,720, 25);
videoStreamSettings.setProfileLevel(H264Profile.BASELINE, H264Level.LEVEL_5_1);
videoStreamSettings.setQuality(1000000, 0);
... and these settings for the camera:
var camera : Camera = Camera.getCamera(0);
camera.setQuality(1000000, 0);
camera.setKeyFrameInterval(5);
camera.setMode(1280, 720, 25);
Any idea why the bandwith is not constant in FP11? The function camera.setQuality() should do the job, right (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fla sh/media/Camera.html#setQuality%28%29)? Is there any known bug for Camera.setQuality when using H.264 encoding in FP11?
Thanks a lot.
Malte

Hi Jozsef,
thanks for your answer. In which version and on which date will the CBR be implemented? Flash Player 12? Or a minor release of FP11?
And until then I have no chance to have a constant bitrate? The bitrate I am passing to Camera.setQuality will just be ignored? Or is there any workaround?
Thanks and I will test using RTMFP instead of RTMP, but the CBR is the most important thing for us.
Best

Similar Messages

  • Camera.setquality() not working for h264 encoding

    Hi,
    Im using H264 encoder for encoding my live video to broadcast to ios devices. But there seems a big loss in quality while using the H264 encoder. The code im using for encoding is
    var h264Settings:H264VideoStreamSettings = new H264VideoStreamSettings();
        h264Settings.setProfileLevel(H264Profile.MAIN, H264Level.LEVEL_3_1);
        _ns.videoStreamSettings = h264Settings;
        camera.setQuality( 0, 100 );
        camera.setMode( 320, 240, 30, true );
        camera.setKeyFrameInterval( 15 );
        camera.setLoopback(true);
        _ns.publish("videoname?adbe-live-event=liveevent","record");
    Is there any possiblity to improve my video quality or any other way of encoding the video?.
    Im using flex sdk 4.6 and flash player 11.8.
    Thanks in advance

    Hi Jozsef,
    thanks for your answer. In which version and on which date will the CBR be implemented? Flash Player 12? Or a minor release of FP11?
    And until then I have no chance to have a constant bitrate? The bitrate I am passing to Camera.setQuality will just be ignored? Or is there any workaround?
    Thanks and I will test using RTMFP instead of RTMP, but the CBR is the most important thing for us.
    Best

  • Camera is not working for Skype in Mac OS Maverics

    Hi,
    I have MacBook Pro (Mid 2012).  I have updated it to MAC OS Maverics.
    Since then camera is not working for Skype (Version 6.8.0.351)- only at the start it works for few seconds and then it freezes.
    It was working fine with Mac OS Lion.
    Please suggest some wayout from this.

    Shirsendu wrote: ... not working for Skype (Version 6.8.0.351....
    Install Skype Update: Skype_6.9.0.517
    Message was edited by: EZ Jim
    Mac OSX 10.9

  • Web cam is not working for HP DV7

    I dont see the hardware or drivers for my WebCam it is not working and im not even sure it is installed anymore. I did not have a problem up until a few months ago not sure what happened. Can it be repaired?

    Hi there @Vonita 
    Welcome to the HP Support Forums!
    I understand that you are having problems with your webcam, and I am happy to help. Firstly, can you post the full product number and the operating system you are using? That would help me to direct you to the correct drivers.
    How Do I Find My Model Number or Product Number?
    Is the Windows Version on My Computer 32-bit or 64-bit?
    For now, you can take a look at whichever of these most applies to your system.
    Webcam Troubleshooting (Windows 8)
    Webcam Troubleshooting (Windows 7)
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • Web Cam does not work for yahoo messenger

    Hi,
    I down loaded a s/w MacCleanse, it kinda deleted a lot of files from my mac book air after which the web cam stopped working on yahoo messenger. I checked Ichat the cam works perfectly but does'nt with messenger. Does any one have a clue on how to fix this..

    from my experience, attempting to use two programs that allow the use of the camera will render it unusable on the second program attempting to use it. So, if you started iChat first, then forgot to quit the program, and are now trying to use Yahoo Messenger, then you must quit iChat first and it should work.
    Not unless your cam is really broken?

  • My camera will not work for Face Time nor Hangouts

    I cannot get my camera nor camera light to come on when tlakign wiht others on Face Time nor hangouts
    Can anyone guide me?
    Tried to update software
    I am on X 10.9
    the download for for the camera says you must have 10.8
    Hmmm

    Hope info from this article is helpful.
    http://support.apple.com/kb/HT2090
    Reset SMC.     http://support.apple.com/kb/HT3964
    Choose the method for:
    "Resetting SMC on portables with a battery you should not remove on your own".
    If this does not help, contact Apple.
    Best.

  • My camera is not working for my mac

    My screen in photo booth keeps saying no camera available and I just don't know what to do to get it to work.

    http://support.apple.com/kb/HT2090 How to Troubleshoot iSight

  • I just bought an Iphone4 from straight talk and my camera does not work. The shutter wont open and when it does open there is a black screen. I am very upset. I have wanted this phone for awhile and now that I have it, it does not work properly. Need help

    I just bought an Iphone 4 from straight talk. My camera does not work. The shutter does not open and when it does open there is a black screen. I am very upset. I have wanted this phone for awhile. I want the issue fixed.
                                                                                                                                                     Thanks

    Take the iPhone to an Apple store genius bar for testing, and if it is defective and under warranty they will replace.  Since you say iPhone 4, was this a used or refurbished iPhone? 

  • Camera not working for macbook air

    It's a macbook air A1370, iOS 10.8.3. The build-in camera is not working. Both Facetime and photobooth show that the camera is not connected. I checked the system info, under the usb session, the build-in camera is there. I followed some posts and reset the SMC, not helping.
    What should I do?
    Any help is greatly appreciated!

    tdingsh wrote:... Is there a way to re install the camera driver? ...
    Yes.  Follow the instructions for reinstalling your Mac OS X.  All necessary drivers are automatically installed by the OS X installer.
    tdingsh wrote:... Apparently ... computer is not detecting the in-built camera ...
    By using your Mac''s (option) > System Information... menu command, you can be certain whether your Mac detects its camera.
    When the System Information window opens, click on "USB" under "Hardware" in the sidebar.  Then look in the USB Device Tree window pane that opens when you select "USB". Click ALL right-facing triangles ( ▶) so they point down (▼) and reveal all individual items.
    If your camera is nowhere in the USB Device Tree window pane, your Mac does NOT recognize the cam.
    Resetting the SMC using the instructions for your specific Mac model may restore camera function.
    Message was edited by: EZ Jim
    Mac OSX 10.8.3

  • Webcam not working for Macbook Air 2013 after upgrading to OSX Mavericks? Yahoo/ Google/Skype cam chats not working. Facetime works though. Any updates of Mavericks released to fix this?

    Webcam not working for Macbook Air 2013 after upgrading to OSX Mavericks? Yahoo/ Google/Skype cam chats not working. Facetime works though. Any updates of Mavericks released to fix this?

    I have a MacBook Pro Retina display: 15.4-inch late 2015 with OS X Mavericks install, only on second week. 
    Insight works on FaceTime, Skype, but yahoo program does not show insight cam in dropped down.
    Now when I got my new MacBook Pro, I down loaded all new Skype (worked tested), FaceTime (Worked Tested), Yahoo (not worked)
    Fix:
    With the new Maverick you have to use there messager program Version 8.0 (4218). Once I add my yahoo account video works again.
    It also supported AOL, AIM, Google Talk, Jabber.
    Guess I miss it frist time... hope this helps...

  • Camera not working for my omni10

    i have problem with camera. When i click icon it shows back sreen only.

    Hey @ganeshglone ,
    Welcome to the HP Forums!
    I understand the front facing camera is not working on your Omni 10 tablet.
    Can you tell me which model you are using? You should see this etched on the back of the tablet.
    Also if you swipe up from the bottom of the tablet screen you should see a Change Camera button. This only works in the camera app. If you are using another program please tell me which program or app it is and I will do my best to find the feature for you.
    Thanks.
    Please click the "Kudos, Thumbs Up" at the bottom of this post if you want to say "Thanks" for helping!
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    The Great Deku Tree
    I work on behalf of HP.

  • My isight camera was not working. so i tried to smc reset it as said in apples support community but now wat happened is my macbook pro don't charge, it don't show any light for checking charge, nor it starts up. please help. Thanks

    my isight camera was not working. so i tried to smc reset it as said in apples support community but now wat happened is my macbook pro don't charge, it don't show any light for checking charge, nor it starts up. please help. Thanks

    Try zapping the PRAM.  See KB Article http://support.apple.com/kb/PH11243 OS X Mountain Lion: Reset your computer’s PRAM
    If you are still under warranty and/or have AppleCare, call them.  Let them deal w/it.

  • My daughter's iphone got wet and camera does not work. She lives in Madbury, NH 03823. Where can she take it for repair?

    My daughter's iphone got wet and camera does not work. She lives in Madbury, NH 03823. Where can she take it for repair?

    Yes it does, although I wa a minute faster than you. To see if someone is parroting you, or that they just posted at the same time, look at the head of the post and it will show you the data and time of the post and who they were responding to. Looking at that first saves some misinformation in future posting.
    You'll see some posts where there will be 5 posts all in the same minute sometimes. Answer posts late at night and you won't see as many.
    BTW, I clicked the Like button on your post where you gave the link for the users manual.

  • My mac camera does not work ! please help i need my camera for an interview !

    my mac camera does not work ! please help i need my camera for an interview !

    CLICKY CLICK---> http://support.apple.com/kb/HT2090 How to Troubleshoot iSight

  • I bought my iPhone5 4 months ago and now the camera is not working, it only displays black in the screen. I've tried reset, restore for how many times but still the problem is not being resolve. Any help from you Apple team?

    I bought my iPhone5 4 months ago and now the camera is not working, it only displays black in the screen. I've tried reset, restore for how many times but still the problem is not being resolve. Any help from you Apple team?

    There is no Apple here, this is a user to user forum.  When you said you restored, then you restore as NEW?
    If you restored as New and still the problem persiist, then it time to take a trip to the Apple store.

Maybe you are looking for

  • Able to do Goods Receipt without Goods Issue in Intercompany STO process

    Hi, We are in ECC 6.0 and noticed that we are able to post Goods Receipt in receiving plant (Intecompany) without even goods issues in supplying plant. How to restrict proceeding Goods receipt in case no GI at supplying plant? Please advice. Regards,

  • The upper volume button on my iPhone 4s is not working

    I had a case on it that pressed against my volume buttons. When I took the case off, the upper volume button stopped working. The lower volume works just fine. Whenever I push the upper volume, nothing happens. The volume works both ways if I touch t

  • Quicktime cant export or share!

    My Quicktime can't export or share files! The Export seems to work fine but crashes in the end, the exported file crashes every software (Quicktime, iMovie, Mail etc.) The same problem when exporting in iMovie! The same file converts just fine on my

  • Color issue with PS CC 2014

    Hello, I work on Mac 10.7.5 with XRite i1 Profiler. I work my pictures with Capture One Pro 7.2.3. Since I've upgraded to Photoshop CC 2014 my colors are wrong. My photos retouched with Iridient Raw Developer or Capture One Pro appear well calibrated

  • Vendor Master : Sensitive Fields confirmation

    Hi, The configured sensitive fileds conformations are triggering for both Creation(FD01) and Change(FD02). The confirmation required only for the Changes, not for the new entries(Creation). Please do the needful. Refards, Anusha