Fast multi-encoding to reduce the cost of video streaming

Hadi Amirpour, Vignesh V Menon, Ekrem Çetinkaya, Adithyan Ilangovan, Christian Feldmann, Martin Smole, Christian Timmerer · DOI

Abstract

The growth in video Internet traffic and advancements in video attributes such as framerate, resolution, and bit-depth boost the demand to devise a large-scale, highly efficient video encoding environment. This is even more essential for Dynamic Adaptive Streaming over HTTP (DASH)-based content provisioning as it requires encoding numerous representations of the same video content. High Efficiency Video Coding (HEVC) is one standard video codec that significantly improves encoding efficiency over its predecessor Advanced Video Coding (AVC). This improvement is achieved at the expense of significantly increased time complexity, which is a challenge for content and service providers. This paper presents an overview of a wide range of multi-encoding schemes with and without the support of machine learning approaches integrated into the HEVC Test Model (HM) and x265, respectively.

Introduction

Modern video streaming relies on HTTP Adaptive Streaming (HAS), where every video is encoded into an "ABR ladder"—a dozen or more versions (representations) at different resolutions and bitrates to accommodate varying internet speeds.

Overview of the multi-encoding workflow for HTTP Adaptive Streaming (HAS).

While the High Efficiency Video Coding (HEVC) standard offers superior compression, it is computationally intensive. Finding the optimal way to partition a frame into blocks (CUs, PUs, and TUs) requires an exhaustive, time-consuming search. Since every representation in an ABR ladder is essentially the same content, performing this exhaustive search from scratch for every single bitrate and resolution is incredibly redundant and expensive for cloud providers.

Methodology

The authors propose several schemes categorized into Multi-Rate (MR) Schemes (optimizing encodes sharing the same resolution) and Multi-Encoding (ME) Schemes (optimizing across different resolutions and bitrates).

HEVC partitioning hierarchy from Frame to Coding Tree Units (CTUs), Coding Units (CUs), Prediction Units (PUs), and Transform Units (TUs).

Key Techniques:

  • Reference-Dependent Paradigm: One representation is encoded fully (the reference). Its metadata (partitioning decisions, motion vectors) is used to "bound" the search space for the other (dependent) representations.
  • Double-Bound Search: Dependent encodes only search a narrow window of block depths based on decisions made in the highest and lowest bitrate versions.
  • Machine Learning (CNNs): A Convolutional Neural Network predicts block-splitting decisions by analyzing raw video and reference metadata.
  • Heuristics for Motion & Prediction: Rules skip unlikely prediction modes. For example, if the reference encode used "Skip" mode, the dependent encode likely will too, bypassing complex intra-prediction checks.
  • Resolution Scaling: For ME schemes, motion vectors and block sizes are scaled from lower-resolution encodes to provide a "head start" for higher-resolution versions.

Experimental Setup

The researchers evaluated their schemes using four test sequences from the JVET, MCML, and SJTU datasets. They tested an ABR ladder consisting of 12 representations: three resolutions (540p, 1080p, 2160p) with four bitrates each.

Results and Discussion

The authors compared seven different schemes against a standard "stand-alone" x265 encode. Key findings include:

  • Structural Correlation: Structural decisions (like edge detection) are highly correlated across bitrates. If a 4K version splits a block at a certain point, the 1080p version is very likely to do the same.
  • Parallel Bottlenecks: In cloud environments, encoding the "thickest" representation (highest bitrate/resolution) is the bottleneck. The proposed ME-Scheme 4 specifically targets reducing the time of these bottleneck encodes, achieving a 76.82% reduction in parallel encoding time.
  • Efficiency Trade-off: This speedup came at a cost of only a 4.51% increase in bitrate (BDR) to maintain the same visual quality (PSNR). ME-Scheme 2 offered a more conservative trade-off, with a 22.03% parallel time saving and only 2.37% bitrate overhead.

Conclusion

While highly effective, these optimizations were less impactful for intra-coded blocks (CTUs), which were skipped in several schemes to maintain quality. Future work involves refining the sharing of inter-frame motion structures and integrating these heuristics into the newer VVC (Versatile Video Coding) standard to further improve the speed-to-quality ratio.

Summary updated

BibTeX
@misc{amirpour2022fast,
  author = {Hadi Amirpour and Vignesh V Menon and Ekrem Çetinkaya and Adithyan Ilangovan and Christian Feldmann and Martin Smole and Christian Timmerer},
  title = {{Fast multi-encoding to reduce the cost of video streaming}},
  year = {2022},
  eprint = {2210.13890},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.13890},
}
Figure