[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] No video playback on Windows XP
- To: pygame-users@xxxxxxxx
- Subject: [pygame] No video playback on Windows XP
- From: Andy Buecker <abuecker@xxxxxxxxx>
- Date: Tue, 26 Jul 2005 14:01:20 -0700
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Tue, 26 Jul 2005 17:01:33 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=BfpwCj/EivU3fitDHiigtfJV1zOfEjT6b6hsy1M+939/5/VXMLRWjlRII3g9PeMUJ2ph0w+RlTBcCak1lGPYGljc8LUwwqSGs9ALOA2/V0Y1puHKDSp7BIBYtHdRweRyRxMkcKhnbJvr2t16CQDK1n/UMtja3BXkOkBJGIo7d8E=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
I can't seem to get video playback on Windows XP. I can hear the
audio and I'm echoing the frame number fine, but I don't see any
video. Playback of the same code works fine on Linux.
I've tried using the 1.6 python 2.4 binary package and a version
compiled from the 1.6 source as well. No luck. The 1.7 binary for
windows doesn't seem to have the movie module with it.
Any hints would be greatly appreciated.
-A
Code:
import pygame
import sys
from pygame.movie import *
from pygame.surface import *
pygame.init()
pygame.mixer.quit()
m = Movie('C:\test.mpg')
s = pygame.display.set_mode(m.get_size())
pygame.display.set_caption('Test')
m.set_display(s)
m.play()
while 1:
if m.get_busy():
print "frame: " , m.get_frame()
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
m = None