npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@w3vish/ffmpeg-installer

v2.2.1

Published

A fast and lightweight cross-platform FFmpeg & FFprobe binary installer for Node.js, supporting Linux, macOS, and Windows.

Readme

@w3vish/ffmpeg-installer

npm version License: MIT

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.

⚠️ ESM Only

This package only supports ES Modules. CommonJS require() is not supported.

Installation

# 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:

  1. FFmpeg and FFprobe (default)
  2. FFmpeg only
  3. FFprobe only

Usage

// Import the package
import FFmpegInstaller from '@w3vish/ffmpeg-installer';

// Access the data directly
console.log('FFmpeg path:', FFmpegInstaller.ffmpeg.path);
console.log('FFprobe path:', FFmpegInstaller.ffprobe.path);
console.log('FFmpeg version:', FFmpegInstaller.ffmpeg.version);
console.log('Platform:', FFmpegInstaller.platform);
console.log('Architecture:', FFmpegInstaller.arch);

With child_process

import { spawn } from 'child_process';
import FFmpegInstaller from '@w3vish/ffmpeg-installer';

const process = spawn(FFmpegInstaller.ffmpeg.path, [
  '-i', 'input.mp4',
  '-c:v', 'libx264',
  'output.mp4'
]);

process.on('close', (code) => {
  console.log(`Process exited with code ${code}`);
});

With fluent-ffmpeg

import ffmpeg from 'fluent-ffmpeg';
import FFmpegInstaller from '@w3vish/ffmpeg-installer';

// Set paths
ffmpeg.setFfmpegPath(FFmpegInstaller.ffmpeg.path);
ffmpeg.setFfprobePath(FFmpegInstaller.ffprobe.path);

// Use fluent-ffmpeg
ffmpeg('input.mp4')
  .output('output.mp4')
  .on('end', () => {
    console.log('Conversion finished');
  })
  .run();

CLI Options

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

Supported Platforms

  • Windows (win32-x64, win32-ia32)
  • macOS (darwin-x64, darwin-arm64)
  • Linux (linux-x64, linux-arm64, linux-armv7l)

Return Object Structure

The package exports an FFmpegInstaller object with this structure:

{
  ffmpeg: {
    path: '/path/to/ffmpeg',
    version: 'v1.0.0',
    url: 'https://github.com/w3vish/ffmpeg-installer/releases/download/v1.0.0/linux-x64-ffmpeg'
  },
  ffprobe: {
    path: '/path/to/ffprobe',
    version: 'v1.0.0',
    url: 'https://github.com/w3vish/ffmpeg-installer/releases/download/v1.0.0/linux-x64-ffprobe'
  },
  platform: 'linux',
  arch: 'x64'
}

TypeScript Types

The package includes 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;
}

Troubleshooting

Permission Issues

If you encounter permission errors when running the binaries on Linux/macOS:

chmod +x /path/to/ffmpeg
chmod +x /path/to/ffprobe

Installation Failures

If the installation fails, try:

npm install @w3vish/ffmpeg-installer --unsafe-perm

License

MIT