I am currently working with a RPi 3B (latest Raspbian Jessie) on a little project which involves playing a short .mp4 file. As Pygame seemed to support playing .mpg files, so I converted my video into that format.
When I tried to import the movie module however, I get the common python import error:
Traceback (most recent call last):
File "film_app.py", line 3, in <module>
import pygame.movie
ImportError: No module named movie
After some research, I figured others had the same issue as described here. I did not really understand if there is a solution to it, or what alternatives I have on a RPi.
Pygame, python and Raspbian are up to date.
movie
is not a sub package ofpygame
Use it like this:
Note however:
The movie api is deprecated and your pygame will most likely not contain any code for this api.
The code will just throw a NotImplementedError exception.
Sadly you cant use pygame for movies like this anymore.
Here Lenard Lindstrom explains this: