(BUG?) Problem encoding MPEG-animation from a pile of JPEG's

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
laurik_vertex

(BUG?) Problem encoding MPEG-animation from a pile of JPEG's

Post by laurik_vertex »

Hi,

I'm having a problem converting a pile of jpegs to mpeg-animation with ImageMagick 6.3.9-Q8.

ImageMagick generates an error message "N must be positive* convert: Delegate failed `mpeg2enc.exe "%i" "%o"'"

I've debugged ImageMagick 6.3.9 on Windows XP SP2, VisualStudio 7.1.3088 and it seems that Image Magick (version 6.3.9 which I tested ) is executing mpeg2enc with wrong parameters.
The N-value that mpeg2enc is complaining about is ok (has value 12) in parameter file generated by ImageMagick.

Image Magick executes the mpeg2enc.exe with the following parameters:
mpeg2enc.exe "PATH_TO_TEMP/magick-EMZiPPWd" "PATH_TO_TEMP/magick-UBa8cAXl"

where PATH_TO_TEMP is my temporary path. The file pointed by first parameter seems to have yuv-stream and the second is the parameter file for mpeg encoder.

However, regarding to the documentation of mpeg2encode, the parameters should be as:
"Usage: mpeg2encode in.par out.m2v"

I tested mpeg2encode with a proper parameter-order and data generated by ImageMagick, and I was able to create a playable mpeg-animation.

Is this a bug, or am I missing something here?

Best regards,

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

Re: (BUG?) Problem encoding MPEG-animation from a pile of JPEG's

Post by magick »

We have a patch in ImageMagick 6.3.9-7 Beta to fix the problem you reported. The patch will be available sometime tomorrow. Thanks.
Post Reply