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.
Makes an HTTP request to obtain the latest version available online,
automatically choosing the correct URL for the current platform.
Invoke cURL on the command line to download a file, returning it as a string.
Invoke cURL on the command line to download a file, writing to a file.
Invoke curl to download an archive (ZIP on windows, TAR on linux and mac)
from the latest published release online.
URL for the latest published FFmpeg release. The correct URL for the target
platform is baked in at compile time.
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 the the Linux version number from a long manifest text file.
Parse the the MacOS version number from a JSON string manifest file.
After downloading, unpacks the archive to a folder, moves the binaries to
their final location, and deletes the archive and temporary folder.