ffmpegio-plugin-static-ffmpeg: A Python ffmpegio plugin to use FFmpeg binaries in static-ffmpeg package
Python ffmpegio package aims to bring the full capability of FFmpeg to read, write, and manipulate multimedia data to Python. FFmpeg is an open-source cross-platform multimedia framework, which can handle most of the multimedia formats available today.
One caveat of FFmpeg is that there is no official program installer for Windows and MacOS (although homebrew could be used for the latter). ffmpegio-plugin-static-ffmpeg enables the ffmpegio package to use the build of FFmpeg distributed by the static-ffmpeg package.
Simply install the package:
pip install ffmpegio-core ffmpegio-plugin-static-ffmpeg
Then ffmpegio will auto-detect the plugin and static-ffmpeg's executables:
import ffmpegio
print(ffmpegio.path.FFMPEG_BIN) # ...\site-packages\static_ffmpeg\bin\win32\ffmpeg.exe
print(ffmpegio.path.FFPROBE_BIN) # ...\site-packages\static_ffmpeg\bin\win32\ffprobe.exe
Because the static-ffmpeg package downloads its binaries on demand, the first time importing ffmpegio with this plugin enabled may take a while.
Note
ffmpegio-plugin-static-ffmpeg will not be activated if ffmpeg and ffprobe are already available on the system PATH.