Offline VOD from Origin

One workflow for dynamic and static packaging

Unified Origin dynamically packages a single source to multiple output formats. There may be a use-case where you may want to use Unified Origin's functionality, and deliver the output to a third party, or directly upload a presentation to a CDN.

To support a single workflow for both, we have added a new command that uses the configuration (the server manifest) that Unified Origin uses and in a single call create a complete package of files for a playout format.

The first step is the same for either workflow. We create a server manifest file that describes our presentation: the media files, encryption options, playout options, etc...

#!/bin/bash

mp4split -o presentation.ism --hls.fmp4 audio.mp4 video.mp4

Note that the offline packaging steps described here are all built on top of Unified Origin's functionality. For example, you can specify the HLS target duration using (--[iss|hls|hds|mpd].minimum_fragment_length) and encryption through Unified Origin - DRM.

From dynamic packaging to static packaging

Now that we have a server manifest, you can use Unified Origin to dynamically serve all the formats. Or we can use a command to create all the files for a specific playout format and store them on disk. For storing the whole HLS presentation the command is ''--store-hls''.

#!/bin/bash

mp4split --store-hls -o presentation.m3u8 presentation.ism

The above command generates many files, and it's recommended to store the output in a separate folder.

#!/bin/bash

mp4split --store-hls -o my_first_video/presentation.m3u8 presentation.ism

The folder my_first_video now holds all the files and subdirectories required for HLS playback. Ready to be uploaded to your CDN.