How to create MPEG-CENC ClearKey content

Overview

This tutorial is based on this full example, which is using our Bitmovin PHP API client, however we do offer API clients in other languages as well. If you haven't created any encodings with our API clients yet, we recommend you to read the getting started guide called "Create an Encoding with our API" at first, before you continue.

Encoding configuration

The parameters of the configuration have the following meaning:

key: This is the common content encryption key

kid: This is the common unique identifier for your content key in hex format

We will use this information to create a CENC DRM resource, which will be created for each fMP4 Muxing you want to be encrypted using MPEG CENC ClearKey Encryption. Further we have to provide a output location, where those encrypted segments should be stored at. Therefore, we don't provide the output location with the fMP4 Muxing, but with the CENC DRM resource.