HLS encoding

How it works

HLS (HTTP live streaming) encoding is a new way to encode videos.

It works as follows:

  • the HLS encoding process generates a playlist containing multiple versions of the original video; the playlist consists of the same video but with varying bitrates (qualities)
  • the playlist is sent to the HLS compliant player
  • the player can select the video with the bitrate which works best for the end user's connection quality (bandwidth): users with poor mobile connectivity get the low bitrate video etc.

Smart AdServer supports HLS encoding through the built-in video encoding module.

HLS playback only works with video players supporting this encoding format.

HLS encoding generates the following bitrates: 4 Mbit/s, 2 Mbit/s, 1.5 Mbit/s, 1 Mbit/s, 600 kbit/s, 400 kbit/s, 200 kbit/s.

The actual number of videos in the playlist depends on the quality (bitrate) of the original video: HLS encoding can only generate videos with bitrates lower than the original video (no upgrading).

Access

To use HLS encoding, upload the video creative and click the video encoding button.

From the encoding profiles, select HLS

For more about the setup of video insertions and creatives, see the articles Video outstream campaigns and Video instream campaigns.

Example

Example HLS JSON sent to the player:

{
  "outputs":[
    {
      "audio_bitrate":64,
      "audio_codec":"aac",
      "audio_sample_rate":96000,
      "base_url":"sftp://smartmanage.upload.akamai.com/506755/dev/diff/73/a81284/BBB_480_HB_HLS",
      "credentials":"akm_dev",
      "bitrate_cap":3000,
      "buffer_size":8000,
      "filename":"file-4040k.m3u8",
      "format":"ts",
      "h264_level":"4.1",
      "h264_profile":"high",
      "label":"hls-4040",
      "type":"segmented",
      "public":"1",
      "video_bitrate":2000,
      "video_codec":"h264",
      "width":1280
    },
    {
      "audio_bitrate":56,
      "audio_codec":"aac",
      "audio_sample_rate":22050,
      "base_url":"sftp://smartmanage.upload.akamai.com/506755/dev/diff/73/a81284/BBB_480_HB_HLS",
      "credentials":"akm_dev",
      "bitrate_cap":3000,
      "buffer_size":8000,
      "filename":"file-2040k.m3u8",
      "format":"ts",
      "h264_level":"3.1",
      "h264_profile":"main",
      "label":"hls-2040",
      "type":"segmented",
      "public":"1",
      "video_bitrate":2000,
      "video_codec":"h264",
      "width":1024
    },
    {
      "audio_bitrate":56,
      "audio_codec":"aac",
      "audio_sample_rate":22050,
      "base_url":"sftp://smartmanage.upload.akamai.com/506755/dev/diff/73/a81284/BBB_480_HB_HLS",
      "credentials":"akm_dev",
      "bitrate_cap":2250,
      "buffer_size":6000,
      "filename":"file-1540k.m3u8",
      "format":"ts",
      "h264_level":"3.1",
      "h264_profile":"main",
      "label":"hls-1540",
      "type":"segmented",
      "public":"1",
      "video_bitrate":1500,
      "video_codec":"h264",
      "width":960
    },
    {
      "audio_bitrate":56,
      "audio_codec":"aac",
      "audio_sample_rate":22050,
      "base_url":"sftp://smartmanage.upload.akamai.com/506755/dev/diff/73/a81284/BBB_480_HB_HLS",
      "credentials":"akm_dev",
      "bitrate_cap":1000,
      "buffer_size":4000,
      "filename":"file-1040k.m3u8",
      "format":"ts",
      "h264_level":"3.1",
      "h264_profile":"main",
      "label":"hls-1040",
      "type":"segmented",
      "public":"1",
      "video_bitrate":1000,
      "video_codec":"h264",
      "width":640
    },
    {
      "audio_bitrate":56,
      "audio_codec":"aac",
      "audio_sample_rate":22050,
      "base_url":"sftp://smartmanage.upload.akamai.com/506755/dev/diff/73/a81284/BBB_480_HB_HLS",
      "credentials":"akm_dev",
      "bitrate_cap":900,
      "buffer_size":2400,
      "filename":"file-640k.m3u8",
      "format":"ts",
      "h264_level":"3",
      "h264_profile":"baseline",
      "label":"hls-640",
      "type":"segmented",
      "public":"1",
      "video_bitrate":600,
      "video_codec":"h264",
      "width":480
    },
    {
      "audio_bitrate":56,
      "audio_codec":"aac",
      "audio_sample_rate":22050,
      "base_url":"sftp://smartmanage.upload.akamai.com/506755/dev/diff/73/a81284/BBB_480_HB_HLS",
      "credentials":"akm_dev",
      "bitrate_cap":600,
      "buffer_size":1600,
      "filename":"file-440k.m3u8",
      "format":"ts",
      "h264_level":"3",
      "h264_profile":"baseline",
      "label":"hls-440",
      "type":"segmented",
      "public":"1",
      "video_bitrate":400,
      "video_codec":"h264",
      "width":400
    },
    {
      "audio_bitrate":56,
      "audio_codec":"aac",
      "audio_sample_rate":22050,
      "base_url":"sftp://smartmanage.upload.akamai.com/506755/dev/diff/73/a81284/BBB_480_HB_HLS",
      "credentials":"akm_dev",
      "bitrate_cap":300,
      "buffer_size":800,
      "filename":"file-240k.m3u8",
      "format":"ts",
      "h264_level":"3",
      "h264_profile":"baseline",
      "label":"hls-240",
      "type":"segmented",
      "public":"1",
      "video_bitrate":200,
      "video_codec":"h264",
      "width":400
    },
    }],
}
Was this article helpful?
0 out of 0 found this helpful
Powered by Zendesk