[Tutor] Convert bmp to mpeg

Alan Gauld alan.gauld at btinternet.com
Tue Aug 21 11:09:22 CEST 2007


"Per Jr. Greisen" <pgreisen at gmail.com> wrote
> I would like to make a method where I give a number of bmp-file as 
> argument
> and than create a mpeg format from these - is that possible with 
> python and
> which packages should I use?

MPEG is normally used for video (MP3 excepted) but if JPEG is OK then 
PIL
should do what you need. Read about it here:

http://www.pythonware.com/library/pil/handbook/index.htm

Most of the mpeg libraries seem to be for decoding or extracting
information only.

You might find that its simpler to use the ImageMagick (not Python)
toolset does what you want.

http://www.imagemagick.org/script/index.php

HTH,

Alan G.





More information about the Tutor mailing list