vvo / gifify

😻 Convert any video file to an optimized animated GIF.
ISC License
6.19k stars 314 forks source link

`no decode delegate for this image format` #10

Closed pixelastic closed 9 years ago

pixelastic commented 9 years ago

Hello,

I just tried to use gifify to extract a gif from a mp4 video I downloaded from YouTube, and got the following error:

$ gifify input.mp4 -o output.gif --from 257 --to 279 --resize 250:-1
convert.im6: no decode delegate for this image format `/tmp/magick-Ij8cWq6S' @ error/constitute.c/ReadImage/544.
convert.im6: no images defined `gif:-' @ error/convert.c/ConvertImageCommand/3044.

I'm on Ubuntu, with the following dependency versions:

$ fffmpeg -version
ffmpeg version 0.10.12-7:0.10.12-1~saucy1
built on Apr 26 2014 09:54:16 with gcc 4.8.1
configuration: --arch=amd64 --disable-stripping --enable-pthreads --enable-runtime-cpudetect --extra-version='7:0.10.12-1~saucy1' --libdir=/usr/lib/x86_64-linux-gnu --prefix=/usr --enable-bzlib --enable-libdc1394 --enable-libfreetype --enable-frei0r --enable-gnutls --enable-libgsm --enable-libmp3lame --enable-librtmp --enable-libopencv --enable-libopenjpeg --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-vaapi --enable-vdpau --enable-libvorbis --enable-libvpx --enable-zlib --enable-gpl --enable-postproc --enable-libcdio --enable-x11grab --enable-libx264 --shlibdir=/usr/lib/x86_64-linux-gnu --enable-shared --disable-static
libavutil      51. 35.100 / 51. 35.100
libavcodec     53. 61.100 / 53. 61.100
libavformat    53. 32.100 / 53. 32.100
libavdevice    53.  4.100 / 53.  4.100
libavfilter     2. 61.100 /  2. 61.100
libswscale      2.  1.100 /  2.  1.100
libswresample   0.  6.100 /  0.  6.100
libpostproc    52.  0.100 / 52.  0.100
$ convert --version
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP    
$ gifsicle --version
LCDF Gifsicle 1.82
Copyright (C) 1997-2014 Eddie Kohler
This is free software; see the source for copying conditions.
There is NO warranty, not even for merchantability or fitness for a
particular purpose.

Note that I've installed gifsicle from the giflossy repository. I'm not sure where the issue lies.

vvo commented 9 years ago

can u link the mp4?

vvo commented 9 years ago

try to pass it to mp4box before. see what it does. then I ll try to get a more precise error message

pixelastic commented 9 years ago

The video is available to download [here](http://tmp.pixelastic.com/Joachim de Posada - Ne mangez pas le marshmallow-553.mp4). It was originally downloaded with youtube-dl.

Edit: I just installed MP4Box, but I'm not sure exactly what command you would like me to run on my file.

$ MP4Box -version
MP4Box - GPAC version 0.5.1-DEV-rev5563M
GPAC Copyright (c) Telecom ParisTech 2000-2012
GPAC Configuration: --host=x86_64-linux-gnu --prefix=/usr --build=x86_64-linux-gnu --mandir=${prefix}/share/man --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc CXX=ccache g++
Features: GPAC_64_BITS GPAC_HAS_SSL GPAC_HAS_SPIDERMONKEY GPAC_HAS_JPEG GPAC_HAS_PNG 
vvo commented 9 years ago

output

> ffmpeg -version
ffmpeg version 2.5 Copyright (c) 2000-2014 the FFmpeg developers

> convert -version
Version: ImageMagick 6.9.0-0 Q16 x86_64 2014-11-17 http://www.imagemagick.org

> gifsicle --version        
LCDF Gifsicle 1.82

I think your ffmpeg version is way too old.

pixelastic commented 9 years ago

Which version is the minimum?

On Thu, Dec 18, 2014 at 12:26 PM, Vincent Voyer notifications@github.com wrote:

output

> ffmpeg -version
ffmpeg version 2.5 Copyright (c) 2000-2014 the FFmpeg developers
> convert -version
Version: ImageMagick 6.9.0-0 Q16 x86_64 2014-11-17 http://www.imagemagick.org
> gifsicle --version        
LCDF Gifsicle 1.82

I think your ffmpeg version is way too old.

Reply to this email directly or view it on GitHub: https://github.com/vvo/gifify/issues/10#issuecomment-67473598

vvo commented 9 years ago

I really dont know, latest stable should be ok

pixelastic commented 9 years ago

Thanks, I reinstalled ffmpeg from source and it's now working well.

vvo commented 9 years ago

Nice!