Trying to convert JPEG to MPEG file, Delegate failed ffmpeg

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
jimmydean

Trying to convert JPEG to MPEG file, Delegate failed ffmpeg

Post by jimmydean »

Simple (or one would seem) convert "file1.jpg" "file1mpeg"

Result:
convert: Delegate failed `"ffmpeg" -v -1 -i "%M%%d.jpg" "%u.%m" 2> "%Z"' @ delegate.c/InvokeDelegate/1015.

zero byte file "file1.mpeg". I just installed ImageMagick-6.5.1-8 rpm on RHEL5. Any help would be great, thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Trying to convert JPEG to MPEG file, Delegate failed ffmpeg

Post by fmw42 »

did you install any MPEG delegate library

see http://www.imagemagick.org/download/delegates/

Also try 6.5.1-9 as 6.5.1-8 had compile problems for me
jimmydean

Re: Trying to convert JPEG to MPEG file, Delegate failed ffmpeg

Post by jimmydean »

fmw42 wrote:did you install any MPEG delegate library

see http://www.imagemagick.org/download/delegates/

Also try 6.5.1-9 as 6.5.1-8 had compile problems for me
I installed ImageMagick-6.5.1-9.i386.rpm, but it displays as ImageMagick.i386 0:6.5.1-8.

What Libraries do I need? I have no idea.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Trying to convert JPEG to MPEG file, Delegate failed ffmpeg

Post by fmw42 »

what version do you get from

convert -list configure


I don't use MPG, so am not sure, but you might need mpeg2dec-0.2.0.tar.gz from the delegate list. You will have to download it and see what its install notes say as to whether that might be needed.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Trying to convert JPEG to MPEG file, Delegate failed ffmpeg

Post by magick »

We recently switched from MPEG2 to ffmpeg. Install ffmpeg to read / write MPEG images with ImageMagick.
jimmydean

Re: Trying to convert JPEG to MPEG file, Delegate failed ffmpeg

Post by jimmydean »

So I have everything installed (or so it seems) now.

I am trying to convert a jpeg file to a single frame mpeg file. If I do a simple "convert sample.jpg movie.mpg" it creates a file.

Original file was 36269 bytes, new file is 6144 (not zero) but the file does not display using mplayer. Are there additional steps, or something else I should use?

Thanks for the help.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Trying to convert JPEG to MPEG file, Delegate failed ffmpeg

Post by magick »

mplayer apparently does not like 1 frame mpeg images. We tried ffplay and it worked without complaint.
jimmydean

Re: Trying to convert JPEG to MPEG file, Delegate failed ffmpeg

Post by jimmydean »

Good to know, I will give that a shot. Thanks again for the help, it would be awesome to get this to work.
jimmydean

Re: Trying to convert JPEG to MPEG file, Delegate failed ffmpeg

Post by jimmydean »

So should the mpeg file be smaller than the original jpeg file? ffplay isn't displaying it either at the moment, but it might be a problem with ffplay. The image isn't displaying in any player at this point. Is there another method or option I should be using?

"convert bike.jpg bike.mpeg" seems straight forward.
nuunkotad

Re: Trying to convert JPEG to MPEG file, Delegate failed ffmpeg

Post by nuunkotad »

hello.
same problem here.
invoking:
convert 001.jpg 001.mpg

gives out:

convert: Delegate failed `"ffmpeg" -v -1 -i "%M%%d.jpg" "%u.%m" 2> "%Z"' @ magick/delegate.c/InvokeDelegate/1015.

system:
xubuntu jaunty 64-bit
ImageMagick 6.4.5 2009-06-04 Q16 OpenMP
FFmpeg 0.5-svn17737+3:0.svn20090303-1ubuntu6

any solution?
thank you.
nuunkotad

Re: Trying to convert JPEG to MPEG file, Delegate failed ffmpeg

Post by nuunkotad »

so the problem was that image size was too big?
when image resized from 2816x2112 to 704x528 it makes movie file.

but still have problem that only first image is added to movie.

thank you.

so setting '-delay 100' made 3sec movie and i can see that last 2 seconds image is going worse, and still only one image added.
btw trying to make slideshow of some 40 images

if anyone have an solutin to my problem i will be very glad.
ror_dev
Posts: 1
Joined: 2013-01-16T06:40:28-07:00
Authentication code: 6789

Re: Trying to convert JPEG to MPEG file, Delegate failed ffm

Post by ror_dev »

Hi everyone!

Stuck with this porblem too.

The error looks like:

Code: Select all

delegate failed `"ffmpeg" -v -1 -mbd rd -trellis 2 -cmp 2 -subcmp 2 -g 300 -i "%M%%d.jpg" "%u.%m" 2> "%Z"' @ error/delegate.c/InvokeDelegate/1065
Is there any solution? How to convert jpeg to mpeg while jpgs is 885x585px? If I reduce resolution it works fine, but I need exactly this resolution!
Post Reply