-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serious bug in VideoFileClip.get_frame time to frame# transformation #122
Comments
Poking around more, the bug seems to be that when get_frame calls initialize with a non-zero time, self.pos becomes offset from the actual position by one. |
Thanks for the report, this is a serious bug indeed. The strange thing is that apparently the bug appears for some videos, and not for others. I am not sure yet, but that could be a question of where the "key-frames" are or something like that. I'll investigate. |
Thanks for the response and for looking into this. I'll let you know if I find other clues. |
Very likely no longer valid |
I am still getting this issue when iterating through the frames with a time index. |
I've found a bug in VideoFileClip.get_frame(t).
For some times t (not all), the frame returned by get_frame(t0) changes depending on prior calls to get_frame.
For example, the following code will print the value False, unless I comment out the request for frame100.
It turns out frame101_v1 is equal to frame102.
The bug appears to be related to code in ffmpeg_reader.py that attempts to optimize the speed of get_frame seeking behavior.
The text was updated successfully, but these errors were encountered: