-
Notifications
You must be signed in to change notification settings - Fork 26
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
Newest Stytra version does not save video in some experiments -> found a potential fix #78
Comments
I think the main issue is actually on line 255. There the fallback is specified for |
Thank you! I tested this with my stimuli and it appears to work well! |
Sadly I have to retract the previous comment, after trying some more experiments today, I encountered the same error message again with the code you proposed. Adding back my line as well as your line of code appears to be working for now. |
Does this mean that both lines of code need to be added for it to work, or does your code work as a stand-alone as well? EDIT: |
Thank you! I'll check #79 later today and report back! |
The code in #79 works for me without problems now! |
Great to hear! Thanks for all the help getting this resolved! |
Hi everyone,
I have found out that the error I reported in #76 (comment), was probably unrelated to the changes I made to the naming of the files. When returning to the most recent original Stytra version, without my changes except for the stimuli I created, the problem persisted (for certain stimuli, and not all the time). This was the error message:
I found out that the error is caused by the
self.__container_filename
being empty at the time when the av container needs to be opened. As far as I understand, a different process is running in the background to create the filename, and somehow for certain (harder to compute?) stimuli that lasts too long. Since the new Stytra version includes the variableself.CONST_FALLBACK_FILENAME
, to later be replaced by the correct filename, I added the following lines in theC:\Users\zuidinga\PycharmProjects\stytra_birte\stytra\stytra\hardware\video\write.py
script, and as far as I can see, all my stimuli work now (no crashing and no unsaved videos anymore):At line 283:
If this is how the fallback filename is supposed to be used, could you incorporate this change in the program?
The text was updated successfully, but these errors were encountered: