Play Frame by Frame with a slider (fastSeek)
Schizo opened this issue · comments
I'm trying to be able to play a video frame-by-frame for analysis purposes. An example would be this.
So I've and hooked up the oninput
of the range slider with player.currentTime = 8.3 / 100 * value;
. The 8.3
is the duration of the file. However, this is jittery and it has troubles refreshing every frame. I first thought there is a buffer of frames it keeps in cache, but I couldn't tell how big that buffer is, as I couldn't deduce it from the behavior, nor I wasn't sure where to check that in the chrome/firefox debugger.
Then I found the fastSeek
function as part of the player class, YES!! but it expects keyframes to do fast seek. No problem, I've generated a webm file with a keyframe interval of 1 and then hooked up the snippet player.fastSeek(value)
. But that didn't help either.
I wen't over #433, so for small ranges that should actually work right? The Files I'm inspecting are short clips of ~200 Frames.
Thanks!
I've gotten some similar feedback about fastSeek not acting as expected in this scenario, just haven't had the time to track it down yet. Will take a peek later this week at both...
Sounds good! Feel free to send anything you need to be tested.