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: 11014
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-01-13T11:11:18-07:00

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 » 2006-03-21T14:13:02-07:00

Is it possible to set the mpeg-2 bit rate.

User avatar
magick
Site Admin
Posts: 11014
Joined: 2003-05-31T11:32:55-07:00

Post by magick » 2006-03-21T14:44:33-07:00

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