Comments (3)
I've found the solution. In the official website of gifski, there's the download link: https://gif.ski/
If you install gifski with sudo snap install gifski, you'll get an old version. I got the 1.2.7. However, if you download gifski from their website, you get the version 1.4.0.
They have Windows, Mac and Linux. I've tested it only in Ubuntu 20.10.
Install the .deb file (if on Ubuntu / Debian based distros), and then, generate-video-preview will work perfectly fine.
from ffmpeg-generate-video-preview.
Has anyone been able to make this library work with gifski? It's working like a charm for me, with the PNG preview. But I do really would like the GIF one.
I'm getting this very same error on Ubuntu, after having installed gifski.
Basically, these were the commands I ran:
npm install -g ffmpeg-generate-video-preview
sudo apt install ffmpeg
sudo snap install gifski
And this was the output I've got when trying the GIF preview:
generate-video-preview S01E01.avi output.gif --width 320 --num-frames 30 --gif-fps 4
{ cmd: 'ffmpeg -i S01E01.avi -y -vsync vfr -q:v 2 -vf select=not(mod(n\\,962)),scale=320:-1 /tmp/44f3542f931432667f22082def598757/frame-%d.png' }
gifski -o output.gif --fps 4 --quality 80 --quiet /tmp/44f3542f931432667f22082def598757/frame-*.png
generate-preview error { Error: Command failed: /bin/sh -c gifski -o output.gif --fps 4 --quality 80 --quiet /tmp/44f3542f931432667f22082def598757/frame-*.png
error: Unable to find the input file: "/tmp/44f3542f931432667f22082def598757/frame-1.png"
at makeError (/home/carlos/.nvm/versions/node/v8.15.0/lib/node_modules/ffmpeg-generate-video-preview/node_modules/execa/index.js:172:9)
at Promise.all.then.arr (/home/carlos/.nvm/versions/node/v8.15.0/lib/node_modules/ffmpeg-generate-video-preview/node_modules/execa/index.js:277:16)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
code: 1,
stdout: '',
stderr: 'error: Unable to find the input file: "/tmp/44f3542f931432667f22082def598757/frame-1.png"\n',
failed: true,
signal: null,
cmd: '/bin/sh -c gifski -o output.gif --fps 4 --quality 80 --quiet /tmp/44f3542f931432667f22082def598757/frame-*.png',
timedOut: false,
killed: false }
(node:43383) UnhandledPromiseRejectionWarning: Error: Command failed: /bin/sh -c gifski -o output.gif --fps 4 --quality 80 --quiet /tmp/44f3542f931432667f22082def598757/frame-*.png
error: Unable to find the input file: "/tmp/44f3542f931432667f22082def598757/frame-1.png"
at makeError (/home/carlos/.nvm/versions/node/v8.15.0/lib/node_modules/ffmpeg-generate-video-preview/node_modules/execa/index.js:172:9)
at Promise.all.then.arr (/home/carlos/.nvm/versions/node/v8.15.0/lib/node_modules/ffmpeg-generate-video-preview/node_modules/execa/index.js:277:16)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
(node:43383) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:43383) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
There seems to be an issue with reading the /tmp/44f3542f931432667f22082def598757 folder, where the PNGs are created (they are there, that's verified). The frame "/tmp/44f3542f931432667f22082def598757/frame-1.png" is there as well.
Thank you in advance! And thanks anyway to the project's developer. It's really close to work nicely.
from ffmpeg-generate-video-preview.
Thanks @carlos-mg89 🙏
from ffmpeg-generate-video-preview.
Related Issues (8)
- [Feature] webp video preview HOT 2
- fps parameter is static HOT 5
- Is it possible to get rid of the first blank(black) frame in the output gif? Thank you! HOT 1
- Gettting the gape between frames in terms of time HOT 1
- Arbitrary Code Injection Vulnerability
- Unable to Specify Output Path in CLI
- This is very slow for big files.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg-generate-video-preview.