0

I am deploying a jwplayer (http://www.longtailvideo.com/players/jw-flv-player/) to a website and I am not 100% satisfied with the way the player behaves when you skip to a new position, you press the timeline at one spot, but it skips to a different location. (the elapsed time indicator)

This is also happening on youtube, especially on shorter videos: http://www.youtube.com/watch?v=hv7ha_iCM2Y

It seems this is a problem with flash video in general? Or can this be solved by using for instance streaming video instead of progressive HTTP playback?

Other things?

1
  • Flash Video player is really not precise. You have most of the time 5-7 images shift between real position and reported time. Maybe the developpers of flash video player have focused on network stuff. I don't even think time report accuracy was a requirement. Also Flash have much less ressources than VLC as it have no direct access to video acceleration most of the time. I struggled to develop an accurate video player for flash. I finally mange to do it but it took me months and it require special compression. I will post a link there soon if you're interesed.
    – bokan
    Oct 9, 2013 at 15:07

2 Answers 2

1

This is caused by something called GOP (no, not the Republican party) which is used when compressing video: http://en.wikipedia.org/wiki/Group_of_Pictures

In some compression methods the codec will need the information of the frames before to construct the actual frame and only every n-th frame (called a keyframe or I-Frame) will actually be stored "as is" - those are the frames you can skip to. This also means that it gets more noticeable on shorter videos as the scale of the time scrubbing gets more precise.

1
  • Thanks, I reconverted the file with more frequent keyframes, now it works fine. However when I play the same file (with fewer keyframes) in VLC for instance then it skips to the exact point I click on the timeline. If VLC can do this why not flash? Aug 31, 2011 at 11:27
1

Skipping in an FLV will actually skip to the nearest video keyframe. You can increase the accuracy by encoding the videos with a higher keyframe density, although this will increase the file size.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.