The Shaka packager allows you to securely package your content. Learn how it integrates with the Axinom Key Service and set it up properly.

Shaka Packager Integration


This document serves as a quick start guide to use Shaka Packager with Axinom Key Service. The usage is demonstrated by a PowerShell script that has been provided together with this guide. The demo script, Use-ShakaPackagerWithAxinomKeyServer.ps1, demonstrates how to use Shaka Packager with Axinom Key Service to encrypt and package DASH or HLS content. Encrypted DASH is played back using Widevine or PlayReady. Encrypted HLS is played back using Widevine or FairPlay.

The demo script contains comments with extra information. The script itself should only be used as an example and not as a production solution. For any questions about the steps of the demo script, it’s possible to open the script with a text editor and refer to the inline comments.

There are also references to documents at the end of this guide that may provide useful information about Axinom Key Service, Shaka Packager, or any other resources involved.


Shaka Packager

The latest Shaka Packager can be acquired from the Google Shaka Packager’s page:

For Windows, use packager-win.exe.

For Linux, use packager-linux.


PowerShell or PowerShell Core is required to run the demo script.


Windows comes with PowerShell already pre-installed.


PowerShell must be installed on Linux. Instructions can be found at:

Video File

Any video in the mp4 format can be used as an input file.

Getting the Axinom Key Service Quick Start Script

You can download the demo script, Use-ShakaPackagerWithAxinomKeyServer.ps1 from the Code Samples section. It should be copied to the same location as the Shaka Packager executable.

Running the Packaging Script

To run the demo script, open PowerShell. Linux PowerShell can be opened by typing pwsh to the Terminal. Change the directory to the folder which consists the demo script.

Running the demo script in PowerShell.
./Use-ShakaPackagerWithAxinomKeyServer.ps1 -InputVideo input_video.mp4 -SigningKeyAsHex 0000000000000000000000000000000000000000000000000000000000000000 -SigningIvAsHex 00000000000000000000000000000000 -Signer Signer_Name

By default, the demo script generates a random key ID. A specific key ID can be provided using the -KeyID parameter. For example: -KeyID 00000000-0000-0000-00000000000000000.

Usage of Shaka Packager

The demo script also shows the exact parameters passed to Shaka Packager in the output. This can be used as an example of how to invoke the packager directly.

Example of output from the demo script that can be used with Shaka Packager directly.

Verifying Packager Results

To test and verify if the packaged media works, it’s possible to use the players on the Axinom VTB website.

  1. Upload your content to a web server. In most cases, HTTPS is required for a successful playback.

  2. Open Axinom’s VTB player located at and select the latest Shaka Player from the list on the left.

  3. Insert the URL to the output file (for example: to the Stream URL field.

  4. The Token field can be left empty if this guide is used or you can get your token created using our tool.

  5. Click Load Stream. If the video starts playing, then the packaging was successful.

Additional Resources

For more information, please refer to the documentation and examples listed below.

Using Axinom Key Service’s Widevine CENC API


Revision History

Version Date Description


June 11, 2019

  • Initial version.