Skip to main content

Package manager for FFmpeg, FFprobe, and FFplay static binaries

Project description

FFmpeg-update is a package manager for the FFmpeg suite, available as both a CLI tool and a Python library. It fetches pre-built, static binaries published by Martin Riedl.

[!NOTE] Supported Platforms (Upstream): Linux amd64, Linux arm64v8, macOS Intel (Deprecated), Apple Silicon

Features

  • Install [pre-built static binaries of] FFmpeg, FFprobe, and/or FFplay
  • Fetch latest release or snapshot builds
  • Configure custom installation location
  • Update to latest version
  • Check for updates
  • Uninstall from system
  • Progress bar with ETA
  • Smart permission handling
  • Atomic file system operations
  • Automatic operating system and machine architecture detection

Installation

pip install ffmpeg-update

The installation provides the ffup executable.

CLI Reference

Usage

ffup <install|update [--dry-run]|check|uninstall> [OPTIONS] [ffmpeg] [ffprobe] [ffplay]

Alternatively, can be invoked as a module with python -m ffmpeg_update <COMMAND>.

[!TIP] Multiple names can be passed, e.g. ffup install ffmpeg ffprobe

[!NOTE] Default is ffmpeg, if no name is passed

Parameters

  • --dir: The path to the installation directory

    • Environment variable: $FFUP_DIR/$XDG_BIN_HOME
    • Default: ~/.local/bin
    • Functions: check, install, uninstall, update
  • --build: The build type

    • Choices: release, snapshot
    • Environment Variable: $FFUP_BUILD
    • Default: snapshot
    • Functions: check, install, update
  • --arch: The machine architecture

    • Choices: amd64, arm64
    • Environment Variable: $FFUP_ARCH
    • Default: Auto-detect using platform.machine()
    • Functions: check, install, update
  • --os: The operating system

    • Choices: linux, macos
    • Environment Variable: $FFUP_OS
    • Default: Auto-detect using platform.system()
    • Functions: check, install, update
  • --dry-run: A flag to skip download/install, and only check for updates

    • ffup check is an alias for ffup update --dry-run
    • Default: False
    • Functions: update

API Reference

Functions

  • update(bins = {"ffmpeg"}, /, *, dry_run = False, dir, tempdir, progress, client) -> None
  • install(bins = {"ffmpeg"}, /, *, dir, tempdir, progress, client) -> None
  • uninstall(bins = {"ffmpeg"}, /, *, dir) -> None
  • get_arch() -> Literal["amd64", "arm64"]
  • get_os() -> Literal["linux", "macos"]
  • bins: A set of binary names

    • Must contain one or more of "ffmpeg", "ffprobe", and "ffplay"
  • dry_run: A bool indicating whether to skip download/install

  • dir: A pathlib.Path to the installation directory

    • Must exist and be absolute
  • tempdir: A tempfile.TemporaryDirectory[str] used to store and extract the downloaded archives

  • progress: A rich.progress.Progress used to show progress bars in the terminal

  • client: A niquests.Session used to make HTTP requests

    • Must set parameter base_url to f"https://ffmpeg.martin-riedl.de/redirect/latest/{os}/{arch}/{build}/"
    • build: "release", "snapshot"
    • arch: "amd64", "arm64"
    • os: "linux", "macos"

Error Handling

FileNotFoundError

  • By design, all operations will fail if the path in question does not exist
  • For new installations, ensure that the installation directory exists
  • For other operations, ensure that the path points to the installed binary

HTTPError

  • 404 Client Error: Not Found for url: ...
    • Caused by invalid values for one or more of build, arch, and os parameters

PermissionError

  • Triggers automatic escalation via sudo
  • The user is prompted for a password at stdin

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ffmpeg_update-3.0.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ffmpeg_update-3.0.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file ffmpeg_update-3.0.2.tar.gz.

File metadata

  • Download URL: ffmpeg_update-3.0.2.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ffmpeg_update-3.0.2.tar.gz
Algorithm Hash digest
SHA256 0cade71d9ef6323347ad9d08b53706fac0741c25c5ab839a6f07206880d1011d
MD5 5fdfc605848e5eb44e0c3d5ef7b89a42
BLAKE2b-256 2f672a9d841690405b15856130f2342da17c17dbaa66c63c0b2d6dcab2e164a3

See more details on using hashes here.

File details

Details for the file ffmpeg_update-3.0.2-py3-none-any.whl.

File metadata

  • Download URL: ffmpeg_update-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ffmpeg_update-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae19848af1f103ec365549602a04af24ba6f2b37e9eadfa86da2b7e1268227cb
MD5 b86cd8d4bd2d51d316943ba34e41ab40
BLAKE2b-256 89e6299b57ad9825b5ccd94cd718aa0acfa69f54fe42db0575b88da4f7fff8ea

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page