Using MovieStim and MovieStim3

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()
1 Like

I got the same question.

I’m going to guess this is an issue with video drivers, and something about the hardware setup you’re using. Can you give more information about your video card, driver, and what the “projector” stuff is about?

Hey Jonathan,
Thanks for your reply.

I’m using a Quadro P2000 graphics card on a Windows 10 Pro machine.

The projector tuple holds the product ID and the vendor ID of the projector that I use (Lcr4500). Using the libusb-win32 driver and DLPC350 chip on the projector I’m able to do simple things like powering the projector on, putting it in sleep mode, and setting its LED states through a USB interface.