Adding mp4 video to psychopy

Hi everyone, I need to add an mp4 video to psychopy. I have been struggling with this for the last two weeks and I don’t know anything about coding. I have added the video stimuli on the builder view, add the path but nothing works. Is it the same way as adding pictures?
I’m desperate, please!

It should work the same as pictures, yes! What isn’t working specifically? When you go to run your experiment, what text appears in the Runner window?

Hi! so i managed to add the video!
Thanks!

2 Likes

Hey stephanie! I am having the same problem, could you please let me know how did you solve the problem?
Thank you!

Stephanie didn’t specify what problem. What problem are you having?

I am getting this error:
AttributeError: ‘MovieStim3’ object has no attribute ‘_texID’

Experiment ended.

Try changing the movie opacity to 1.

However, see also.

1 Like

The first solution worked, the code ran but the video didn’t appear on the screen :frowning:

Check the video size. Can you hear it?

yeees, you’re right! now I can hear it but the image is missin. I suppose because of the size of the video.

fixed already! I converted the video into mpeg4 and I selected pixies as format of the video and works finally! :slight_smile: Thank you so much for the help.

1 Like