Complexcttp: Complexity Class Based Transcoding Time Prediction for Video Sequences Using Artificial Neural Network

Complexcttp: Complexity Class Based Transcoding Time Prediction for Video Sequences Using Artificial Neural Network

ComplexCTTP: Complexity Class Based Transcoding Time Prediction for Video Sequences Using Artificial Neural Network Anatoliy Zabrovskiy∗, Prateek Agrawal∗y, Roland Matha´∗, Christian Timmerer∗z, and Radu Prodan∗ ∗ University of Klagenfurt, Klagenfurt, Austria y Lovely Professional University, Punjab, India z Bitmovin, Klagenfurt, Austria Email: ∗[email protected], ∗[email protected], ∗[email protected], ∗[email protected], ∗[email protected] Abstract—HTTP Adaptive Streaming of video content is independent of video compression methods and can utilize becoming an integral part of the Internet and accounts for various codecs. This is especially important because we are the majority of today’s traffic. Although Internet bandwidth is now in a situation where we can choose from several video constantly increasing, video compression technology plays an important role and the major challenge is to select and set up codecs, such as Advanced Video Coding (AVC) [5], High multiple video codecs, each with hundreds of transcoding pa- Efficiency Video Coding (HEVC) [6], VP9 [7], AOMedia rameters. Additionally, the transcoding speed depends directly Video 1 (AV1) [8], and Versatile Video Coding (VVC) [9]. on the selected transcoding parameters and the infrastructure Typically, the transcoding of video segments is a parallel used. Predicting transcoding time for multiple transcoding process running on a high-performance infrastructure such parameters with different codecs and processing units is a challenging task, as it depends on many factors. This paper as the cloud [10, 11]. Unfortunately, transcoding of multiple provides a novel and considerably fast method for transcoding segments of a single video for adaptive streaming can take time prediction using video content classification and neural seconds or even days, depending on many technical aspects, network prediction. Our artificial neural network (ANN) model such as video content complexity, transcoding parameters, predicts the transcoding times of video segments for state of and processing units [12]. In fact, predicting the transcoding the art video codecs based on transcoding parameters and content complexity. We evaluated our method for two video time for the many combinations of transcoding parameters codecs/implementations (AVC/x264 and HEVC/x265) as part for different codecs and content types (i.e., genres) is a com- of large-scale HTTP Adaptive Streaming services. The ANN plex task and big challenge for streaming services [13, 14]. model of our method is able to predict the transcoding time Typically, servers and big data platforms [15] are used by minimizing the mean absolute error (MAE) to 1:37 and for distributed video transcoding without any prediction of 2:67 for x264 and x265 codecs, respectively. For x264, this is an improvement of 22% compared to the state of the art. the transcoding time. For example, Stride [15] is a dis- tributed video transcoding system that leverages the Apache Keywords-Transcoding time prediction; adaptive streaming; Spark [16] to speedup a video segment processing time. video transcoding; neural networks; video encoding; video complexity class; HTTP adaptive streaming; MPEG-DASH Adding a segment transcoding time prediction feature to Stride scheduling module can significantly improve the overall transcoding time. Cloud platforms, dedicated servers, I. INTRODUCTION and low-energy Internet of Things devices [11, 17] are some The demand of video applications and services is con- application domains where predicting transcoding time has stantly increasing. Today it is a commodity to encode, a significant impact on the provisioning and scheduling of distribute, share, and consume video content anywhere, thousands of transcoding tasks [10]. Accurate prediction anytime, and on any device [1]. Many of these services of transcoding times for multiple tasks allow services to adopt a streaming paradigm typically deployed over the avoid the load imbalance and inefficient use of resources. open, unmanaged Internet [2]. An important technical break- Moreover, modern scheduling methods [18, 19] exploit the through and facilitator is certainly HTTP Adaptive Streaming information about task completion time to make better (HAS). In HAS, video assets are provided in multiple use of the processing infrastructure. Such information is versions called representations that are divided into short- particularly useful for those transcoding services which term segments (e.g., 2 s to 10 s) and are requested by a client require multiple transcoding parameters and video content device individually based on its contextual conditions (e.g., with different characteristics [14]. network characteristics, viewing device, etc.) in a dynamic, To decrease and improve the transcoding time prediction adaptive manner [3, 4]. Moreover, in some implementa- for videos, we propose a novel and accurate method called tions, such as MPEG-DASH [3], the HAS technology is ComplexCCTP, a Complexity Class based Transcoding Time Prediction, which consist of two main phases: (i) (GoP) has a good correlation with the execution time of data generation and (ii) transcoding time prediction using other GOPs for the same video sequence. They propose an artificial neural network (ANN). The main purpose of the a method for predicting video transcoding time for live first phase is data generation and video content complexity streaming services based on the execution time history of classification. The second phase predicts the transcoding GOPs. Several other works [25, 26] also present history- time using the developed sequential ANN model. The ANN based predictive models. Nevertheless, due to the significant model is able to predict the time of video transcoding task variability in the workload of continuous processing tasks, for multiple codecs taking into account the complexity of history-based models often provide low accuracy. Ma et content in the context of HAS. The main contributions of al. [27] propose a video transcoding time prediction method, our ComplexCTTP method are summarized as follows: with respect to video segment length and targeted bitrates. • We propose a video complexity classification, with The authors make predictions based on collected statistics respect to the video segment’s spatial information (SI) and probabilistic theory and do not take into account the and temporal information (TI) [20, 21]. complexity of the content. Paakkonen et al. [28] present • We introduce a fast approach to measure spatial and an architecture for predicting video transcoding metrics in temporal information of video segments by computing a Docker-based system. The authors predict CPU utilization them for a transcoded segment with a low bitrate and and transcoding time for live video transcoding tasks on vir- resolution. tual machine instances using machine learning models. They • The developed sequential ANN model uses the most show that the video transcoding time for x264 codec for important parameters that influence the transcoding different instances can be predicted with average accuracy time as input data, i.e., information about the complex- of 3-6%. Zhao et al. [29] proposed a model for predicting ity of the video content, properties of the input video the complexity of transcoding video segments by analyzing file, and transcoding parameters of a video codec. I;P and B frames of the video sequences. The authors To assess our method, we used a set of ten different video se- make predictions for MPEG-4 Part 2 and H264 codec, and quences of different types with different duration and frame use a limited number of videos and more focus on video rate. We evaluated our approach for the two most commonly transcoding task scheduling. Benkacem et al. [30] propose deployed video codecs/implementations (i.e., AVC/x264 and virtual video transcoders and approach for load balancing the HEVC/x265) and in anticipation of the results our proposed transcoding tasks. The authors study transcoding behavior in approach achieved a mean absolute error (MAE) of 1:37 for different cloud environments and investigate the impact of x264 and 2:67 for x265, respectively. For x264 codec, this the video duration on a video transcoder performance in is an improvement of 22% compared to the state of the art terms of transcoding time. Krishnappa et al. [31] present results [14]. several policies for online video streaming and suggest to The remainder of this paper is structured as follows. transcode only the video bitrates that are actually requested Section II highlights related work. Our proposed method- by the client. They show that the increase in transcodig time ology is explained in Section III. Section IV describes of a single segment is almost linear with the increase in its implementation and evaluation results are provided in video segment duration. In turn, the authors use a limited Section V. Section VI concludes the paper and highlights number of transcoding parameters and presets. future work. Only a few studies deal with predicting video segment transcoding times for x264 but without taking into account II. RELATED WORK encoding presets (e.g., as known in x264, x265, VP9) or Several methods for predicting transcoding time using content complexity of segmented videos, such as spatial machine learning algorithms and neural networks for codecs and temporal information. Similarly, limited work has been x264, MPEG-4 Part 2, VP8, and H.263 are proposed done so far for x265 and high bitrates/resolutions, which

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    10 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us