What does pygame.Movie mean by `an MPEG file'?

Thomas Jollans nospam at jollans.com
Wed Sep 28 08:53:27 EDT 2005


Christophe wrote:
> Kilian A. Foth a écrit :
> 
>> I just found this amazing video puzzle game written with the pygame
>> library, which promises to be infinite fun - but I can't get it to
>> decode any video file I own, except the game's own example .mpg. All I
>> have is lots and lots of useless .avi, .mp2, .wmv, and so on...
>>
>> Now, the pygame.Movie documentation says the Movie class can decode
>> `MPEG movie files'. I know little about multimedia, but I thought
>> divx/xvid video was a variant of MPEG4, and mp3 audio a variant of 
>> MPEG1 Layer 3. So obviously, `MPEG movie files' means something more
>> specific than just `contains MPEG streams'. Does anyone know what
>> precisely it means? Even better, how should I instruct transcode or
>> similar programs to re-encode existing files so that Movie objhects
>> can be created from them?
> 
> 
> An mpeg file is a file with the .mpg or .mpeg extension. IIRC, it's a 
> raw mpeg 1 or 2 stream dumped in a file. Not sure about the raw stream 
> but I'm sure it can only be mpeg 1 or 2.

I doubt that it is a raw stream dump, since it would have to contain an 
audio and a video stream ?
There is probably an mpeg container format, such as ogg is only a 
container for vorbis or theora streams.



More information about the Python-list mailing list