No module named 'pygame.movie'

Issue #238 resolved
Rafael Trindade
created an issue

Hi! I had cloned the lastest bitbucket pygame's version, compiled and installed on my Debian Jessie. Here my specs:

  • Debian 8 (Jessie) Testing
  • Intel core i5-4120u
  • Pygame 3.4 64bits installed by default on Debian
  • gcc (Debian 4.9.2-10) 4.9.2
  • g++ (Debian 4.9.2-10) 4.9.2
  • ffmpeg 2.6.1
  • sdl 1.2.15

I've done some games before with pygame, I prefer the 1.9.2a0 version from bitbucket because it imports freefont and Mixer module but the Debian repository version (1.9.1release+dfsg-10+b1) doesn't (and its for python2)

If I do

from pygame import movie

it imports, but has only the values info, name, reason, urgent and the function warn

If I try to run the examples/movieplayer.py or examples/__movie_test.py I get the error:

Traceback (most recent call last):
  File "__movie_test.py", line 7, in <module>
    import pygame._movie as movie
ImportError: No module named 'pygame._movie'

what is wrong with my pygame module?

Comments (4)

  1. Lenard Lindstrom

    Remove Pygame's neglected, and broken, movie support: resolve Issue #238

    Though not properly documented, the pygame.movie module has been deprecated for some time, and was no longer built by default. The documented instructions for converting video files to MPEG1 using ffmpeg are outdated. I built the movie module was built and tested on 32-bit Linux Mint 17.1 (Ubuntu 14.04.2 LTS, Trusty Tahr) and tested it on a movie converted from MPEG4 using avconv (a fork of ffmpeg); pygame segfaulted. Also note that pygame.movie was problematic under Windows.

    The newer, experimental pygame._movie module, based on ffmpeg, never worked for me on Linux; it would lock up. Also, libav is now preferred over ffmpeg on Linux. Furthermore, it relies on SDL overlays, which disappear in SDL2.

    As a side note, pygame.examples.movieplayer was re-purposed to use pygame._movie instead of pygame.movie. This change was undocumented.

    I like the idea of movie support in Pygame. But pygame.movie uses the outdated smpeg library, and pygame._movie never quite worked right. Maybe another movie module can be written based on an existing command line movie player program.

    → <<cset e6a646891264>>

  2. Log in to comment