Hi,
I’m trying to design an experiment that will play video clips but I cannot get the movie feature to work. I have tried using MovieStim, MovieStim2 and MovieStim3 but all I get is the following error message:
portaudio error in Pa_AbortStream: Unanticipated host error
Traceback (most recent call last):
File “C:\Users\Josh\Documents\University\Year 4\Creating Psychological Experiments\Experiment\Flint\VideoStim (Fixed)_lastrun.py”, line 123, in
depth=0.0,
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 181, in loadMovie
jwe_tmp.audio.to_soundarray(),
File “”, line 2, in to_soundarray
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\decorators.py”, line 54, in requires_duration
return f(clip, *a, **k)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\audio\AudioClip.py”, line 114, in to_soundarray
chunksize=buffersize))
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\numpy\core\shape_base.py”, line 230, in vstack
return _nx.concatenate([atleast_2d(_m) for _m in tup], 0)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\audio\AudioClip.py”, line 81, in generator
buffersize=chunksize)
File “”, line 2, in to_soundarray
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\decorators.py”, line 54, in requires_duration
return f(clip, *a, **k)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\audio\AudioClip.py”, line 127, in to_soundarray
snd_array = self.get_frame(tt)
File “”, line 2, in get_frame
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\decorators.py”, line 89, in wrapper
return f(*new_a, **new_kw)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\Clip.py”, line 95, in get_frame
return self.make_frame(t)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\Clip.py”, line 136, in
newclip = self.set_make_frame(lambda t: fun(self.get_frame, t))
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\Clip.py”, line 188, in
return self.fl(lambda gf, t: gf(t_func(t)), apply_to,
File “”, line 2, in get_frame
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\decorators.py”, line 89, in wrapper
return f(*new_a, **new_kw)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\Clip.py”, line 95, in get_frame
return self.make_frame(t)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\audio\io\AudioFileClip.py”, line 71, in
self.make_frame = lambda t: reader.get_frame(t)
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy\audio\io\readers.py”, line 193, in get_frame
“but len(buffer)=%d\n”%(len(self.buffer))+ str(error))
IOError: Error in file Neutral.mp4, At time t=92.97-94.00 seconds, indices wanted: 100000-133492, but len(buffer)=132975
index 132975 is out of bounds for axis 0 with size 132975
I’ve been primarily using builder view but if someone can show me how to design this in coder view, that would be fine. Also, I’ve attached the builder view file below. If anyone could help me out, I’d really, really, really appreciate it please.
VideoStim (Fixed) 2.0.psyexp (21.3 KB)
Thanks,
Josh