--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/ee82cbd8-281a-4c8c-9d59-abbde7e31e9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Jonathan Peirce University of Nottingham http://www.peirce.org.uk
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
Hi Jon,
Thanks for the prompt reply.
It seems you are mostly right on the video format. I converted these vids to .avi with MP3 audio (as for some reason I couldn’t selected uncompressed or PCM in my conversion software) and the majority of videos worked just fine under MovieStim3. That said there was one video (that I will send to you) which, even though it was encoded the same, still threw that out of bounds error that I described above. This was using Windows7 with PsychpoPy 1.83.03 in case that helps.
After updating to 1.83.03, this got rid of my audio errors in videos without sound but only after performing the fix that Frank Papenmeier details here: https://groups.google.com/forum/m/#!msg/psychopy-users/UAvwnU4apx4/qBnzTNfYCgAJ i.e. removing the single argument in GL.glPopAttrib(GL.GL_ENABLE_BIT) function detailed on line 356 of movie3.py.
Cheers
Kris
pyo version 0.6.6 (uses single precision)
Traceback (most recent call last):
File "C:\Users\xxx\test_video_lastrun.py", line 321, in <module>
depth=0.0,
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.83.04-py2.7.egg\psychopy\visual\movie3.py", line 121, in __init__
self.loadMovie(self.filename)
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.83.04-py2.7.egg\psychopy\visual\movie3.py", line 168, in loadMovie
self._audioStream = sound.Sound(self._mov.audio.to_soundarray(),
File "<string>", line 2, in to_soundarray
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-0.2.2.11-py2.7.egg\moviepy\decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-0.2.2.11-py2.7.egg\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-0.2.2.11-py2.7.egg\moviepy\audio\AudioClip.py", line 81, in generator
buffersize=chunksize)
File "<string>", line 2, in to_soundarray
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-0.2.2.11-py2.7.egg\moviepy\decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-0.2.2.11-py2.7.egg\moviepy\audio\AudioClip.py", line 127, in to_soundarray
snd_array = self.get_frame(tt)
File "<string>", line 2, in get_frame
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-0.2.2.11-py2.7.egg\moviepy\decorators.py", line 89, in wrapper
return f(*new_a, **new_kw)
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-0.2.2.11-py2.7.egg\moviepy\Clip.py", line 95, in get_frame
return self.make_frame(t)
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-0.2.2.11-py2.7.egg\moviepy\audio\io\AudioFileClip.py", line 71, in <lambda>
self.make_frame = lambda t: reader.get_frame(t)
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\moviepy-0.2.2.11-py2.7.egg\moviepy\audio\io\readers.py", line 196, in get_frame
"but len(buffer)=%d\n"%(len(self.buffer))+ str(error))
IOError: Error in file 3003.avi, At time t=40.82-41.64 seconds, indices wanted: 100000-136323, but len(buffer)=136305
index 136305 is out of bounds for axis 0 with size 136305