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.