vvo / gifify

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

Error - gifsicle:<stdin>: empty file #51

Open CreativeWolf opened 8 years ago

CreativeWolf commented 8 years ago

Heya,

Getting this error while using gifify

[cw@pineserv ~]$ gifify watermelonpup.mp4 -o watermelonpup.gif gifsicle:: empty file

[cw@pineserv ~]$ uname -a Linux pineserv 3.10.65-4-pine64-longsleep #16 SMP PREEMPT Sun Apr 3 10:56:40 CEST 2016 aarch64 GNU/Linux

According to gifsicle Issue Tracker - https://github.com/kohler/gifsicle/issues/33 - recommended to use -o and -b - Trying to understand how to do that while using gifify.

Appreciate any help.

vvo commented 8 years ago

can you send the mp4 file?

CreativeWolf commented 8 years ago

Unable to upload here - Here's the DropBox link - https://www.dropbox.com/s/ambrvowul83js3i/watermelonpup.mp4?dl=0

vvo commented 8 years ago

water

it worked for me, please double check requirements: https://github.com/vvo/gifify#requirements

You need giflossy, not gifsicle

CreativeWolf commented 8 years ago

Checking Requirements:

[cw@pineserv ~]$ which node
/usr/bin/node
[cw@pineserv ~]$ node -v
v6.1.0
[cw@pineserv ~]$ which ffmpeg
/usr/bin/ffmpeg
[cw@pineserv ~]$ ffmpeg
ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libdcadec --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-netcdf --enable-shared --enable-version3 --enable-x11grab --host-cflags='"-fPIC"'
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
[cw@pineserv ~]$ convert -v
Version: ImageMagick 6.9.4-0 Q16 aarch64 2016-05-09 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC HDRI Modules OpenMP
Delegates (built-in): bzlib cairo fontconfig freetype gslib jng jp2 jpeg lcms lqr ltdl lzma openexr pangocairo png ps rsvg tiff webp wmf x xml zlib
Usage: convert [options ...] file [ [options ...] file ...] [options ...] file
sudo autoreconf -i
sudo ./configure --disable-gifview --disable-gifdiff
sudo make
[cw@pineserv giflossy-master]$ sudo make install
Making install in src
make[1]: Entering directory '/home/cw/giflossy-master/src'
make[2]: Entering directory '/home/cw/giflossy-master/src'
 /usr/bin/mkdir -p '/usr/local/bin'
  /usr/bin/install -c gifsicle '/usr/local/bin'
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/home/cw/giflossy-master/src'
make[1]: Leaving directory '/home/cw/giflossy-master/src'
make[1]: Entering directory '/home/cw/giflossy-master'
make[2]: Entering directory '/home/cw/giflossy-master'
make[2]: Nothing to be done for 'install-exec-am'.
 /usr/bin/mkdir -p '/usr/local/share/man/man1'
 /usr/bin/install -c -m 644 gifsicle.1 '/usr/local/share/man/man1'
make[2]: Leaving directory '/home/cw/giflossy-master'
make[1]: Leaving directory '/home/cw/giflossy-master'
[cw@pineserv giflossy-master]$ which giflossy
which: no giflossy in (/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)

Not sure, what I'm missing to get giflossy installed, appreciate your input.

vvo commented 8 years ago

You need to make the ./giflossy binary available in the PATH I believe.

cerebroo commented 7 years ago

I am also experiencing the same i.e. getting gifsicle:< stdin >: empty file.

Installing giflossy following the steps mentioned on their github readme installs gifsicle. So steps taken by @CreativeWolf to install dependencies appears to be fine.

cerebroo commented 7 years ago

Figured it out. It was happening because of this issue: https://github.com/vvo/gifify/issues/60

i.e. use --resize option and it will work fine.