VideoIO.jl
VideoIO.jl copied to clipboard
Seek in loop jumps back and forth
Hi,
I am currently trying to sync up recorded data and a video, and I am running into a few issues:
Most notably, after loading the video (which I cannot share here), I try to run through it using the seek function and down sampled timestamps from my data. Using the following as a proof of concept works fine, and it goes through the correct frames from my video.
for t in 4:0.2:5#times[indx[1:5]]
seek(f, t)
read!(f, img)
makieimg[1] = img
sleep(1)
end
However, if I decrease the step size from 0.2 to 0.15 for example, every other frame jumps back to the beginning of the video. The video is (should be, there is further confusion here) 30fps, so there should be enough frames to find.
I have experimented with adding a seek(f, 1.0); sleep(1)
in the beginning of the loop to reset/ clear the buffer, but it still jumps to the beginning for every other frame.
I appreciate any suggestions to fix the problem, otherwise I thought I just would bring it up here in case there is some underlying issue.
Can you retry this with v0.9 and report if it still happens? It may be fixed