Gathering detailed insights and metrics for @ffmpeg-installer/ffmpeg
Gathering detailed insights and metrics for @ffmpeg-installer/ffmpeg
Gathering detailed insights and metrics for @ffmpeg-installer/ffmpeg
Gathering detailed insights and metrics for @ffmpeg-installer/ffmpeg
Platform independent binary installer of FFmpeg for node projects
npm install @ffmpeg-installer/ffmpeg
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
423 Stars
94 Commits
70 Forks
6 Watching
6 Branches
8 Contributors
Updated on 23 Nov 2024
Minified
Minified + Gzipped
JavaScript (92.98%)
TypeScript (7.02%)
Cumulative downloads
Total Downloads
Last day
5.3%
73,197
Compared to previous day
Last week
6.9%
424,128
Compared to previous week
Last month
7%
1,631,714
Compared to previous month
Last year
27.1%
16,814,206
Compared to previous year
8
3
Platform independent binary installer of FFmpeg for node projects. Useful for tools that should "just work" on multiple environments.
Installs a binary of ffmpeg
for the current platform and provides a path and version. Supports Linux, Windows and Mac OS/X.
A combination of package.json fields optionalDependencies
, cpu
, and os
let's the installer only download the binary for the current platform. See also "Warnings during install", below.
npm install --save @ffmpeg-installer/ffmpeg
1const ffmpeg = require('@ffmpeg-installer/ffmpeg'); 2console.log(ffmpeg.path, ffmpeg.version);
1const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path; 2const spawn = require('child_process').spawn; 3const ffmpeg = spawn(ffmpegPath, args); 4ffmpeg.on('exit', onExit);
1const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path; 2const ffmpeg = require('fluent-ffmpeg'); 3ffmpeg.setFfmpegPath(ffmpegPath);
To automatically choose the binary to install, optionalDependencies are used. This currently outputs warnings in the console, an issue that is tracked by the npm team here.
If you get permissions issues, try adding a .npmrc file with the following:
unsafe-perm=true
See issue #21
It's a known issue that Asar breaks native paths. As a workaround, if you use Asar, you can do something like this:
1const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path.replace('app.asar', 'app.asar.unpacked');
If you need to install a version of ffmpeg
that differs than your current platform (e.g. compiling a Linux version to upload to AWS Lambda from MacOS), you can use npm install @ffmpeg-installer/linux-x64 --force
(substituting linux-x64
with whatever platform you need). Note that if you are compressing your project into a .zip
for Lambda, you will need to exclude the other platforms' builds from your archive.
Downloaded from the sources listed at ffmpeg.org:
For version updates, submit issue or pull request.
In every updated platforms/*
directory:
npm run upload
No vulnerabilities found.
Reason
Found 6/17 approved changesets -- score normalized to 3
Reason
binaries present in source code
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
11 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More@types/ffmpeg-installer__ffmpeg
TypeScript definitions for @ffmpeg-installer/ffmpeg
@ffmpeg-installer/linux-x64
Linux FFmpeg binary used by ffmpeg-installer
@ffmpeg-installer/win32-x64
Windows FFmpeg binary used by ffmpeg-installer
@ffmpeg-installer/linux-arm64
Linux FFmpeg binary used by ffmpeg-installer