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

The package is lightweight and does not include the large binaries in the initial download. Instead, the appropriate ffmpeg and ffprobe binaries will be automatically downloaded with a progress bar 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.1.tar.gz (5.3 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.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ffmpeg_local-0.1.1.tar.gz
  • Upload date:
  • Size: 5.3 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.1.tar.gz
Algorithm Hash digest
SHA256 51febcf156363aaf9b3f3728fb85dbb17def6660d6d71c3e2a4b99b83f578386
MD5 fb80fde01e3df24d5fdd78afc5cee2af
BLAKE2b-256 33380f06ac811832778ef05276fcb2b1efa6231929eff9211ad83ff60e1a04ac

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ffmpeg_local-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e60118c18338306601fb08ade466de3b4b09919959fda5c8f4299c2d31d7da20
MD5 8af2344b8e2a2d50613d443ec8e759ea
BLAKE2b-256 1c3999f26073703a875be5e1c3cef17582d72576b88c4d388aacd166c164c897

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