Transcoding Quality Prediction for Adaptive Video Streaming

Vignesh V Menon, Reza Farahani, Prajit T Rajendran, Mohammed Ghanbari, Hermann Hellwagner, Christian TimmererarXiv 2023 · DOI

TL;DR

The Transcoding Quality Prediction Model (TQPM) is a lightweight, reduced-reference video quality assessment method designed for multi-stage video streaming pipelines. By analyzing only the input video's features and the target bitrates of the transcoding chain, TQPM accurately predicts final quality metrics (PSNR, SSIM, VMAF) in real-time, bypassing the need to analyze the processed output video.

What Problem Does This Paper Address?

In HTTP Adaptive Streaming (HAS), videos are encoded at multiple bitrates and resolutions (a "bitrate ladder") to adapt to fluctuating network conditions. To minimize latency and backhaul traffic, modern streaming architectures often employ multi-stage transcoding. For instance, an origin server might send a high-quality stream to an edge server, which then transcodes it to a lower bitrate requested by a specific user.

Evaluating Video Quality Assessment (VQA) in these multi-stage environments is incredibly challenging. Traditional Full-Reference (FR) and Reduced-Reference (RR) VQA methods require extracting features from both the original input video and the final reconstructed video to compute a quality score.

Figure 1: Workflow of state-of-the-art RR-VQA methods.

This approach introduces two major flaws:

  1. High Latency: Waiting for the encoding/decoding processes to finish across multiple stages before extracting features adds significant delay.
  2. Inaccessibility: The original reference video is rarely available at the client side, and the final transcoded video is not available at the origin server.
Figure 3: An example scenario of VQA in adaptive streaming applications. Clients A and B receive the highest bitrate repre- sentation of the bitrate ladder, encoded at the origin server (single-stage transcoding), while Clients C, D, and E receive lower bitrate representations transcoded at the edge server (two-stage transcoding).

This paper introduces TQPM, a model that predicts the final video quality at the source using only the input video characteristics and the intended transcoding parameters.

Methods

TQPM shifts the VQA paradigm by eliminating feature extraction on the output video. Its architecture consists of three main steps:

  1. Input Video Segment Characterization: The model extracts three low-complexity, Discrete Cosine Transform (DCT)-energy-based features from the luma channel of the input video using the open-source Video Complexity Analyzer (VCA):
  2. Average Texture Energy ($E$): Spatial information.
  3. Average Temporal Energy ($h$): Motion/temporal activity.
  4. Average Luminescence ($L$): Brightness.
  5. Transcoding Model Characterization: The target bitrates ($\tilde{b}_1, \tilde{b}_2, \dots, \tilde{b}_M$) for each stage of the transcoding pipeline are appended directly to the input video feature vector.
  6. Video Quality Prediction: This combined feature sequence is fed into a Long Short-Term Memory (LSTM) neural network. The LSTM models the sequential nature of the video chunks to predict the final PSNR, SSIM, and VMAF scores.
Figure 4: TQPM architecture

Datasets

The authors evaluated TQPM using 500 video sequences sourced from several well-known standard datasets:

  • JVET, MCML, SJTU, Berlin, UVG, and BVI.

The videos were split into an 80% training set and a 20% testing set. All sequences were encoded at 30 fps using the x265 HEVC open-source encoder under the ultrafast preset, adhering to Apple's HLS authoring specifications for the target bitrate representations.

Key Insights and Ideas

  • Output-Blind Quality Prediction: The core "aha" moment is that you don't actually need to look at the degraded output video to know how bad it will look. If you accurately understand the complexity of the source material (how fast it moves, how textured it is) and you know the constraints of the compression pipeline (the target bitrates), a machine learning model can infer the resulting artifacts and degradation.
  • Drastic Latency Reduction: By decoupling VQA from the output of the transcoding process, the quality score can be predicted almost instantaneously at the origin server, enabling real-time optimization of the bitrate ladder.

Key Results

TQPM achieves high accuracy while operating at a fraction of the computational cost of traditional methods:

  • Processing Speed: The average processing time for a 4-second video segment is just 0.328 seconds (including 0.323s for feature extraction and a mere 5 ms for LSTM inference). In comparison, traditional RR-VQA pipelines take 1.92s for single-stage and 3.78s for two-stage setups.
  • Prediction Accuracy (Single-Stage, $M=1$): Achieved an $R^2$ score of 0.83 (PSNR), 0.85 (SSIM), and 0.87 (VMAF), with a Mean Absolute Error (MAE) for VMAF of 3.01.
  • Prediction Accuracy (Two-Stage, $M=2$): Achieved an $R^2$ score of 0.84 (PSNR), 0.86 (SSIM), and 0.91 (VMAF), with a VMAF MAE of 3.25.

Crucially, the VMAF prediction errors remain well below the industry-standard threshold of 1 Just Noticeable Difference (JND), which is typically defined as 6 VMAF points.

Limitations and Future Work

While TQPM demonstrates impressive performance, the authors note a few limitations that pave the way for future research:

  • Codec Uniformity: The current model assumes that the same codec (HEVC/x265) is used across all stages of the transcoding pipeline. It does not yet account for mixed-codec scenarios (e.g., transcoding from H.264 to AV1).
  • End-to-End Integration: Future work will focus on integrating TQPM into live streaming systems as an active, real-time decision-making component to dynamically adjust encoding parameters based on predicted user QoE.

Summary updated

BibTeX
@misc{menon2023transcoding,
  author = {Vignesh V Menon and Reza Farahani and Prajit T Rajendran and Mohammed Ghanbari and Hermann Hellwagner and Christian Timmerer},
  title = {{Transcoding Quality Prediction for Adaptive Video Streaming}},
  year = {2023},
  eprint = {2304.10234},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.10234},
}
Figure