Releases: PotatoParser/ffmpeg-cli
Releases · PotatoParser/ffmpeg-cli
Major Source URL Changes
Due to the closure of Zeranoe, there are some major changes to the URLs for pre-built binaries. It is recommended that this package be updated immediately as versions 2.6.0+ of FFmpeg-CLI contains the new changes and versions lower will not work for Windows and MacOS platforms. Furthermore, the two current sources of the binaries for Windows does not support the 32-bit version and as a direct result, FFmpeg-CLI will not support 32-bit Windows until further notice.
Additions:
- Added ESLint
Removals:
- Removed support for 32-bit Windows
Issues Fixed
- Fix MacOS links
- Fix Windows links
- Improved executable extraction
Major Refactor
Additions:
- Added more tags for Node version supports
- Added
forceDownload()
method to download FFmpeg from module
Issues Fixed
- Fix vulnerabilities with minimalist dependency
- Fix issues with downloading FFmpeg on Windows
v0.1.4
ffmpeg-cli
A simple way of implementing FFmpeg regardless of OS
const ffmpeg = require("ffmpeg-cli");
ffmpeg.run("-version");
console.log(ffmpeg.runSync("-version"));
Supported OS
- MacOS ~ 64 bit
- Linux ~ 32/64 bit
- Windows ~ 32/64 bit
Synchronous Commands
Returns the output from FFmpeg
ffmpeg.runSync(commands);
// Ex: ffmpeg.runSync(`-i input.jpg -vf scale=320:240 output.png`);
Asynchronous Commands
Returns a promise
ffmpeg.run(commands);
ffmpeg.run(commands).catch((error)=>{...}); // Catch errors
ffmpeg.run(commands).then((result)=>{...}); // Only results
ffmpeg.run(commands).then((result)=>{...}).catch((error)=>{...}); // Catches when errors found