Showing movie in Open Sesame
in OpenSesame
Hi,
I have an experiment where I run 20 movies of about one minute each.
At first I ran it via PsychoPy using MovieStim (because I need to use PyGaze), but half of the times PsychoPy stopped working.
I now downloaded OpenSesame and looking for a code that will show the movies. I found a code in this forum which uses PsychoPy but it did not run for me (no error, just a blank screen) and I am not sure why would it be better than PsychoPy standalone.
Did anybody ever tried showing movies in OpenSesame and can share the code?
Thanks!
Noa
Comments
Hi Noa,
You actually don't need to write any code to show movies in OpenSesame: You can simply use the
media_player_mpyitem. There should be an icon for this item in your item toolbar and you can drag this icon into your experiment tree (at the point which you want to show the movie). Let me know if this works for you.Hi Daniel,
Sorry for the late response. It did work for me on one computer, and then I had some problems when I tried to move it to a different computer (the one which is connected to the experiments room...)
First, our computer is not connected to the internet (to eliminate problems during the experiments).
So I moved the OpenSesame installation file on a disk on key and installed it. Then when I opened my experiment I got an error that OpenSesame cannot download ffmpeg.win32.dll. Actually I did have ffmpeg.win32.dll on the computer (in PsychoPy's libraries) but to eliminate problems I did connect it to the internet and it let me run.
But the major problem is that on this computer the movies are not synchronized to the audio. So the audio is heard on a normal rate but the visual part is much slower and does not finish when the audio part finishes.
I am not sure what could cause that problem and how I can fix it.
This is quite crucial because we need that the visual will be synchronized with the audio.
When I run the movies from Windows media player, they are run normally and synchronized.
I tried running with backend Expriment and also with PsychoPy backend but it was the same.
Do you have any suggestion?
Does it have anything to do with the versions on avbin/pygame etc. ? (I did not check that)
Thanks!
Noa