Video crashes differently with all three backends

Hi,
I recently upgraded to 1.84.1 and am running it on a new Windows 10 laptop. When I test the movie stimuli by putting calling one video clip, all three video backends fail in different ways. avbin doesn’t work at all (crashes the computer); opencv plays the video a few times perfectly but then stops and displays the following error:

Running: D:\Users\ms16492\Desktop\EmphGemVideoCategorization\test2_lastrun.py #
pyo version 0.8.0 (uses single precision)
C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\visual\movie2.py:352: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
dtype=numpy.uint8)
Traceback (most recent call last):
File “D:\Users\ms16492\Desktop\EmphGemVideoCategorization\test2_lastrun.py”, line 208, in
win.flip()
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\visual\window.py”, line 568, in flip
thisStim.draw()
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\visual\movie2.py”, line 716, in draw
self._updateFrameTexture()
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\visual\movie2.py”, line 679, in _updateFrameTexture
raise RuntimeError(“Could not load video frame data.”)
RuntimeError: Could not load video frame data.

And moviepy doesn’t play at all and displays the following error message:

Running: D:\Users\ms16492\Desktop\EmphGemVideoCategorization\test2_lastrun.py #
pyo version 0.8.0 (uses single precision)
C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\visual\movie2.py:352: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
dtype=numpy.uint8)
Traceback (most recent call last):
File “D:\Users\ms16492\Desktop\EmphGemVideoCategorization\test2_lastrun.py”, line 208, in
win.flip()
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\visual\window.py”, line 568, in flip
thisStim.draw()
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\visual\movie2.py”, line 716, in draw
self._updateFrameTexture()
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\visual\movie2.py”, line 679, in _updateFrameTexture
raise RuntimeError(“Could not load video frame data.”)
RuntimeError: Could not load video frame data.

Running: D:\Users\ms16492\Desktop\EmphGemVideoCategorization\test2_lastrun.py #
pyo version 0.8.0 (uses single precision)
WARNING:root:Warning: could not find imageio’s ffmpeg executable:
[Error 5] Access is denied: 'C:\Program Files (x86)\PsychoPy2\lib\site-packages\imageio\resources\ffmpeg\ffmpeg.win32.exe’
Traceback (most recent call last):
File “D:\Users\ms16492\Desktop\EmphGemVideoCategorization\test2_lastrun.py”, line 166, in
depth=0.0,
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\contrib\lazy_import.py”, line 120, in call
return obj(*args, **kwargs)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\visual\movie3.py”, line 124, in init
self.loadMovie(self.filename)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.1-py2.7.egg\psychopy\visual\movie3.py”, line 170, in loadMovie
self._mov = VideoFileClip(filename, audio=(1 - self.noAudio))
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\video\io\VideoFileClip.py”, line 55, in init
reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\video\io\ffmpeg_reader.py”, line 32, in init
infos = ffmpeg_parse_infos(filename, print_infos, check_duration)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\video\io\ffmpeg_reader.py”, line 237, in ffmpeg_parse_infos
proc = sp.Popen(cmd, **popen_params)
File “C:\Program Files (x86)\PsychoPy2\lib\subprocess.py”, line 710, in init
errread, errwrite)
File “C:\Program Files (x86)\PsychoPy2\lib\subprocess.py”, line 958, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

Any thoughts?

Hi,
the following line from the error log of your MovieStim3 (moviepy) example might help:
"[Error 5] Access is denied: ‘C:\Program Files (x86)\PsychoPy2\lib\site-packages\imageio\resources\ffmpeg\ffmpeg.win32.exe’"
Moviepy uses ffmpeg in the background and it seems that it cannot find (or access) the specified file.
An idea that might help:

  • Run PsychoPy as Admin and try the moviepy example again (In earlier versions, it downloaded ffmpeg automatically on its first run and the missing access to your Program Files folder might prevent the download from succeeding)
    I hope that my intuition is correct and this will solve your issue.
    All the best,
    Frank.
1 Like

Hi Frank,
Thanks very much - that worked perfectly!
Thanks,
Mark

What do you mean by run PsychoPy as Admin?

Right click on PsychoPy icon -> select “Run as administrator”

Hope this helps,
Frank.

1 Like

Hi,
I was having the same issue and I tried to run PsycoPy as an administrator but am still getting the following error message.


I’m still quite new to PsycoPy so I’m not sure if this means I should download ffmpeg separately.

Any help would be greatly appreciated.

Carla