Your browser is not supported. Please update it.

2 August 2018

RTL seduced by Bitmovin’s chunk-based encoding

Germany’s RTL has joined a growing list of broadcasters and operators starting to employ context aware encoding (CAE) to obtain extra efficiencies on top of codecs based on traditional technologies such as H.264 and HEVC.

This has been done through its technical services subsidiary CBC, which has deployed an HTML5 video player platform from Austrian platform start-up Bitmovin. This is part of RTL’s TV Everywhere strategy to extend all premium content to connected screens with DRM enabled through the HTML5 Encrypted Media Extensions. Another key selling point here was Bitmovin’s analytics to monitor performance and especially enable ads to be targeted via any of the OTT services, including both fixed and mobile devices.

The main point of interest is the use of CAE given how strongly Bitmovin has promoted its three-pass encoding which it says relies heavily on machine learning. What this amounts to is a bunch of algorithms that tune encoded bit rate to perceptual quality as expressed by various well-established parameters, with greater accuracy than before, exploiting continual variations within the quality of the video.

This involves taking account of varying complexity of video within titles down to scene level or even individual frames, aiming to extract extra savings in bandwidth or storage beyond what can be achieved by the video codecs themselves. The scope for those additional savings depends on the complexity so that bit rate reduction might vary between 10% for a fast-moving sporting event to as much as 40% for animations and maybe even more for talking heads.

Other vendors in this increasingly congested CAE space include Brightcove, Harmonic, Capella Systems and Beamr, focusing on this intra-title optimization going beyond what Netflix has done by re-encoding its entire catalog over the last three years to save on bandwidth. Applying CAE as a single bit rate to a whole title merely exploits its overall genre and fails to take account of variations within it, given that even a basketball game includes short sequences where nothing moves. For that reason, CAE has little scope to squeeze bit rates down more than 3% on top of the codec across a whole sporting event but up to 10% or even a bit more when applied at the frame level.

RTL was attracted by Bitmovin’s focus on efficiency of the encoding process as much as the bit rate savings achieved, which are roughly no more than comparable with some of its rivals. It uses a three-pass process designed to maximize the scope for parallel processing in the cloud to shorten the time taken to perform the encode. Typically, just two passes are made, which on paper would look quicker and would be on some implementations, but it fails to exploit parallelism as fully. So when there are enough resources for a high degree of parallelism, Bitmovin’s three pass approach can speed up encoding considerably, by up to 100 times according to the company.

But first the system needs good objectivity quality metrics as a base for assessing what bit rate is required to maintain a given level of quality for successive chunks of varying complexity. Bitmovin has gone back to basics and redefined what is meant by a video chunk in the first place.

In streaming, chunks are usually segments created on the basis of time intervals such as four seconds. Encoding can then be applied at that level to successive chunks catering for variations between each. Bitmovin cuts its chunks a bit differently on the basis of quality such that each chunk can be compressed as much as possible, although they are still around four seconds long. Quality is assessed on the basis of mathematical models that approximate results from subjective quality assessments where human observers are asked to rate the quality of a video.

This allows independent variables such as packet loss, bit rate, screen size and other video coding parameters to be fitted against these subjective results using various statistical regression techniques. That itself is really little different from techniques referred to under the banner of machine learning, but here there is a clear end game once the objective quality measurements have been made as a surrogate for applying CAE.

Bitmovin then conducts its first pass at a more superficial high level than rival methods, therefore executing much faster. This high-level analysis defines just the bitrate for each chunk, which is then passed down to the second pass where a frame-by-frame analysis can be made at the level of individual chunks which can now be thought of as independent containers.

It is this second pass that enables the parallelization because each container, or chunk, can be analyzed in more depth independently to derive a more accurate bit rate that can then be distributed throughout the chunk to take account of variations in complexity within it. The average bit rate for the whole chunk has to equal the value derived from the first pass but that does allow for much greater granularity. With some other CAE implementations either granularity stops at the chunk level or else the encoding process takes too long.

As Bitmovin puts it, most of the hard work is done inside the containers so that they can all be processed in parallel. In principle each chunk can be analyzed in parallel as separate cloud instances, enabling a video file to be processed much faster than if it was done sequentially. So a two-hour movie could be split into 1800 chunks of about four seconds each and distributed across 1801 cloud instances, allowing one for the controller, cutting time taken for that part of the analysis accordingly.

Of course, as Bitmovin admits, such high granularity would be impractical and actually prohibitively expensive in practice, so that some intermediate degree of parallelization would be optimal. After this the third pass for the video applies the analysis to the encoding process, similar to other CAE approaches.

While confined to file based, on-demand content at present, there is some potential for applying this form of CAE to live content given that it is designed to reduce the execution time. The question would be whether the bandwidth savings would justify the extra hardware costs. Bitmovin is currently researching how best to apply these techniques in live encoding.

The firm is also looking at innovative ways of applying machine learning on mobile devices to exploit feedback about the user’s behavior derived primarily from the camera. It has been evaluating for example how a video could be paused or muted when the user appears not to be paying attention, or in that event a scheduled advertisement could be postponed until the user starts looking at the screen again. There is also potential for taking account of distance between the viewer and device to optimize bandwidth of the streamed video. This would exploit the fact that the bit rate required for a given perceived quality reduces with increasing distance from the screen.