[open] Video files not playing in Opensesame 0.27
I'm running Opensesame 0.27 on my Macbook pro with Mountain Lion OS. I'm using the version without the psychopy back end. I can Run the experiment, but once I get to the point when the videos should play the program crashes with the following error:
Integer argument expected, got float.
I'm not familiar with coding too much and would prefer to do this through the GUI. If that not possible I could try to code, but I'm just not very good at it.
Can anyone assist me with this please?
Comments
Hi Joe,
Could you provide some more details, such as how you specify which video should be played. Please also include the full error message.
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastian,
I just have a video .mov file in the video player file pool. Then I click Run and the experiment starts with the text I have specified in the initial sketchpad item. I have the video player item under the loop sequence. After I run the experiment it and it crashes the full error message is:
An unexpected error occurred, which was not caught by OpenSesame. This should not happen! Message: integer argument expected, got float
I tried to upload two screenshots. Not sure if they went through.
Hi Joe,
There is a bug in the
video_playerplug-in that triggers an error when not running in fullscreen, i.e. when 'Resize to fit screen' is set to 'no'. If you set this to 'yes', the video should play again. I filed an issue on this, but until this is fixed I'm afraid that this functionality is not available. Is this important for your experiment?Also, for future reference, there is (usually) a more elaborate error message in the debug window, which can be very helpful for debugging (and for people who try to help you on the forum!). See:
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Sebastian,
Sorry for the really late response. I had given up on Opensesame, but now I am trying to get this working again. When I set Resize Screen to Yes i get another error when playing video files. The error i receive is: object has no attribute 'surface'. i have tried avi, mov, mpg, mp4 video files and I get the same error message. Do you have any suggestions?
the debug windows says the following:
Hi Joe,
Right, the
video_playerplug-in requires the legacy back-end, because it relies on certain back-end specific functionality. So switching the back-end should solve this issue.If you find the
video_playerplug-in a bit unsatisfactory, which I can understand, you could also try themedia_player_gstplug-in, developed by @dschreij. You can find installation instructions here:Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hi Joe,
you can also have a look at the gstreamer variant of the media_player plugin. It has a built-in looping option, and also allows you to draw stuff on top (or below) a video frame. If you don't manage to do this by yourself, let me know and I may be able to help you with this.
Good luck