Skip to main content
October 21, 2011
Question

H264 live encoding in Flash Player 11 slowly?

  • October 21, 2011
  • 1 reply
  • 1431 views

Hi,

I am using the new Flash Player 11 ability to encode H264 video within the Flash Player. I am streaming the webcam via RTMP to a FMS. I am using the following settings:

H.264 Baseline

Level 5.1

Keyframe freq. 5 seconds

25 FPS

Input size: 1280 x 720 (720p)

Output size: 1280 x 720 (720p)

Bit Rate: 1000Kbps

When I am using these settings with FMLE 3.2, the final stream plays very fluent with a good amount of FPS. If I am using Flash Player 11 for the encoding job instead, the final video is not as fluent as before and achieves less FPS (maybe 5 FPS).

So the question is: is Flash Player 11 not as good as FMLE 3.2 or am I missing some configuration? FP11 should be capable of encoding and streaming a fluent 720p stream, shouldn't it?

Thanks a alot.

Best

Malte

    This topic has been closed for replies.

    1 reply

    October 21, 2011

    Addition: I've found out that the incoming bandwith is very constant when streaming and encoding from FMLE. It stays relatively constant around 1500 kbps:

    When I am using the Flash Player 11 for encoding and streaming the incoming bandwith looks like the rocky mountains. The incoming bandwith 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/flash/media/Camera.html#setQuality%28%29)?

    Thanks

    Malte

    Nikhil_Kalyan
    Participating Frequently
    October 23, 2011

    Hi,

    Thanks for using the FMS ecosystem.

    FMLE is definitely good, but Flash Player should also have delivered an equivalante quality video (the underlying H264 encoder that is use in both FMLE and Flash Player are the same). Can you post the query in the flash player forums so that they can best provide suggestions ?