Codec Processing Solutions for Ultra-HD Era

Publisher:RadiantGazeLatest update time:2024-03-07 Source: elecfans Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Low-latency interactive live broadcasts, short videos that continuously swipe up, 1080p movies and TV series... At a time when ultra-high-definition videos are easily available, our tolerance for low-definition and stuck videos is getting lower and lower. According to the "2022 China Internet Audiovisual Development Research Report", as of December 2021, the scale of online video (including short videos) users in my country reached 975 million, an increase of 47.94 million from December 2020, accounting for 94.5% of the total netizens. Behind this is the superposition of storage, bandwidth and computing power costs. If you want to pursue the ultimate audio-visual experience when watching an ultra-high-definition movie, then the video requires 16 times the computing power, 12 times the storage and 10 times the bandwidth. What if 100 people watch it at the same time? At this time, we urgently need a real-time live media processing platform with low cost, high compression rate and certain enhancement capabilities, as well as the trump card behind it-the codec processing solution.


1

You can have your cake and eat it too

According to data analysis by Agora, the user retention time in the channel is 10.3% higher for HD quality than for SD quality. HD images can make viewers more willing to stay on the platform and enhance user stickiness. But HD video is not something that can be done just by saying it, and the cost pressure behind it cannot be underestimated. In order to cope with the continuous growth of video traffic, video standards organizations have been promoting the continuous iteration of video coding technology. Starting with MPEG2, the compression rate of video coding standards has increased by approximately 50% every 10 years. Take H.266, which was launched in 2021, as an example: the compression rate is increased by 50% compared to H.265, but its encoding calculation cost is increased by 15 times. At this time, facing the new generation of encoding costs that are more than 10 times higher, traditional CPU capabilities have been unable to cope with it, and the collateral effect of Moore's Law also makes it difficult for it to burst out with high-performance capabilities. Since the CPU can't do it, how about using GPU and AI to leverage its power?

caae33a2-4c51-11ee-a25d-92fbcf53809c.png

According to the public financial reports of relevant companies, the cost of video transcoding and bandwidth has accounted for 10% of the company's annual revenue.

AI is indeed a good helper. This is a complete flowchart of video transcoding and streaming. We can see that in the entire red frame process, AI can completely take over the work of content review, understanding, editing and transcoding. But while improving the image quality of video encoding and decoding, the computing power cost required by AI should not be underestimated. The high cost of GPU is daunting. Enterprises dare not stockpile a large number of GPU cards at one time, not to mention that GPU transcoding cannot achieve the same high compression rate as CPU. In the face of the above demand pain points, the original single CPU or GPU architecture can no longer fully meet them. Compared with the two, there is no obvious winner. So the question is, is there a way to combine the two without increasing costs? There really is. We all know that there are many hardware platforms for video encoding, including CPU, GPU, proprietary chips and even FPGA... But for video transcoding (especially for hot data transcoding with high access volume), CPU is still the first choice, precisely because CPU has two irreplaceable advantages: 1. High flexibility; 2. High reusability. So, if AI is embedded in transcoding, can the entire transcoding solution be implemented on CPU? In the Intel 4th Generation Xeon Scalable Processor released earlier this year, Intel made a major innovation: by building in several hardware accelerators to accelerate performance in different scenarios. Among them, AMX's AI acceleration completely fills the gap in CPU coding and builds full-link intelligent coding.

cadc7442-4c51-11ee-a25d-92fbcf53809c.png

On Intel's fourth-generation Xeon, each physical core has such a built-in AMX acceleration unit. So, who says you can't have your cake and eat it too?

2

How did Tencent Cloud manage to remain number one for four consecutive years?

As the saying goes, practice makes perfect, and Tencent Cloud's practice is a good example. As 4k/8k videos gradually enter thousands of households, consumers' viewing habits are gradually moving towards HD and UHD. As a leading HD video service provider, the choice of Tencent Cloud becomes very important.

In terms of technology selection, it is the irreplaceable advantages of CPU that made Tencent Cloud decide to abandon the selection of hardware solutions and switch to pure CPU encoder processing. So, how does the fourth-generation Xeon help Tencent Cloud 4k/8k ultra-high-definition decoding?

