I am using PsychoPy2 v1.85.1 on a Mac.
I am trying to use a video stimulus, with the setup that once the video plays in its entirety, PyschoPy should move on to the next routine. I am having some difficulties getting the video to play as intended. I have tried using various backends for movie playback, and each seem to have their own quirks in my environment:
moviepy: the video plays smoothly, but much slower compared to its original speed. The audio component plays at normal speed and stops, while the video plays much slower (past when the audio has stopped - i.e. audio and video are out of sync). The experiment then progresses to the next routine as intended.
avbin: the video plays at correct speed, but is choppy. Audio and video are in sync. However, when the video finishes playing, PsychoPy hangs, and I have to ‘Force Quit’ the experiment.
opencv: the video also plays at correct speed, but is extremely choppy (far greater choppiness than avbin). However, after the video finishes playing, the experiment does proceed to the next routine as intended.
At this point, I am unsure regarding how to get the system to play the movie at a correct speed. Am I missing something obvious? I would really appreciate any help. Thanks a lot in advance!
I have now checked my setup with multiple computers (both PC and Mac), and unfortunately this issue continues to persist. I am fairly certain that processing power is not the issue as I have tested with relatively powerful computers (>16GB RAM, dedicated graphics card, etc.).
To delve deeper, I looked into the initial configuration report, and didn’t find any sub-optimal values in the visual section:
openGL version 4.5.0 NVIDIA 382.33 openGL vendor NVIDIA Corporation screen size 1536 x 864 have shaders True visual sync (refresh) 33.78 ms/frame during the drifting GratingStim refresh stability (SD) 0.17 ms SD < 0.5 ms is ideal (want low variability) no dropped frames 0 / 180 during DotStim with 100 random dots openGL max vertices 1048576 GL_ARB_multitexture True GL_EXT_framebuffer_object True GL_ARB_fragment_program True GL_ARB_shader_objects True GL_ARB_vertex_shader True GL_ARB_texture_float True GL_ARB_texture_non_power_of_two True GL_STEREO False
I cannot seem to find a solution at this point. Any help would be much appreciated!