MPEG encoding?

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

ImageMagick supports both MPEG-1 and MPEG-2 reading and writing. To write an MPEG simply add the mpg or m2v extension to your filename or prefix the filename with mpg: or m2v:. For example:
  • convert *.jpg m2v:myvideo
MPEG support does require an external delegate, the mpeg_decode and mpeg_encode programs. These are included with the Windows distribution of ImageMagick, otherwise grab them from ftp://ftp.imagemagick.org/pub/ImageMagick/delegates.
Jonas

Post by Jonas »

Is it possible to set the mpeg-2 bit rate.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

You can affect the MPEG creation with the -quality , -delay, -ticks-per-scond, and -sampling-factor command line options. You could always edit the source of coders/mpeg.c to adjust the MPEG configuration file.
Post Reply