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

## 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 an opened file object. Movies cannot stream from any other python objects.