Skip to main content

Encode a video using Axinom Encoding

This article is a part of a DRM Quick Start Guide.

DRM-protection is usually just one step in the Video Encoding pipeline, and it is performed by Video Encoder software. (Strictly speaking, DRM-protection happens during "Packaging" step of the pipeline, after the actual "Encoding".) Axinom DRM can work with any encoder that follows standards used by Widevine, PlayReady, and FairPlay.In this section we will use Axinom Encoding as an example of an encoder.

note

Axinom Encoding is a video ingestion and processing service. It allows to easily create video-on-demand (VOD) content from various source video formats. The service combines strong security and powerful transcoding capabilities wrapped into a simple HTTP-based API.
Read more

note

If you intend to use FairPlay, please also check instructions in FairPlay and AxinomDRM.

We will use UI for all operations (Mosaic Management System). However, everything can be equally done programmatically using an API.

Axinom Encoding Overview

encoding-overview

The basic steps to encode the first video include:

  1. Create Storage for an Input Storage for Axinom Encoding (this is where the source material will be uploaded to) and an Output Storage (this is where Axinom Encoding) will store the encoding results.
  2. Set up an Acquisition and a Publishing Profile.
  3. Set up a Processing Profile.
  4. Upload a video to the Input Storage (use a subfolder for each video).
  5. Start encoding. Wait until encoding is finished.
  6. Preview encoded video.

Create Storage​

The simplest way to create a Storage is using a Mosaic Hosting Service.

Follow instructions under Storage with Mosaic Hosting Service.

note

Make sure to allow "Public Read Access" for the video-output container. Otherwise, you won’t be able to play the encoded video.

With a few clicks you will get a Storage Account in Microsoft Azure, which you can use from Axinom Mosaic, but also directly using tools such as Azure Storage Explorer.

You should now have everything to set up an Acquisition and a Publishing Profile.

note

Of course, you can use an existing Storage Account in Microsoft Azure or an S3 Bucket in AWS with Axinom Encoding. See the links below.

Set up an Acquisition and a Publishing Profile​

Log in to your Mosaic Management System and follow instructions under Set up Encoding Profiles. As a storage provider choose "Microsoft Azure". All the required configuration (such as, account name, account key, SAS token) you can copy from the previous step (Storage properties).

Your secrets, such as your account key, shall be entered encrypted (with a certificate of Axinom Encoding), so that only Axinom Encoding can access your storage. To encrypt credentials, use Credentials Protection Tool.

Set up a Processing Profile​

Log in to your Mosaic Management System. You will find Processing Profiles under Settings / Video Encoding.

You can create a new profile or edit the DEFAULT profile. The properties here impact the encoding process. Check Set up Encoding Profiles, section "Processing Profile" for their meaning.

We recommend for the start leaving all values at their defaults. You can experiment with them later.

Upload a video​

Prepare a short video for the test. If it is short (just 1-2 minutes) you save time on all the copying and processing operations.

Upload the video to your Input Storage. Following the example above, take the container video-input, create a subfolder for your video and upload the .mp4 file there. Just a single .mp4 file is enough.

To upload a file to your storage you can use a tool such as Azure Storage Explorer.

Alternatively, you can upload files directly in Axinom Portal. Go to My Mosaic / Encoding and select "Upload a Source Video". This module uploads files to your storage previously created with the Mosaic Hosting Service.

Upload a video using Axinom Portal

screen-portal-upload-video

Start encoding​

To start encoding follow the steps below:

  1. Log in to your Mosaic Management System.
  2. Go to "Videos", then "New". You will get a list of folder in your configured Input Storage.
  3. Select the folder with your video
  4. Click Start encoding.

Encoding process takes some time (the longer the video, the longer the process). You can observe the progress looking at the logs, accessible from the respective station.

Preview encoded video​

Once encoding is finished, you can copy the link to the DASH manifest and play it with any DASH-capable video player.

For instance, you can go to Axinom test player under https://vtb.axinom.com, paste the link to DASH Stream URL and click "Load Stream".

The video playback should start.

If you successfully reached this point, you can proceed and apply protection to your video.

Next steps​

See also​