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

[pygame] Using pygame for mpeg playback



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