MPEG Maker

There are several programs available to turn a series of images into an MPEG, but all the ones I know of require a complex parameter file to specify encoding parameters and file locations. The make_mpeg program analyses a directory and generates a parameter file that can be read by the Berkeley MPEG encoder.

There are command-line options to specify the input directory, to resize input files, and to automatically use reasonable defaults. It works with JPEG and PPM files. If there are multiple series of images in the directory, the program lists them all and asks you which one you want to use. It defaults to the most recently-written series. There’s a --yes flag that will do the right thing most of the time without asking you any questions.

Eventually I’d like to add options for specifying MPEG quality, but I don’t know enough about MPEG files and Berkeley’s encoder to know how to tweak the parameters. The default values are rather crummy. If anyone knows values for various space/quality tradeoffs, please let me know.

You can download the source. I’ve only tested it on Red Hat Linux 7.3.


% make_mpeg
The following series were found. Please specify the one
to turn into an MPEG:

1. *.jpg [10-16+2]
2. out*.ppm [0-180+20]
3. dcp_*.jpg [4029-4033]

[3] 2
Using pictures series "out*.ppm [0-180+20]".
Warning: overwriting file "out.mpg".
Do you want to make the MPEG? [Y/n]

Back to projects