Skip to main content
Sunil Kumar Sah
Inspiring
August 18, 2010
Question

Dynamic streaming taking too long time to switch video using NetStreamPlayOptions in AS3

  • August 18, 2010
  • 1 reply
  • 1797 views

Hi,

     Can any one tell me why dynamic streaming taking too much time to switch video from lower bit rate to higher bit rate and vice versa.

I am doing dynamic streaming in following ways -

var param:NetStreamPlayOptions = new NetStreamPlayOptions();

param.oldStreamName=oldStream();

param.streamName=newStream()

param.transition=NetStreamPlayTransitions.SWITCH;

ns.play2(param);

ns.addEventListener(NetStatusEvent.NET_STATUS, switchMode);

I am using duel buffering and that is 3 seconds when video starts and 10 seconds when "NetStream.Buffer.Full". Video taking approximately 30-50 seconds to switch video and when I am calling the above code.

Thanks & regards

Sunil Kumar

    This topic has been closed for replies.

    1 reply

    Adobe Employee
    August 18, 2010

    The time which it takes to switch from one stream to other depends on few things like key frame interval. If  key frame intervals are too much then it will take time as at next keyframe it switches so it can take time get the next keyframe. So can you tell what is the key frame interval for your streams.

    Regards,

    Amit

    Sunil Kumar Sah
    Inspiring
    August 19, 2010

    I have two videos and one 128 kbps ( Movie FPS - 24.0 and Play FPS 24) and another one is 500 Kbps  (Movie FPS 25 and Playing FPS 25 ). Only this information I got using media information using Quick time player. Is it the keyframe interval? If not please tell me how can I check the keyframe Interval.

    Thanks for your prompt response.

    Thanks & Regards

    Sunil Kumar

    Adobe Employee
    August 19, 2010

    Actually when the media gets created then we have that settings in the Encoder like FMLE which is used by FMS server to take decisions on switching based on that. Currently I dont know any such tool which will let you know the KeyFrame interval, I am seaching on that and will let you know if I find anyone.

    By that time you can go through these links which contains lot of information on Dynamic Streaming and I think it will be really helpful for you.

    http://www.adobe.com/devnet/flashmediaserver/articles/dynstream_on_demand.html

    Regards,

    Amit