@derhuerst/ffprobe-static

中文文档
5.3.0发布于 2025/11/15GPL-3.0-or-laterTypeScriptCommonJS近 30 天下载 12.6万

ffprobe binaries for macOS, Linux and Windows

原始使用文档
文档目录6 节
  1. Installation
  2. Custom binaries url
  3. Electron & other cross-platform packaging tools
  4. Example Usage
  5. Sources of the binaries
  6. Show your support

ffprobe-static

Static ffprobe (from the ffmpeg project) binaries for macOS, Linux, Windows.

Supports macOS (64-bit and arm64), Linux (32 and 64-bit, armhf, arm64), Windows (32 and 64-bit). The ffmpeg version currently used is 6.1.1.

npm version minimum Node.js version

Note: The version of ffprobe-static follows SemVer. When releasing new versions, we do not consider breaking changes in ffprobe itself, but only the JS interface (see below). For example, [email protected] might download ffprobe 5.0. To prevent an ffprobe-static upgrade downloading backwards-incompatible ffprobe versions, use a strict version range for it or use a lockfile.

Installation

$ npm install @derhuerst/ffprobe-static

Note: During installation, it will download the appropriate ffprobe binary from the b6.1.1 GitHub release. Use and distribution of the binary releases of ffprobe are covered by their respective license.

Custom binaries url

By default, the ffprobe binary will get downloaded from https://github.com/eugeneware/ffprobe-static/releases/download. To customise this, e.g. when using a mirror, set the FFPROBE_BINARIES_URL environment variable.

export FFPROBE_BINARIES_URL=https://cdn.npmmirror.com/binaries/ffprobe-static
npm install @derhuerst/ffprobe-static

Electron & other cross-platform packaging tools

Because ffprobe-static will download a binary specific to the OS/platform, you need to purge node_modules before (re-)packaging your app for a different OS/platform (read more in #35).

Example Usage

Returns the path of a statically linked ffprobe binary on the local filesystem.

const pathToFfprobe = require('ffprobe-static');
console.log(pathToFfprobe)
// /Users/j/playground/node_modules/ffprobe-static/ffprobe

Check the example script for a more thorough example.

Sources of the binaries

The binaries downloaded by ffprobe-static are from these locations:

Show your support

This npm package includes statically linked binaries that are produced by the following individuals. Please consider supporting and donating to them who have been providing quality binary builds for many years:

版本与发布记录

@derhuerst/ffprobe-static 共发布 1 个版本,首次发布于 2025/11/15;过去 12 个月发布了 1 个版本。

版本发布日期距今
5.3.0latest2025/11/1511 个月前

关于 @derhuerst/ffprobe-static 的常见问题

@derhuerst/ffprobe-static 是什么?

ffprobe binaries for macOS, Linux and Windows

如何安装 @derhuerst/ffprobe-static?

在项目目录运行 npm install @derhuerst/ffprobe-static,或使用 pnpm add / yarn add / bun add。

@derhuerst/ffprobe-static 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@derhuerst/ffprobe-static 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@derhuerst/ffprobe-static 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=16。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@derhuerst/ffprobe-static 可以商用吗?

@derhuerst/ffprobe-static 使用 GPL-3.0-or-later 许可。强 Copyleft:分发包含该代码的软件时,整个作品需以 GPL-3.0 兼容许可开源,并附带专利与反锁定条款。仅内部使用不触发此义务。以上为概括,不构成法律意见,请以许可原文为准。

@derhuerst/ffprobe-static 的下载量有多少?

根据 npm 官方下载统计,@derhuerst/ffprobe-static 在 2026/10/12 – 2026/11/10 这 30 天内被下载 125,778 次,日均约 4,193 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@derhuerst/ffprobe-static 还在维护吗?

最新版本 5.3.0 发布于 2025/11/15(11 个月前);至今共发布 1 个版本,其中过去 12 个月发布了 1 个;首次发布于 2025/11/15。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。