Your browser is not supported. Please update it.

20 July 2021

China may be outperforming global platforms in video codecs

Last week, our sister service Faultline, which provides weekly analysis of digital video issues, ran an article on the main candidates to be standard video codecs. The issue of these codecs is highly relevant to mobile operators these days, since so many people watch significant amounts of video over cellular networks.

The article, which focused on VVC (Versatile Video Codec), triggered a discussion about the state of codecs in China, given the Chinese investment in VVC technology (including from Alibaba, Kuaishou and Hikvision). This snowballed into a broader investigation into the wealth of alternative video codec options used in the largest single market in the world – one which is seldom mentioned in western codec discussions.

In western markets, the main codecs are H.264 (AVC); H.265 (HEVC); and VP9. AOMedia’s AV1 (VP10) has recently arrived, and even newer are H.266 (VVC), EVC (MPEG-5 Part 1), and LCEVC (MPEG-5 Part 2 – which is actually an improvement layer and not a fully-fledged codec). These are all controlled by just two licensing groups, MPEG and AOMedia.

In the Chinese market, there is a plethora of options, and while there is some interest in MPEG and AOMedia, the Chinese video platforms are aware that they are perfectly capable of following their own path.

iQiyi, Baidu’s main online video platform that is now making inroads into other Asian markets, was the first Chinese member of AOMedia, joining in 2018 – the year that AV1 was finalized. By April 2020, iQiyi had released AV1 support for PC and Android devices, and claiming to be the first Chinese video streaming site to support AV1.

Key to this was its QAV1 encoder, and the firm has worked closely with MediaTek, to push support for AV1 on mobile devices. Qualcomm is still avoiding AV1, playing the MPEG political game it seems, and so MediaTek has found itself at the forefront of a new codec – and one that seems to be taking root in China. Unsurprisingly, MediaTek and iQiyi are pointing to 5G being a key enabler for new UHD video, cloud gaming, and VR applications.

iQiyi’s QAV1 codec shone at Moscow State University’s (MSU) annual Video Codecs Comparison event – now in its fifteenth year. In deepest December, iQiyi announced that its QAV1 encoder had debuted at the event, and won third prize for Structural Similarity Index Measurement (SSIM), but that it beat both first and second place for average FPS times – by 1.63x and 2.52x respectively. This meant that iQiyi’s AV1 codec was outperforming most H.265 encoders in speed and compression ratio, in certain workloads.

The results are outlined on MSU’s Computer Graphics and Multimedia Laboratory portal, chronicling how the 20 different codecs performed across a range of 50 Full HD videos, in two main use cases – offline encoding (1fps), and online encoding (30fps). The metrics used to measure were SSIM, Peak Signal-to-Noise (PSNR), and Video Multimethod Assessment Fusion (VMAF).

MSU ranked the entrants according to their placing in each of those three categories. As mentioned, QAV1 was second in the SSIM category, after a joint-first placing from Aurora AV1 and BVC2.0, in the offline tests. For online SSIM testing, Tencent’s V265 took first, followed by XCCZM265, and S265 in third.

Most readers are not going to recognize most of those codecs. Aurora AV1 is the product of Visionular, a US firm. BVC2.0 is from Bytedance, the firm behind TikTok, while XCCZM265 comes from XCCZM Codec Team, a name with a stunningly low five search results on Google, and S265 is from Alibaba.

When you examine the VMAF and PSNR results, the same handful of names appear in the top three placings again, and it’s only when you look at the best speed-quality trade-off (SSIM) that you’ll spot x264 – something that would be pretty familiar to western vendors.

Notably, you’ll also spot SIF Codec, which along with ByteDance’s BVC2.0 are the only ones in the top rankings that are not part of the MPEG or AOMedia families. SIF Codec is based in the US, and is based on the human visual cortex model, also known as the Feynman Machine, apparently.

ByteDance’s BVC2.0 was first unveiled at these MSU tests, and it does seem to have a rather successful showing. However, there is almost no information out there about the codec, despite its apparent capabilities, and given that TikTok is one of the largest video services out there, it seems unlikely that anyone but ByteDance is actually going to use it.

There is a crop of names that should be more familiar to our readers. Open Visual Cloud’s SVT-AV1, SVT-HEVC, and SVT-VP9 entered, as did The WebM Project’s VP9, x264 Project’s namesake x264, and MulticoreWare’s x265 and Reference x265. AOMedia’s aom codec was there too, but none of these (bar x264) placed top.

If you trust the MSU methodology, this suggests that the best performing codecs are nearly entirely of Chinese extraction, and that for online encoding (that is, real time or live), HEVC is still the best option. However, the list of codecs entered is not exhaustive, and it would be interesting to see what a properly exhaustive test would spit out.

Of course, in business applications, dollars are the deciding factor, but the testing suggests that as the world moves past H.264 and into H.265, as well as rival AV1, you are going to have to move outside the conventional (and open source) FFmpeg software environment that was so familiar in H.264, and generally regarded as best in class.

Baidu, for instance, claims that its BD265 is 30% more code-efficient than x265, and twice to four times better in encoding speed. This is according to Ding Wenpeng, chief architect of Baidu Intelligent Cloud Video Cloud, who says that the team is focused on improving BD265 further, as well as develop equivalents for AV1, VVC, and AVS3.

As it stands, it looks like Chinese vendors have made distinct improvements in both AV1 and H.265 performance. Given that many of these codecs are currently only positioned for internal use, you can draw the conclusion that these users have seen that there are circumstances where rolling out your own codec, or a fork of another codec, makes sense.

There’s some precedent here, in China’s use of the Audio Video Coding Standard (AVS) family of codecs. AVS1 emerged in 2006, with AVS2 being finalized by the SAFRT regulator in 2016 – and submitted to the IEEE as IEEE1857.4.

Work is underway on AVS3, as evinced by Baidu’s Ding, and there seems to be a consensus that AVS2 is more capable than HEVC. Of course, its usage is limited to China, but given the size of that market, a domestic codec is nowhere near as strange as it would be if France tried to go its own way. However, it seems striking that there were no AVS-based entries into the MSU tests, perhaps suggesting that China’s web giants have moved past the national codec efforts.