Module download

Source
Expand description

Utilities for downloading and unpacking FFmpeg binaries

Constants§

UNPACK_DIRNAME
The default directory name for unpacking a downloaded FFmpeg release archive.

Functions§

auto_download
Check if FFmpeg is installed, and if it’s not, download and unpack it. Automatically selects the correct binaries for Windows, Linux, and MacOS. The binaries will be placed in the same directory as the Rust executable.
check_latest_version
Makes an HTTP request to obtain the latest version available online, automatically choosing the correct URL for the current platform.
download_ffmpeg_package
Make an HTTP request to download an archive from the latest published release online
ffmpeg_download_url
URL for the latest published FFmpeg release. The correct URL for the target platform is baked in at compile time.
ffmpeg_manifest_url
URL of a manifest file containing the latest published build of FFmpeg. The correct URL for the target platform is baked in at compile time.
parse_linux_version
Parse the Linux version number from a long manifest text file.
parse_macos_version
Parse the macOS version number from a JSON string manifest file.
unpack_ffmpeg
After downloading unpacks the archive to a folder, moves the binaries to their final location, and deletes the archive and temporary folder.