convert: 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
finn

convert: delegate failed `"ffmpeg"

Post by finn »

Hello,

I am having a problem installing ffmpeg to read/write MPEG images with ImageMagick.

I have ffmpeg installed and running

Code: Select all

[root@smt-web bin]# ffmpeg -version
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: 
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Apr 12 2010 06:31:03, gcc: 4.1.2 20080704 (Red Hat 4.1.2-46)
FFmpeg 0.5
libavutil     49.15. 0 / 49.15. 0
libavcodec    52.20. 0 / 52.20. 0
libavformat   52.31. 0 / 52.31. 0
libavdevice   52. 1. 0 / 52. 1. 0
I then added

Code: Select all

<delegate decode="ffmpeg" command='"ffmpeg" -i "%i" -y -vcodec png -ss %s -vframes 1 -an -f rawvideo "%o"' />
to my delegates.xml file located at /usr/local/lib/ImageMagick-6.6.1/config/delgates.xml.

Does the delgates.xml file need to be reinitialized somehow (and if so, how?)? Issuing convert -list delegate does not show the addition.

Is there a --with option I need to configure IM with? I didn't see one listed at http://www.imagemagick.org/script/advan ... lation.php
Perhaps there is something else I am missing...

To note, I have looked already at viewtopic.php?f=1&t=13650

Thank you for your help...it is much appreciated.
- Finn
finn

Re: convert: delegate failed `"ffmpeg"

Post by finn »

I think it may have been a problem using an older version of ffmpeg with the latest version of IM.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: convert: delegate failed `"ffmpeg"

Post by snibgo »

I haven't bottomed-out the best method of getting IM and ffmpeg to work well in Unix (Ubuntu 9.04), but a couple of tricks:

1: $ export LD_LIBRARY_PATH=/usr/local/lib/

2: install ffmpeg first, then IM.

Where did you get that line for delegates.xml from? That decode="ffmpeg" looks dodgy, but might be a new addition to IM.

In Windows, IM comes with a suitable version of ffmpeg, which saves a lot of headaches.
snibgo's IM pages: im.snibgo.com
Post Reply