c9645bc21b
This script can be used to parse and generate PSSH boxes. This serves two purposes: * Parse PSSH boxes into a human readable format. * Take several arguments to generate PSSH boxes. This is also able to parse Widevine and PlayReady PSSH data and will print the parsed data instead of the data as binary. This can also generate Widevine PSSH data instead of having the PSSH data passed as an argument. Change-Id: I245bd9abf79a259f6fda01d1fc0489b4a4a73db5 |
||
---|---|---|
.. | ||
README.md | ||
pssh-box.py |
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.
-
You need Python 2.6 or newer.
-
Install
setuptools
. This is installed by default when you installpip
. If you don't have it, when you runsetup.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
-
Build the packager, which will build
protoc
inout/{Debug,Release}
. -
Run
setup.py
. You will need to haveprotoc
in PATH, which was build in the previous step:
cd packager/third_party/protobuf/python
PATH=../../../../out/Debug/:"$PATH" python setup.py build