PsychoPy doesn't play video stimuli

OS: Win10
PsychoPy version: 2021.1.2

I am constructing a perception experiment with 3 versions of video files: the raw video, a version with black screen (so basically the audio-track only) and a version with parts of the video blurred. All 3 versions are in mp4 format, the stimuli are played randomized. Now whenever I run the experiment, it works for the raw video files but as soon as an edited file comes up, the experiment stops.

The error message looks like this:

Hello from the pygame community.
2.3772 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use [‘sounddevice’, ‘PTB’, ‘pyo’, ‘pygame’] (in that order).
Traceback (most recent call last):
File “C:\Users\Desktop\PsychoPy folder\”, line 436, in
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\contrib\”, line 120, in call
return obj(*args, **kwargs)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\”, line 140, in init
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\”, line 183, in loadMovie
self._mov = VideoFileClip(filename, audio=(1 - self.noAudio))
File “C:\Program Files\PsychoPy3\lib\site-packages\moviepy\video\io\”, line 91, in init
File “C:\Program Files\PsychoPy3\lib\site-packages\moviepy\video\io\”, line 37, in init
self.fps = infos[‘video_fps’]
KeyError: ‘video_fps’
Exception ignored in: <bound method MovieStim3.del of <psychopy.visual.movie3.MovieStim3 object at 0x00000285F49396D8>>
Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\”, line 499, in del
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\”, line 476, in _unload
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\visual\”, line 1141, in clearTextures
GL.glDeleteTextures(1, self._texID)
OSError: exception: access violation reading 0x0000000000000000

Experiment ended.

Does somebody here know what went wrong? Is it a problem with the files?


Check that all of the video files have the same sampling rate.

They do!