-
Notifications
You must be signed in to change notification settings - Fork 67
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
Video object returns array of zeros on second call #454
Comments
It looks like there are a few more ways to confuse the pims handle:
|
The code I pasted above shows the issue with pims 0.6.1 |
In case it's helpful, the data file I'm using is available here (it's a dataset used as part of a scientific software package): https://caiman.flatironinstitute.org/~neuro/caiman_downloadables/msCam13.avi |
I found a very weird way to reset the pims handle back to a healthy state, which may hint as to what's going on:
I'll still rely on the pims developers to fully understand (and ideally patch) it, but we may be able to workaround the bug for now. |
In digging into this, it's actually not pims' fault, as we've found a way to reproduce this using moviepy calls (which is the backend both of us are using).
We'll reach out to the moviepy project. |
Thanks a lot for the useful package! Sorry if my question betrays a basic misunderstanding:
I have an
avi
file that I am reading and pims works great accessing individual frames, initially:It prints out reasonable values:
But if I run the for loop again (without reloading the movie), I get arrays of zeros back:
Is this expected behavior? Am I supposed to be closing out the video and reloading it, or using a context manager, or something?
The text was updated successfully, but these errors were encountered: