hughsk / gif-video Goto Github PK
View Code? Open in Web Editor NEWConvert a GIF image into an HTML5-ready video for considerably better file sizes
License: MIT License
Convert a GIF image into an HTML5-ready video for considerably better file sizes
License: MIT License
@hughsk can you help me
node --version: 0.10.33
npm --version: 1.4.28
npm install [email protected] was working for me last Friday, but it no longer works.
[email protected] postinstall /home/vagrant/node_modules/gifsicle
node index.js
stream.js:94
throw er; // Unhandled stream error in pipe.
^
Error: invalid tar file
at Extract.Parse._startEntry (/home/vagrant/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:145:13)
at Extract.Parse._process (/home/vagrant/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:127:12)
at BlockStream. (/home/vagrant/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/parse.js:47:8)
at BlockStream.emit (events.js:95:17)
at BlockStream._emitChunk (/home/vagrant/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/block-stream/block-stream.js:145:10)
at BlockStream.resume (/home/vagrant/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/block-stream/block-stream.js:58:15)
at Extract.Reader.resume (/home/vagrant/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/fstream/lib/reader.js:255:34)
at DirWriter. (/home/vagrant/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/lib/extract.js:57:8)
at DirWriter.emit (events.js:92:17)
at /home/vagrant/node_modules/gifsicle/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/tar/node_modules/fstream/lib/dir-writer.js:39:8
npm ERR! [email protected] postinstall: node index.js
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the gifsicle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js
npm ERR! You can get their info via:
npm ERR! npm owner ls gifsicle
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.32-358.el6.x86_64
npm ERR! command "/usr/share/node/bin/node" "/usr/share/node/bin/npm" "install" "[email protected]"
npm ERR! cwd /home/vagrant
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/vagrant/npm-debug.log
npm ERR! not ok code 0
events.js:72
.......
Error: Write EPIPE
.............
Hi @hughsk , Can you help me fix issue ?
Thanks
I got this error while running the converter. Tried many things on internet but no hope.
So, any ideas?
events.js:72
throw er; // Unhandled 'error' event
^
Error: Invalid status code: 1
ffmpeg version 2.3.3 Copyright (c) 2000-2014 the FFmpeg developers
built on Oct 23 2014 01:28:33 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/2.3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-libvpx
libavutil 52. 92.100 / 52. 92.100
libavcodec 55. 69.100 / 55. 69.100
libavformat 55. 48.100 / 55. 48.100
libavdevice 55. 13.102 / 55. 13.102
libavfilter 4. 11.100 / 4. 11.100
libavresample 1. 3. 0 / 1. 3. 0
libswscale 2. 6.100 / 2. 6.100
libswresample 0. 19.100 / 0. 19.100
libpostproc 52. 3.100 / 52. 3.100
Option vf (set video filters) cannot be applied to input file /var/folders/84/0f1km8x15rngj89nlq7dxjlm0000gn/T/stopmotion-185088o567ls/stop-motion.%08d -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for input file /var/folders/84/0f1km8x15rngj89nlq7dxjlm0000gn/T/stopmotion-185088o567ls/stop-motion.%08d.
Error opening input files: Invalid argument
at ChildProcess.<anonymous> (/Users/Nhot/Desktop/sgspj/MinItNow/node_modules/gif-video/node_modules/stopmotion/index.js:91:31)
at ChildProcess.g (events.js:180:16)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:810:12)
My code is exactly like the demo:
var createStream = require('gif-video');
var fs = require('fs');
function convertExport(){}
convertExport.startConvert = function(){
try {
fs.unlinkSync(__dirname + '/output.webm')
} catch(e){}
fs.createReadStream(__dirname + '/input.gif')
.pipe(createStream({ height: 200 }))
.pipe(fs.createWriteStream(__dirname + '/output.webm'));
};
module.exports = convertExport;
$ node test.js
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:988:11)
at Process.ChildProcess._handle.onexit (child_process.js:779:34)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.