Skip to main content

Automatically downloads and provides paths to ffmpeg and ffprobe binaries.

Project description

ffmpeg-local

A Python package that provides a simple way to get ffmpeg and ffprobe binaries for your platform. It automatically downloads the binaries from the official nodejs-ffmpeg release source.

Installation

pip install ffmpeg-local

During installation, the package will attempt to download the appropriate binaries for your platform. If this fails (e.g., no internet access during install), they will be downloaded automatically on the first time you call get_ffmpeg_path() or get_ffprobe_path().

Usage

from ffmpeg_local import get_ffmpeg_path, get_ffprobe_path
import subprocess

# Get the path to the ffmpeg binary
ffmpeg_path = get_ffmpeg_path()
print(f"FFmpeg is at: {ffmpeg_path}")

# Use it in a subprocess
subprocess.run([ffmpeg_path, "-version"])

# Get the path to ffprobe
ffprobe_path = get_ffprobe_path()
print(f"FFprobe is at: {ffprobe_path}")

Supported Platforms

  • Windows: x64, ia32, arm64
  • Linux: x64, arm64
  • macOS: x64, arm64
  • Android: arm64 (Termux etc.)

CLI Utility

You can manually trigger the download using the CLI:

ffmpeg-local-download

Credits

This package is a Python port of nodejs-ffmpeg. Binaries are sourced from ytdlp-nodejs.

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_local-0.1.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

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

ffmpeg_local-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file ffmpeg_local-0.1.0.tar.gz.

File metadata

  • Download URL: ffmpeg_local-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.10

File hashes

Hashes for ffmpeg_local-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2f70a5613f1b925a5af91785fcaadd1141760b815ef7262681f0587fd34c91f2
MD5 644ce8b40bb7b544f2f09ecf946bb751
BLAKE2b-256 b43dc2c026c676e0c2d43ea57e16dd94effa4f67116a04186fc48adbc3fd86f9

See more details on using hashes here.

File details

Details for the file ffmpeg_local-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ffmpeg_local-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.10

File hashes

Hashes for ffmpeg_local-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9b8b20dacdaffdeca219a78d5923dccf68a09fab6ab1bc6fbbf3598ccb20e4e1
MD5 6b5973bff97009a18306ec71d734de92
BLAKE2b-256 18d8c1c3969aa633f7f1bb29842aac7ebdfa315ab8880388850f70f4d9557522

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