By Kenny Lai, Alibaba Cloud Solution Architect
HTTP Live Streaming (also known as HLS) is an HTTP-based adaptive bitrate streaming communications protocol developed by Apple Inc. and released in 2009. Support for the protocol is widespread in media players, web browsers, mobile devices, and streaming media servers. HLS resembles MPEG-DASH in that it works by breaking the overall stream into a sequence of small HTTP-based file downloads, each download loading one short chunk of an overall potentially unbounded transport stream. A list of available streams, encoded at different bit rates, is sent to the client using an extended M3U playlist.
ApsaraVideo for VOD is an all-in-one on-demand audio and video streaming solution. It automatically transcodes the collected, edited, and uploaded audio and video files based on the transcoding settings. It also allows you to edit mezzanine files online, manage media resources, and deliver media content to customers for playback with low latency. Backed by Alibaba Cloud's powerful infrastructure services, ApsaraVideo for VOD provides end-to-end video services to help enterprises and developers quickly build secure, elastic, and highly customizable video-on-demand (VOD) platforms and applications.
ApsaraVideo for VOD support of HLS with adaptive bitrate streaming. In this blog, we will demonstrate the steps required to enable multi bit rate support in HLS in ApsaraVideo VOD.
Log in to your Alibaba Cloud console and search for the ApsaraVideo VOD console. If you are having issues locating it, simply search for the terms "vod" in the search bar.
For this tutorial, I will be using an instance in the Singapore region.
Bind a domain name to VOD under Configuration Management. Navigate to Domain Names and click on Add Domain Name
Fill in the Information Accordingly
Click Submit. Wait until the CDN Configuration is done.
Navigate to Transcode section under Media Processing.
Add Video Packaging Template
Insert Template Group name: multibit
Rename the Video Template by clicking Edit
I have renamed my template to lowres
Click Add Template to add more resolution into the video packaging
Click Save to save the template.
Now you have a multi bit transcode template
In Configuration Management > CDN Configuration > Domain Names > HTTPS, click Modify
Ensure that HTTPS is turned on. You have to upload an SSL certificate here or via Alibaba Cloud SSL Certificate Service
Go to Audio/Video and click Upload
Select the multibit transcode and upload the media.
Click upload to upload the mp4 video
Go to Video and Audio to check the transcode status
Wait until the status become Normal
Click Video URL
Copy the URL of AUTO (adaptive bit rate url)
Paste the URL into URL field
And go to Code Tab
Click Copy button to download the source code and paste into the web page
With Video package template created, the HLS will bundle multiple resolution streaming into single URL and HLS player can adjust the bit rate accordingly.
Note: replace the URL
https://yourdomain.com/yourvodURL.m3u8 with your actual VOD AUTO url.
Sample HLS Adaptive bitrate HTL player sample code
That's it! To learn more about Alibaba Cloud ApsaraVideo for VOD, visit the official product page
The views expressed herein are for reference only and don't necessarily represent the official views of Alibaba Cloud.
Alibaba Clouder - June 5, 2018
Alibaba Clouder - July 8, 2020
Alibaba Clouder - January 21, 2019
Alibaba Clouder - April 29, 2020
Alibaba Clouder - October 18, 2018
Alibaba Clouder - April 8, 2020
An all-in-one VOD solutionLearn More
A professional solution for live video and audioLearn More
An array of powerful multimedia services providing massive cloud storage and efficient content delivery for a smooth and rich user experience.Learn More
A cloud service for transcoding multimedia data into various output resolutions, bit rates, and formats for unhindered playbackLearn More
More Posts by Alibaba Clouder