shaka-packager/packager/tools/pssh
Kongqun Yang 472fae24f2 [pssh] Support widevine pssh generation with protection_scheme
- Also import the version of the protobuf bundled in packager first,
  this avoids importing the installed version of the protobuf, which
  may not be compatible with this script.
- Print help if no argument is supplied.

Fixes #162

Change-Id: I1b5e87ba7fb51e81b0d4dd3791aaeb37ee0fd6ce
2016-10-10 10:39:41 -07:00
..
README.md Add a utility script used to generate/parse PSSH boxes. 2016-04-01 16:19:45 +00:00
pssh-box.py [pssh] Support widevine pssh generation with protection_scheme 2016-10-10 10:39:41 -07:00

README.md

pssh-box - Utility to generate and print PSSH boxes

Installation

To use this script you must first install the Python ProtoBuf library. If you have it installed already, you can just use the script directly. These instructions describe how to compile the ProtoBuf library so this script can run. This will not install ProtoBuf globally; it will only compile it.

  1. You need Python 2.6 or newer.

  2. Install setuptools. This is installed by default when you install pip. If you don't have it, when you run setup.py it will install it locally. If you want to install manually, see:

 https://packaging.python.org/en/latest/installing.html#setup-for-installing-packages
  1. Build the packager, which will build protoc in out/{Debug,Release}.

  2. Run setup.py. You will need to have protoc in PATH, which was build in the previous step:

cd packager/third_party/protobuf/python
PATH=../../../../out/Debug/:"$PATH" python setup.py build