Let's talk about cost reduction, super-resolution, computing power and upgrades. As mentioned earlier, the high flexibility of the CPU makes the CPU upgrade almost cost-free. The pure CPU encoder can achieve a higher compression rate than the hardware solution through algorithm design, and the software solution is more convenient to upgrade. For example: the original hardware chip supports 8K265 encoding. If you want to upgrade to support 266 encoding in the future, the hardware needs to be redesigned, and the software only needs to upgrade the code. The system can continue to iterate to support the latest capabilities. The pure CPU solution uses general computing power. When 8K transcoding is not performed, this part of the resources can be easily released for general CPU computing power utilization. When performing 4k/8k encoding, full-link intelligent encoding allows developers to focus on algorithm innovation without having to consider details such as how to deploy it, and it can be used out of the box.

Merge processes to reduce operation and maintenance costs: Since the computing power requirements of the super-resolution part are very high, it needs to be assisted by the GPU, but this will also cause some problems: migrating high-demand AI loads to the GPU will cause the encoding and pre-processing to be completely separated. This is like decoding in one room - sending it to another room for pre-processing - and then turning it back to encode. Not only does it make the process lengthy, it also imposes a huge burden on operation and maintenance, and the repeated scheduling of data also causes a certain increase in latency. The CPU full-link intelligent encoding incorporates this part into the CPU, successfully reducing operation and maintenance costs.

cb1b2282-4c51-11ee-a25d-92fbcf53809c.png

Due to the flexibility of the software, Tencent Cloud's 8K real-time transcoding system can support all mainstream video codec standards. Tencent Cloud is far ahead in MSU O264, V265 in 2021 and MSU H.264, H.265 and AV1 in 2022 and 2023. Fine-grained control AMX, INC (Intel N) and precision

The high computing power of BF16 and INT8 is indeed very helpful for migrating AI from GPU to CPU, but how to ensure accuracy? Intel Neural Compressor (INC) has a built-in correction algorithm specifically for accuracy. As a developer, you only need to do three things: input model, input data set, and input accuracy requirements.

In addition, during the pre-processing process, the fourth-generation Xeon uses intelligent encoding to bind the CPU core and finely control the overall transcoding process. For example, decoding, adding watermarks, converting resolution, encoding, and other operations are assigned to a specified CPU to ensure that interdependent operations are on the same CPU. AI reasoning capabilities have been greatly improved: video pre-processing such as image quality enhancement requires powerful computing power support. This is an actual case of Intel and Tencent Cloud. In the two scenarios of video enhancement and target detection, the AI ​​reasoning performance optimized using the fourth-generation Xeon AMX has increased by 1.86 and 1.95 times respectively compared to the previous generation platform.

cb5fc13a-4c51-11ee-a25d-92fbcf53809c.png

At the same time, the loss of precision is controlled within an acceptable range, which also enables users to realize full-link intelligent encoding on the CPU, greatly reducing deployment costs and operation and maintenance costs.

3

"Core" inspires intelligent change, and builds together

The human eye always desires the clearest and most realistic images and videos, and people's pursuit of clarity is endless. No matter how fast artificial intelligence brings technological progress, digitalization and cloud computing should be essential solutions for enterprises to cope with continuous changes. At the 2023 Tencent Global Digital Ecosystem Conference on September 7, Intel will host a special sub-forum with the theme of "Core" to Inspire Intelligence and Work Together as a Deep Partner. (Time: 14:30 Location: 1F CC105C) In the Intel sub-forum, you can learn about the many new achievements of Intel and Tencent's all-round and in-depth cooperation in artificial intelligence, big data, scientific computing, audio and video, etc. in the past 20 years, as well as the latest progress in building a new generation of information technology intelligent infrastructure with high energy efficiency, high reliability and easy scalability to promote the deep integration of the digital economy and the real economy.


At the same time, Intel will also share its latest product and technology blueprints, including Intel AI big model solutions supported by advanced hardware and optimized software such as the fourth-generation Intel Xeon Scalable Processor and Hanana Gaudi2, as well as Intel's cloud-edge integrated intelligent network solutions. In addition, Intel will also set up a special exhibition area at this conference, exhibiting a total of 15 advanced solutions through four major areas: cloud and AI product solutions, cloud-to-end solutions, conference room solutions, and edge product solutions. Standing at a new milestone in the digitalization of the industry, how do you view the infinite imagination that artificial intelligence, cloud computing, and big data bring to the future?

[1] [2]
Reference address:Codec Processing Solutions for Ultra-HD Era

Previous article:Qianshi NDI EFP Box-mounted Program Production System
Next article:IU5200 integrates 30V OVP function, supports I2C interface, 3A charging current, 1~4 lithium battery buck-boost charging chip

Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号