Cross platform ffmpeg to work on various systems.
Maintained. Last release 10 months ago. Weaker on release cadence.
pip install static-ffmpegstatic-ffmpeg
The easiest way to get ffmpeg v8 installed through python.
Install
> pip install static-ffmpeg
Usage
import static_ffmpeg
# ffmpeg installed on first call to add_paths(), threadsafe.
static_ffmpeg.add_paths() # blocks until files are downloaded
# or static_ffmpeg.add_paths(weak=True) to only add if ffmpeg/ffprobe not already on path
# Now ffmpeg and ffprobe will use static_ffmpeg versions.
os.system("ffmpeg -i myfile.mp4 ...")
Or if you want more lazy behavior to install on first use, or you don't want to modify system paths, use static_ffmpeg
import static_ffmpeg
# ffmpeg installed on first call, threadsafe.
os.system("static_ffmpeg -i myfile.mp4 ...")
You can also use it on the command line
> pip install static-ffmpeg
> static_ffmpeg -i file.mp4 ...
> static_ffprobe ...
> static_ffmpeg_paths
FFMPEG=c:\users\niteris\dev\static_ffmpeg\static_ffmpeg\bin\win32\ffmpeg.exe
FFPROBE=c:\users\niteris\dev\static_ffmpeg\static_ffmpeg\bin\win32\ffprobe.exe
About
This tool installs binaries for ffmpeg and ffprobe binary (with all plugins and codecs) into the running platform. The platform binaries are installed on first use and is done without requiring elevated permissions.
This package is designed to allow tools that rely on ffmpeg to have a fully featured available by just including this package. No seperate install of ffmpeg is needed.