Flussonic Media Server documentation

BuyDRM KeyOS


BuyDRM (KeyOS) is a multi-DRM provider that allows you to protect content with several DRM technologies.

You can encrypt your content for the HLS or DASH delivery with BuyDRM.

Flussonic is acting as online packager. It means that you keep your original content untouched on disk and can even serve to some users without protection if it is required, but for outer world Flussonic will encrypt ondemand.

Flussonic supports encrypting live streams and vod files.

First you need to get User Key from BuyDRm. It is a UUID-like identifier that will be user in Flussonic configuration like userkey

Configure DRM for stream or VOD location as follows:

stream ort {
  url udp://239.0.0.1:1234;
  hds off;
  rtmp off;
  rtsp off;
  mpegts off;
  meta drm_id 536f6d65-2063-6f6e-7465-6e745f696420;
  drm buydrm userkey=596f7572-2075-7365-725f-6b6579202020;
}

file drm {
  path /storage/vod;
  hds off;
  rtmp off;
  rtsp off;
  mpegts off;
  drm buydrm userkey=596f7572-2075-7365-725f-6b6579202020;
}

Parameter userkey is User Key provided by KeyOS, so just copy paste it from web console

Next thing is KeyID. It is a UUID, that you need to generate randomly for each stream or file that you want to protect.

If you use the same KeyID for multiple videos, a single license would be enough to decode the whole group.

Put this generated KeyID as a meta drm_id <KeyID> option for live streams.

For VOD file /path/to/vod/content.mp4 Flussonic reads KeyID from /path/to/vod/content.mp4.keyos_id file.

So you need to create /path/to/vod/content.mp4.keyos_id with text UUID inside. If your file is called /storage/Gattaka.mp4 for example, then you will have to create file /storage/Gattaka.mp4.keyos_id.

Here is an example of command line key id creation:

$ uuid > /storage/Gattaka.mp4.keyos_id