Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
CreativeWolf opened this issue May 20, 2016 · 7 comments
Open

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

CreativeWolf opened this issue May 20, 2016 · 7 comments

Comments

@CreativeWolf
Copy link

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 - kohler/gifsicle#33 - recommended to use -o and -b - Trying to understand how to do that while using gifify.

Appreciate any help.

@vvo
Copy link
Owner

vvo commented May 25, 2016

can you send the mp4 file?

@CreativeWolf
Copy link
Author

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

@vvo
Copy link
Owner

vvo commented May 25, 2016

water

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

You need giflossy, not gifsicle

@CreativeWolf
Copy link
Author

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
Copy link
Owner

vvo commented May 26, 2016

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

@cerebroo
Copy link

cerebroo commented Mar 26, 2017

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
Copy link

Figured it out. It was happening because of this issue:
#60

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants