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:
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.
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
You did not understand my question. Please read again.
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.
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..
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:
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.