Installing Prerequisites

TL;DR

If you installed Shaka Streamer via pip, you already have the necessary Python dependencies. If you don’t want to use your own FFmpeg and Shaka Packager, install our prebuilt binaries with:

pip3 install shaka-streamer-binaries

The rest of this document only matters for development setup if you plan to make changes to Shaka Streamer.

Required runtime modules

To install required modules via Ubuntu or Debian packages:

sudo apt -y install python3-yaml python3-distro

For any platform, you can install them via pip:

pip3 install -r requirements.txt

Development modules

To install development modules via Ubuntu or Debian packages:

sudo apt -y install \
    python3-flask python3-mypy python3-setuptools \
    python3-sphinx python3-wheel

For any platform, you can install them via pip:

pip3 install -r optional_requirements.txt

Cloud Storage (optional)

Shaka Streamer can push content directly to a Google Cloud Storage or Amazon S3 bucket. To use this feature, additional Python modules are required.

See Cloud Storage for details.

Test Dependencies (optional)

To run the end-to-end tests, you must also install nodejs and NPM.

To install these via Ubuntu or Debian packages:

sudo apt -y install nodejs npm

To install Node.js and NPM on any other platform, you can try one of these: