Skip to main content
Sunil Kumar Sah
Inspiring
Aug 18, 2010 11:08 AM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

    6 replies

    Adobe Employee
    Aug 18, 2010 2:18 PM UTC

    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

    Translate
    Sunil Kumar Sah
    Inspiring
    Aug 19, 2010 5:15 AM UTC

    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

    Translate
    Adobe Employee
    Aug 19, 2010 6:33 AM UTC

    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

    Translate