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

RE: [pygame] Using pygame for mpeg playback



Hi Tyler,

I found this burried in my emails.

Eventually I found that using it was better for me to use pygame to manage the window and events rather than glut, so now I am doing that and it works nicely. And as a result, the video issue isn't an issue for me anymore.

Matthew


Date: Sat, 4 Jul 2009 19:26:55 -0700
Subject: Re: [pygame] Using pygame for mpeg playback
From: trinioler@xxxxxxxxx
To: pygame-users@xxxxxxxx

I don't know much about the current movie module, however, I am the developer responsible for writing the new movie module, which will be able to do exactly what you're asking for.  But it will be a little while before its quite ready, unfortunately. About two months to be precise. Sorry you'll have to wait a bit... :/

-Tyler

On Sat, Jul 4, 2009 at 7:02 PM, Matthew Gibson <mdg583@xxxxxxxxxxx> wrote:
Hello,

I am trying to write a small program that uses opengl in python, and which has a video textures. I think I am making progress in the video texture side of things, but am having trouble playing mpeg videos in python. So far I've just tried pygame.

The issue is that video playback doesn't seem to work for me until the command pygame.display.set_mode(size) is given. The problem is that I don't want pygame to initiate a window, etc. I just want it to fetch images, draw things, play mpeg movies, and then I take the pixel data from pygame surfaces and map it onto opengl textures.

I was wondering if anyone knows either how to get videos to draw to surfaces without calling pygame.display.set_mode, or if anyone knows of a different, better way of playing mpeg movies in python?

Thanks,

Matthew


Create a cool, new character for your Windows Live™ Messenger. Check it out



--
Visit my blog at http://oddco.ca/zeroth/zblog


Stay on top of things, check email from other accounts! Check it out.