Hello everyone. I am trying to create an experiment with 2 blocks that involve randomized video stimuli. I have seen videos including excel files however when i tried it i got many errors that unfortunately i cannot resolve. I know it has to do with the video stimuli i am adding and its option…size of the video etc but i really cant resolve it. Thank you in advance for your time!
What i tried:
I created the excel file with the file name/name of the stimuli+.mp4
What went wrong:
File “C:\Program Files\PsychoPy\lib\site-packages\moviepy\video\io\ffmpeg_reader.py”, line 285, in ffmpeg_parse_infos
line = [l for l in lines if keyword in l][index]
IndexError: list index out of range
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Users\nicky\Desktop\draft._lastrun.py”, line 94, in
movietest = visual.MovieStim3(
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\contrib\lazy_import.py”, line 118, in call
return obj(*args, **kwargs)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\movie3.py”, line 139, in init
self.loadMovie(self.filename)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\movie3.py”, line 228, in loadMovie
self._mov = VideoFileClip(filename, audio=(1 - self.noAudio))
File “C:\Program Files\PsychoPy\lib\site-packages\moviepy\video\io\VideoFileClip.py”, line 88, in init
self.reader = FFMPEG_VideoReader(filename, pix_fmt=pix_fmt,
File “C:\Program Files\PsychoPy\lib\site-packages\moviepy\video\io\ffmpeg_reader.py”, line 35, in init
infos = ffmpeg_parse_infos(filename, print_infos, check_duration,
File “C:\Program Files\PsychoPy\lib\site-packages\moviepy\video\io\ffmpeg_reader.py”, line 289, in ffmpeg_parse_infos
raise IOError((“MoviePy error: failed to read the duration of file %s.\n”
OSError: MoviePy error: failed to read the duration of file FINAL VIDSSS.xlsx.
Here are the file infos returned by ffmpeg:
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20200122
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
FINAL VIDSSS.xlsx: Invalid data found when processing input
Exception ignored in: <function MovieStim3.del at 0x000001F409DF5700>
Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\movie3.py”, line 571, in del
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\movie3.py”, line 548, in _unload
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\basevisual.py”, line 1188, in clearTextures
OSError: exception: access violation reading 0x0000000000000000