开发者

Flash video and precise skipping

开发者 https://www.devze.com 2023-04-01 09:53 出处:网络
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

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 ha开发者_运维百科ppening 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?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消