Qencode + BuyDRM

Encrypt with Widevine, FairPlay, and PlayReady through BuyDRM's KeyOS — no license server to manage.

Overview

What This Integration Does

Qencode integrates with BuyDRM's KeyOS multi-DRM platform to deliver Widevine, FairPlay, and PlayReady encryption in a single transcoding workflow. Qencode handles encoding and packaging; KeyOS provides the key server and license delivery. BuyDRM is the most common DRM partner for Qencode customers, offering a fully managed license server that removes the complexity of running your own DRM infrastructure.

Architecture

How the Integration Works

Source

Any storage or URL

Qencode ingests your source video from any storage provider or URL.

Encode & Encrypt

Encode & Encrypt

Qencode transcodes the video and requests encryption keys from BuyDRM's KeyOS key server.

Package

Key & license server

Qencode writes encrypted HLS and/or DASH output with KeyOS-managed keys to your storage.

Playback

Licensed playback

The viewer's device requests a license from KeyOS. BuyDRM validates and delivers the decryption key.

Getting Started

Setup Steps

  1. Set up your BuyDRM KeyOS account

    Register for a BuyDRM KeyOS account and obtain your API credentials and license server URLs for Widevine, FairPlay, and/or PlayReady.

    This step is completed in the BuyDRM KeyOS dashboard — see BuyDRM documentation

  2. Configure DRM provider in Qencode

    In the Qencode dashboard, go to Settings → DRM and add your BuyDRM KeyOS API key and license server endpoints.

  3. Prepare FairPlay certificate

    If you need FairPlay support, upload your Apple FairPlay Streaming certificate (.cer) to both BuyDRM KeyOS and Qencode.

    You must obtain the FairPlay certificate directly from Apple — see Apple FairPlay Streaming

  4. Enable DRM in your transcode request

    Add the buydrm_drm parameter to your format array, specifying the DRM type and BuyDRM as the provider.

  5. Test playback

    Use a test player (Shaka Player for Widevine/PlayReady, Safari for FairPlay) to verify license acquisition and encrypted playback across all target DRM systems.

Implementation

Code Example

Request Example

Widevine DRM via BuyDRM KeyOS

{
  "query": {
    "source": "https://your-storage.com/video.mp4",
    "format": [
      {
        "output": "advanced_hls",
        "separate_audio": 1,
        "stream": [
          {
            "video_codec": "libx265",
            "resolution": 2160,
            "optimize_bitrate": 1,
            "framerate": "30",
            "keyframe": "90"
          }
        ],
        "segment_duration": "6", 
        "buydrm_drm": {
          "request": "{cpix_request}"
        }
      }
    ]
  }
}

Replace placeholder credentials with your actual BuyDRM API key and KeyOS endpoint. Use environment variables in production.

For a step-by-step walkthrough, see Tutorial: BuyDRM Integration

We love creating powerful solutions that are aligned with the needs of your business.

Please send us a message if you have a question or Schedule a call for a demo to discuss your integration.

Let's talk

First Name
Last Name
Company
Email
Your Message

Contact us with any questions. We'd love to help.

Los Angeles, CA - (HQ)

San Francisco, CA

New York, NY