[Bug 992884] [NEW] convert to mpeg fails due to ffmpeg flags argument
rt_davies
992884 at bugs.launchpad.net
Tue May 1 21:47:12 UTC 2012
Public bug reported:
I have a script to make a directory full of jpegs into an mpeg movie.
It simply calls convert with a couple arguments. The script has worked
for 2 years. Recently, I ran it for the first time in a few months and
it failed with the following error message:
convert: delegate failed `"ffmpeg" -v -1 -mbd rd -flags +4mv+aic
-trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2 -i "%M%%d.jpg" "%u.%m" 2>
"%Z"' @ error/delegate.c/InvokeDelegate/1061.
After reading man pages and online documentation for a while, I believe
that the -flags argument is at fault. I believe that the current
version of ffmpeg does not accept a -flags argument at all. Removing it
from delegates.xml allows my old script to succeed again.
I propose the solution is to remove the -flags argument from
delegates.xml line 83:
$ diff /usr/lib/ImageMagick-6.6.0/config/delegates.xml.orig /usr/lib/ImageMagick-6.6.0/config/delegates.xml
83c83
< <delegate encode="mpeg:encode" stealth="True" command=""ffmpeg" -v -1 -mbd rd -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2 -i "%M%%d.jpg" "%u.%m" 2> "%Z""/>
---
> <delegate encode="mpeg:encode" stealth="True" command=""ffmpeg" -v -1 -mbd rd -trellis 2 -cmp 2 -subcmp 2 -g 300 -i "%M%%d.jpg" "%u.%m" 2> "%Z""/>
With the -flags argument removed, the delegate command matches the latest ImageMagick release (http://www.imagemagick.org/source/delegates.xml).
Here is more information about my configuration
$ sudo aptitude show imagemagick
Package: imagemagick
New: yes
State: installed
Automatically installed: no
Version: 8:6.6.0.4-3ubuntu1
$ uname -a
Linux 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
** Affects: imagemagick (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to imagemagick in Ubuntu.
https://bugs.launchpad.net/bugs/992884
Title:
convert to mpeg fails due to ffmpeg flags argument
Status in “imagemagick” package in Ubuntu:
New
Bug description:
I have a script to make a directory full of jpegs into an mpeg movie.
It simply calls convert with a couple arguments. The script has
worked for 2 years. Recently, I ran it for the first time in a few
months and it failed with the following error message:
convert: delegate failed `"ffmpeg" -v -1 -mbd rd -flags +4mv+aic
-trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2 -i "%M%%d.jpg" "%u.%m" 2>
"%Z"' @ error/delegate.c/InvokeDelegate/1061.
After reading man pages and online documentation for a while, I
believe that the -flags argument is at fault. I believe that the
current version of ffmpeg does not accept a -flags argument at all.
Removing it from delegates.xml allows my old script to succeed again.
I propose the solution is to remove the -flags argument from
delegates.xml line 83:
$ diff /usr/lib/ImageMagick-6.6.0/config/delegates.xml.orig /usr/lib/ImageMagick-6.6.0/config/delegates.xml
83c83
< <delegate encode="mpeg:encode" stealth="True" command=""ffmpeg" -v -1 -mbd rd -flags +4mv+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1/2 -i "%M%%d.jpg" "%u.%m" 2> "%Z""/>
---
> <delegate encode="mpeg:encode" stealth="True" command=""ffmpeg" -v -1 -mbd rd -trellis 2 -cmp 2 -subcmp 2 -g 300 -i "%M%%d.jpg" "%u.%m" 2> "%Z""/>
With the -flags argument removed, the delegate command matches the latest ImageMagick release (http://www.imagemagick.org/source/delegates.xml).
Here is more information about my configuration
$ sudo aptitude show imagemagick
Package: imagemagick
New: yes
State: installed
Automatically installed: no
Version: 8:6.6.0.4-3ubuntu1
$ uname -a
Linux 3.0.0-17-generic #30-Ubuntu SMP Thu Mar 8 20:45:39 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -rd
Description: Ubuntu 11.10
Release: 11.10
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/992884/+subscriptions
More information about the foundations-bugs
mailing list