[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] playing an mpeg



Hi all

I'm trying to play an mpeg file using pygame. I've tried something simple like this:

import pygame
from pygame.movie import *

pygame.init()
m = Movie('e:/movie.m1v')
m.play()

and something a bit more complicated:

import pygame
from pygame.movie import *
from pygame.surface import *

pygame.init()
m = Movie('e:/movie.m1v')
s = Surface(m.get_size())
m.set_display(s)
m.play()

but neither of them play the movie.
--
sashan
http://www.cs.auckland.ac.nz/~sgov008/