Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Video Seek - Seek times accurate to milliseconds   Message List  
Reply | Forward Message #117871 of 150926 |
I'm trying to figure out how to get more accurate seek times (to
milliseconds). I've been using the VideoDisplay and imported Flash's
FLVPlayback component to Flex. For the reference video I'm using, I
get about a 3-4 second accuracy, when the frame rate is at 30fps.

From my understanding, all video files loaded into Flex/AIR are
considered progressive downloads, and therefore can only seek to
keyframes*.

I've been messing around with a couple ideas:
- skipping to the previous keyframe, play, and pause on exact time
- extending videoplayback/video class to take a "screenshot" of the
frames in between
- dynamically creating cuepoints for the video at 100 ms intervals

It would be great if you guys comment on other suggestions or the
feasiblility of the above solutions.




* Just for reference, this is the javadocs for FLVPlayback.seek():

"Seeks to a given time in the file, specified in seconds, with a
precision of three decimal places (milliseconds).

For several reasons, the playheadTime property might not have the
expected value immediately after you call one of the seek methods or
set playheadTime to cause seeking. First, for a progressive download,
you can seek only to a keyframe, so a seek takes you to the time of
the first keyframe after the specified time. (When streaming, a seek
always goes to the precise specified time even if the source FLV file
doesn't have a keyframe there.) Second, seeking is asynchronous, so if
you call a seek method or set the playheadTime property, playheadTime
does not update immediately. To obtain the time after the seek is
complete, listen for the seek event, which does not start until the
playheadTime property has updated."




Tue Jul 1, 2008 12:08 am

liu_bai_un
Offline Offline
Send Email Send Email

Forward
Message #117871 of 150926 |
Expand Messages Author Sort by Date

I'm trying to figure out how to get more accurate seek times (to milliseconds). I've been using the VideoDisplay and imported Flash's FLVPlayback component to...
liu_bai_un
Offline Send Email
Jul 1, 2008
2:58 am

From what I recall, seek accuracy is dependant on the keyframe rate of your FLV (which is not the same as the frame rate of your FLV), and not fps of the app. ...
Joseph Balderson
josephbalderson
Offline Send Email
Jul 1, 2008
5:33 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help