
Research
SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.
@w3vish/ffmpeg-installer
Advanced tools
A fast and lightweight cross-platform FFmpeg & FFprobe binary installer for Node.js, supporting Linux, macOS, and Windows.
A cross-platform FFmpeg binary installer for Node.js applications. This package provides a simple way to download and configure FFmpeg binaries for your platform, making it easy to use FFmpeg in your Node.js projects without manual installation.
This package only supports ES Modules. CommonJS require() is not supported.
# Install the package
npm install @w3vish/ffmpeg-installer
After installation, run the CLI tool to install binaries:
# Install binaries via CLI
npx @w3vish/ffmpeg-installer
The CLI will prompt you to select which components to install:
// Import the package
import ffmpeg from '@w3vish/ffmpeg-installer';
// Or import specific paths
import { ffmpegPath, ffprobePath } from '@w3vish/ffmpeg-installer';
// Access paths
console.log('FFmpeg path:', ffmpegPath);
console.log('FFprobe path:', ffprobePath);
console.log('FFmpeg version:', ffmpeg.version);
import { spawn } from 'child_process';
import { ffmpegPath } from '@w3vish/ffmpeg-installer';
const process = spawn(ffmpegPath, [
'-i', 'input.mp4',
'-c:v', 'libx264',
'output.mp4'
]);
process.on('close', (code) => {
console.log(`Process exited with code ${code}`);
});
import ffmpeg from 'fluent-ffmpeg';
import { ffmpegPath, ffprobePath } from '@w3vish/ffmpeg-installer';
// Set paths
ffmpeg.setFfmpegPath(ffmpegPath);
ffmpeg.setFfprobePath(ffprobePath);
// Use fluent-ffmpeg
ffmpeg('input.mp4')
.output('output.mp4')
.on('end', () => {
console.log('Conversion finished');
})
.run();
When running the installer CLI, you can specify options:
npx @w3vish/ffmpeg-installer --platform=darwin-arm64 --ffmpeg-only
Available options:
--platform=<platform>: Specify platform (win32-x64, darwin-arm64, linux-x64, etc.)--ffmpeg-only: Install only FFmpeg--ffprobe-only: Install only FFprobe| Property | Type | Description |
|---|---|---|
path | string | Path to the FFmpeg binary (alias for ffmpegPath) |
ffmpegPath | string | Path to the FFmpeg binary |
ffprobePath | string | Path to the FFprobe binary |
version | string | Version of the FFmpeg binaries |
url | string | URL from where the binaries were downloaded |
platform | string | Current platform identifier |
arch | string | Current architecture identifier |
The package includes comprehensive TypeScript definitions:
// Main installer result
export interface FFmpegInstaller {
ffmpeg?: BinaryInfo;
ffprobe?: BinaryInfo;
platform: string;
arch: string;
}
// Binary information
export interface BinaryInfo {
path: string;
version: string;
url: string;
}
If you encounter permission errors when running the binaries on Linux/macOS:
chmod +x /path/to/ffmpeg
chmod +x /path/to/ffprobe
If the installation fails, try:
npm install @w3vish/ffmpeg-installer --unsafe-perm
MIT
FAQs
A fast and lightweight cross-platform FFmpeg & FFprobe binary installer for Node.js, supporting Linux, macOS, and Windows.
The npm package @w3vish/ffmpeg-installer receives a total of 56 weekly downloads. As such, @w3vish/ffmpeg-installer popularity was classified as not popular.
We found that @w3vish/ffmpeg-installer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
An emerging npm supply chain attack that infects repos, steals CI secrets, and targets developer AI toolchains for further compromise.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.