Hey. I’m new to PsychoPy and currently trying to project movies on a DLP Lcr4500. I haven’t had any luck with MovieStim or MovieStim3.
in case of MovieStim I get: avbin.dll failed to load. Try importing psychopy.visual as the first library (before anything that uses scipy) or use a differentmovie backend (e.g. moviepy).
in case of MovieStim3 I get: MovieStim3’ object has no attribute '_texID
Any help is appreciated.
"""
Simple code to check video projection
"""
from __future__ import division
from __future__ import print_function
from psychopy.visual import Window, MovieStim3, FINISHED
from psychopy import core, event, monitors
from psychopy.visual.windowframepack import ProjectorFramePacker
from projector_scripts._hardware.dlpc350.dlpc350 import DLPC350, power_down, power_up
projector = (0x0451, 0x6401)
power_up(projector[0], projector[1]) # power Up the projector
Lcr4500 = monitors.Monitor('LCr 4500')
win = Window(monitor=Lcr4500, screen=1,
fullscr=True, useFBO=True,
size=(1280, 800))
frame_packer = ProjectorFramePacker(win)
video_path = "\projector_scripts\projector_scripts\_stimuli\random1" #.avi video
stim = MovieStim3(frame_packer,
filename=video_path,
colorSpace='rgb',
noAudio=True)
while stim.status != FINISHED:
stim.draw()
core.wait(.1)
win.flip()
if event.getKeys():
break
win.close()
core.quit()