Skip to main content

Cross platform ffmpeg to work on various systems.

Project description

Actions Status Actions Status Actions Status

static_ffmpeg

Version

FFMPEG Version: 5.0

About

Problem: You develop on Windows/MacOS/Linux. You want an ffmpeg that works on all the platforms but now you have to go and special case your program installation to handle each platforms ability to get the ffmpeg download. For example:

  • Win32: choco install ffmpeg
  • MacOS: brew install ffmpeg
  • Linux: sudo apt-get install ffmpeg

If you want to be able to quitely (re)install a python package silently and automatically using ffmpeg, well you are out of luck... until now.

Pre-installation (optional)

To easily setup a virtual environment, please see this installation script: https://raw.githubusercontent.com/zackees/static_ffmpeg/main/setupvirtualenv.py

Installation

To use simply do pip install static-ffmpeg and then after this is done you can try running static_ffmpeg -version and/or static_ffprobe -version to test out that the version has been installed.

Once this package is installed, the static_ffmpeg and static_ffprobe command will be available. This command simply passes all arguments to a real ffmpeg/ffprobe. Call static_ffmpeg like you would call ffmpeg in your project and it should just work, or bypass the stub and use the ffmpeg/ffprobe directly by getting the path via run.get_or_fetch_platform_executables_else_raise()

Binary source

Testing

  • Clone this project git clone https://github.com/zackees/static_ffmpeg
  • Then setup the virtual env using the script python virtualenvsetup.py
  • Then activate . venv/bin/activate
  • Then run tox tox

Testing work arounds

  • You may get an error like 'Interpretor not found'
  • Ubuntu: `ModuleNotFoundError: No module named 'virtualenv.seed.via_app_data'
    • Uninstall the pip on your system and reinstall:
      • pip3 uninstall virtualenv
      • pip3 install virtualenv

Release History

  • 2.0:
    • ffmpeg upgraded to 5.0
    • added ffprobe (static_ffprobe or get run.get_platform_executables_or_raise() to get the binary location)
    • Now downloads platform specific binary to reduce install size and memory footprint to 1/3
  • 1.0:
    • ffmpeg 4.4 released + tests

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

static_ffmpeg-2.0.4.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.

static_ffmpeg-2.0.4-py2.py3-none-any.whl (5.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file static_ffmpeg-2.0.4.tar.gz.

File metadata

  • Download URL: static_ffmpeg-2.0.4.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

File hashes

Hashes for static_ffmpeg-2.0.4.tar.gz
Algorithm Hash digest
SHA256 3a9724b25e07875e04fa799354aa250a6c8218ba86cd0cab0a68d56a76da8ecf
MD5 52527706a6a0df1d0bc7ba228002c5bc
BLAKE2b-256 20708be4d30643acab42a76d7081afb6425366780acb3d471bfacd7bf54aa9bd

See more details on using hashes here.

File details

Details for the file static_ffmpeg-2.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: static_ffmpeg-2.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.9.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

File hashes

Hashes for static_ffmpeg-2.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2bbdc256de046d0ae9e4ad9c5712be6cd078462e8a4856e1b9c69453dccc4c87
MD5 18861f3601257079a24e4d21bdf249b8
BLAKE2b-256 38f7d7aca71ef9bd38c8efb7c4f735646f40b29ccae6f1f9905b471e6229d823

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