[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] pygame/pyopengl and mpeg



On a fast machine, you can do it at 30fps, or at least close enough.  
I've tried it.

basically I made a texture at the closest 2^n resolution, and updated a 
subtexture with the surface.

On Saturday, September 28, 2002, at 03:13 PM, Pete Shinners wrote:

> urmas eero wrote:
>> Is possible to play mpeg movies with pygame on opengl surface ?
>
> hmm, i don't expect you can display mpeg movies directly on an opengl
> display. your only hope would be to output the mpeg movie to an 
> offscreen
> surface, then convert the surface to a texture.
>
> for realtime playback, that likely won't be fast enough for 30fps 
> video. if
> the movie is short enough, you could prerender each frame of the movie 
> into
> a texture, but beware users without much texture memory.
>
> unfortunately this type of thing really requires some sort of platform
> dependant movie decoding, and i don't believe SDL has any support for 
> this.
> i guess the "try it and see" approach will be best. do share any 
> results
> you can get.
>
>
>
>
> ____________________________________
> pygame mailing list
> pygame-users@seul.org
> http://pygame.seul.org

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org