Repository navigation
npm Package
@nomercy-entertainment/ffmpeg-static gives you the NoMercy FFmpeg binary from Node.js or a shell script.
It downloads the archive for your platform from the GitHub releases on first use. It unpacks it, caches it in the OS temp directory and returns the absolute path. This is not stock FFmpeg, so output matches what the NoMercy MediaServer produces.
The package README is the source of truth: clients/npm/README.md. This page is a summary.
npm install @nomercy-entertainment/ffmpeg-staticimport { ensureFfmpeg, ensureFfprobe } from '@nomercy-entertainment/ffmpeg-static';
const ffmpeg = await ensureFfmpeg(); // absolute path, downloaded on first call
const ffprobe = await ensureFfprobe();Only the first call downloads. Later calls return the cached path.
The package installs two commands that print the path.
FFMPEG=$(npx nomercy-ffmpeg-path)
FFPROBE=$(npx nomercy-ffprobe-path)| Variable | Effect |
|---|---|
NOMERCY_FFMPEG |
Path to an ffmpeg you supply. If it runs, it is used and nothing is downloaded. |
NOMERCY_FFPROBE |
The same, for ffprobe. |
NOMERCY_FFMPEG_VERSION |
Pins another release tag of this project. |
NOMERCY_FFMPEG_FFVERSION |
Sets the FFmpeg version used in the archive name. |
Each package version downloads the release with the same number: package 1.0.50 uses v1.0.50 and the 9.1 archives. The defaults shown in the package README on GitHub are placeholders.
Windows x64 and ARM64, Linux x64 and ARM64, macOS x64 and ARM64. FreeBSD is not supported by the package. On another platform it throws an error and names NOMERCY_FFMPEG.
The Linux x64 archive needs glibc 2.35 or newer. See Platforms.
To get the archive by hand instead, see Installation.
Users
Filters and components
- Filter-stemsplit
- Filter-lyricsalign
- Whisper-Language-Detection
- Whisper-Word-Timestamps
- Filter-trailingsilence
- Filter-keydetect
- Filter-beatdetect
- Filter-rubberband
- Muxer-Sprite-Sheet
- Muxer-Chapter-VTT
- Muxer-VOBsub
- Protocol-dvdread
- Protocol-OmniDrive
- Auto-Create-Directories
- AACS-and-BDplus
- HLS-Master-Playlist
- Subtitles-OCR
- HEVC-Alpha
Acceleration and codecs
Contributors