FFBinaries Extra
FFBinaries with promise support, request normalisation and a simplified API.
Install
npm install ffbinaries-extra
Usage
const ffBinaries = ; ffBinaries;//=> Promise<void>
API
getVersions()
Get the versions of FFBinaries available.
getLatestVersion()
Get the latest version of FFBinaries available.
downloadBinaries(options?)
options
Type: object
components
Type: Array<"ffmpeg" | "ffprobe" | "ffserver" | "ffplay">
An array of string values that describes which components to download. If not provided it will default to all components available for the platform.
version
Type: string
The version of ffmpeg to download.
extract
Type: boolean
Automatically extract downloaded zip files. Defaults to true.
destination
Type: string
The path where the binaries will be downloaded to.
supportedPlatforms
Type: string[]
The platforms supported by FFBinaries.
currentPlatform
Type: string
The current platform as detected from the os type and architecture.