Skip to main content
Participant
December 1, 2009
Answered

client side playlist with netStream.play using start offset causing jerky cuts

  • December 1, 2009
  • 1 reply
  • 486 views

I have a series of mp4 videos (H.236 @ 22 fps) streaming from an akamai FMS serve via RTMP protocol in flash player 9+ with AS 3.   My goal is to create client side playlists that smoothly switch from one stream to another. I am creating these playlists using a series of netStream.play(filename,start,len) methods. If I don't use an offset for the start parameter, then the stream switches smoothly from one video to the next with not noticeable jump or jerkiness. However if I introduce a start offset, say a few seconds in, I start to see a quick little hiccup or pause between the seams as it switches from one playlist stream to the next. Can anyone shed some light on this, is there something I can do to smooth this out, or should this be expected?  thanks,  bto

    This topic has been closed for replies.
    Correct answer Asa_-_FMS

    Likely the indexed plays that you're making into the file are hitting at non keyframe locations.  This means to get an image FMS must send that image and all the images back to the keyframe before it to get a clean image to start on.  That's expensive and CPU costly.  The solution would be to find the keyframe in the file you're targetting to switch to and only do so there.

    Of course, FMS' MBR code will do this for you already so you may as well use it.  Just use the play2 command and you should get smooth transitions that way.  Happy hunting.

    A

    1 reply

    Asa_-_FMS
    Adobe Employee
    Asa_-_FMSCorrect answer
    Adobe Employee
    December 1, 2009

    Likely the indexed plays that you're making into the file are hitting at non keyframe locations.  This means to get an image FMS must send that image and all the images back to the keyframe before it to get a clean image to start on.  That's expensive and CPU costly.  The solution would be to find the keyframe in the file you're targetting to switch to and only do so there.

    Of course, FMS' MBR code will do this for you already so you may as well use it.  Just use the play2 command and you should get smooth transitions that way.  Happy hunting.

    A