Using HLS and MPEG DASH for Flexible Streaming Videos
Guest post by Gilad Maayan (Cloudinary)
Everyday users watch videos from their phones, tablets, and computers, taking a few moments of their day to learn, to shop, and to be entertained. How many times has that buffering icon caused a user to give up? Time is valuable and people are busy.
Offering video on a site is a great way to increase traffic. However, if the videos take too long to buffer, users will go to another site. Luckily, there is a simple way to improve video performance, adaptive bitrate streaming. This video delivery technique adjusts the quality of a video stream for peak performance no matter where or what device is being used. Adaptive streaming detects the bandwidth and CPU capacity of the device and adjusts the streaming rate and video quality appropriately.
HLS (HTTP Live Streaming) and MPEG-DASH (Dynamic Adaptive Streaming over HTTP) are two popular adaptive bitrate streaming formats. These formats require outputting each video multiple times at different quality settings and a set of additional control files.
For example, a user begins playing a video while connected to Wi-Fi. To play immediately, the video starts with a smaller 640×360 representation while buffering. After a few seconds, the user expands to full screen and the player delivers the 1280×720 representation for higher resolution. The user can also manually switch to the 1920×1080 representation through the resolution selection box in the player. Then the user walks from his office to his car. He switches the player resolution to automatic. The client recognizes a drop in network performance and the player reverts to 640×360 play.
With all these considerations, creating streaming video can be complex. Outsourcing the video format process into adaptive streaming can be costly. However, there are available solutions that can simplify the process of creating streaming video. For example, Cloudinary‘s adaptive streaming profile functionality automates the generation of all the required video and master files, while its predefined streaming profiles deliver fully packaged .m3u8 or .mpd files to use with HLS or MPEG-DASH players.
About the author:
Gilad works as Developer Relations at Cloudinary.
Cloudinary offers a SAAS for Image And Video Management In The Cloud. It is the image back-end for web and mobile developers. An end-to-end solution for all image-related needs.
- Ubik Load Pack is used by Big players in the Video streaming field
- We provide professional services for Load Testing
- Learn more about our streaming plugin
- Get a Free trial
- Passerelle de paiement (proximité, internet) 28 September 2022
- Micrometer : monitorez simplement votre application 27 September 2022
- Circuit Breakers : résilience à la latence et à l’échec 12 July 2022