ActiveDen

Slow down video playback

3376 posts
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 6-7 years
  • Microlancer Beta Tester
  • Referred between 500 and 999 users
  • Sold between 100 000 and 250 000 dollars
+1 more
bobocel says

Ok, this sounds like a difficult question. I know some flv players out there that are able to slow down the video and audio playback w-i-t-h-o-u-t lowering the pitch.

I want to add this feature (+ more) to the second version of the video player I uploaded here on Flashden.

Here is a sample:

sofrenchysochic.com

Press on video, and then select a video, and select the connection speed. You’ll see a “slow” button there.

Any ideas how they do that? I think this would be useful for some types of videos.

17 posts
  • Bought between 10 and 49 items
  • Has been a member for 6-7 years
forwardtrends says

All they are doing is setting different cache rates for the video player – ie. if it’s broadband start playing in 5 seconds – if dial up start playing in 20.

You can also pseudo-test the users connection with a bit of actionscript and eliminate them having to choose:

Load a graphics – test the milliseconds it takes to load – then determine the users speed based on that.

Hope this helps

3376 posts
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 6-7 years
  • Microlancer Beta Tester
  • Referred between 500 and 999 users
  • Sold between 100 000 and 250 000 dollars
+1 more
bobocel says

You did not understand my question. Please read again. ;)

17 posts
  • Bought between 10 and 49 items
  • Has been a member for 6-7 years
forwardtrends says

Sorry.

There’s no real way to speed up or slow down the fps of an flv after the stream has started. So what you want to do is play the original video and store some BitmapData Objects (screenshots of the flv) in an array while it’s playing. Than you can ouput the stored Objects in at any given intervall overtop of the actual flv.

Hope this helps.

3376 posts
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 6-7 years
  • Microlancer Beta Tester
  • Referred between 500 and 999 users
  • Sold between 100 000 and 250 000 dollars
+1 more
bobocel says

More or less.. the issue is that video will need to have audio too, and here.. well, I see no way of doing that. :)

But you have any ideas how they are actually doing it? I guess they load two different flv files, based on the button pressed.. but I am soo unsure they do like this .. because the way the video is passing from one speed to the other is in a blink of an eye. It’s really bugging me right now.. :)

17 posts
  • Bought between 10 and 49 items
  • Has been a member for 6-7 years
forwardtrends says

They are doing exactly as I said… whenever “slow” is pressed they overlap the flv with a stream of images that have already been loaded into the buffer… here I found this that includes some source for you to check out:

http://www.flashcomguru.com/index.cfm/2005/8/2/slowmo

3376 posts
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 6-7 years
  • Microlancer Beta Tester
  • Referred between 500 and 999 users
  • Sold between 100 000 and 250 000 dollars
+1 more
bobocel says

Thank you. I’ll have a look. The problem is this: if the video will be 1.5x faster, the audio also needs to be 1.5x faster.

Let me look at that link first, and if I find the solution I will write it here. I must know if this can or cannot be done. :)

by
by
by
by
by