Closed joeyparrish closed 3 years ago
We decided that the best way to address this issue is to make a separate PyPi package for the hermetic binaries (FFmepg
&FFprobe
&Packager
) and maintain the platform-specific binaries in there.
If the user chooses hermetic_ffmpeg: True
in the pipeline config while the separate hermetic ffmpeg binary is not installed yet, we will error prompting them to install it pip install binaries-package-name
, which will install the right prebuilt static ffmpeg/ffprobe/packager for their machine based on the CPU architecture and the OS.
We will be using the static builds from this repo.
We will refer to PEP 425 to choose the compatibility tags for prebuilt package distributions and this will let pip
handle choosing the right package to download for each OS/CPUarch.
I'm open to debate on these specifics if you disagree, but here's what I would do:
shaka-streamer-binaries
pip install
-ing both shaka-streamer
and shaka-streamer-binaries
--use-system-binaries
would switch to using ffmpeg
and packager
from the PATH
environment variableNice, can't disagree.
Currently, users must install Shaka Packager and FFmpeg separately and system-wide in order to use Shaka Streamer.
If permitted by their licenses, we should try to bundle binaries of Shaka Packager and FFmpeg for convenience, and offer a command-line option to choose between hermetic versions and installed system versions.
See the Installing Prerequisites here .