ffmpeg_sidecar

Module download

Source
Expand description

Utilities for downloading and unpacking FFmpeg binaries.

Constants§

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

Functions§

  • 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.
  • Make an HTTP request to download an archive 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.