pygame documentation | || Home || Help Contents || || pygame || cdrom || constants || display || draw || event || || font || image || joystick || key || mixer || mixer_music || || mouse || movie || sndarray || surfarray || time || transform || || CD || Channel || Clock || Font || Joystick || Movie || || Rect || Sound || Surface || || color || cursors || sprite ||

## pygame.movie

The movie module is an optional pygame module that allows for decoding and playback of MPEG movie files. The module only contains a single function, Movie() which creates a new Movie object.
Movies are played back in background threads, so there is very little management needed on the user end. Just load the Movie, set the destination, and Movie.play()
Movies will only playback audio if the pygame.mixer module is not initialized. It is easy to temporarily call pygame.mixer.quit() to disable audio, then create and play your movie. Finally calling pygame.mixer.init() again when finished with the Movie.

Movie | - load a new MPEG stream

Movie
`pygame.movie.Movie(file) -> Movie`

Loads a new movie stream from a MPEG file. The file argument is either a filename, or any python file-like object