Supercharge Your Innovation With Domain-Expert AI Agents!

Video coding optimization method and system

A technology of video coding and optimization method, applied in the field of video coding, can solve the problem of not being able to maximize the computing power of multi-node CPUs, and achieve the effect of avoiding remote access to memory and improving the degree of coding parallelism

Pending Publication Date: 2022-04-19
HANGZHOU ARCVIDEO TECHNOLOGY CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0015] The present invention aims at the video coding in the prior art. On the NUMA architecture CPU, the coding task is limited to one node, and the computing power of the multi-node CPU cannot be maximized, and a video coding optimization method and system are provided.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Video coding optimization method and system
  • Video coding optimization method and system
  • Video coding optimization method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0062] A video coding optimization method applied in NUMA architecture, the method comprising:

[0063] Server detection, detecting the CPU hardware of the server, and obtaining the total number of CPU nodes and the logical cores included in the CPU nodes, where the total number of CPU nodes is M;

[0064] The creation of the encoder is based on the total number of detected CPU nodes, and the creation of the encoding kernel is carried out;

[0065] Video encoding, according to the gop id of the current video frame, encode the video on the encoder;

[0066] Combination of the code stream, for the coded video output video code stream, according to the display order of the I frame in the code stream from low to high, the code stream is sequentially spliced ​​into a complete code stream.

[0067] Encoder creation methods include:

[0068] Step 1, initialize and set node index variable i=0;

[0069] Step 2, call pthread_setaffinity_np to set the thread of the encoder to run on t...

Embodiment 2

[0078] On the basis of Embodiment 1, for the detection of the server CPU hardware, for example, in the Linux system, read the information in the / proc / cpuinfo file, filter the keywords "processor" and "physical id", and obtain the cpu id and physical id information. cpu id is the id of the logical processor, and physical id is the NUMA node where the logical processor resides. For example, on an Intel(R) Xeon(R) Gold 6258R CPU, there are 112 logical processors and 2 nodes. Node 0 (physical id 0) includes logical processors (0-27, 56-83), and node 1 (physical id 1) includes logical processors (28-55, 84-111).

[0079] For the creation of the encoder, for a Linux system and a dual-node Intel(R) Xeon(R) Gold 6258R CPU (M=2), use the pthread_setaffinity_np function to set the affinity of the logical processor, then the subsequent software code will only run on These are set on top of logical processors. First call pthread_setaffinity_np to set the subsequent software code to ru...

Embodiment 3

[0082] On the basis of the above embodiments, this embodiment provides a video encoding optimization system, which is applied to the NUMA architecture, and includes a server detection module, an encoder creation module, a video encoding module, and a code stream synthesis module;

[0083] The server detection module, the server detection module detects the CPU hardware of the server, and obtains the total number of nodes of the CPU and the logical cores included in the nodes of the CPU, wherein the total number of nodes of the CPU is M;

[0084] The encoder creation module, the encoder creation module creates the encoding kernel according to the total number of detected CPU nodes;

[0085] A video encoding module, the video encoding module encodes the video on the encoder according to the gop id of the current video frame;

[0086] The code stream synthesis module, for the coded video output video code stream, according to the display order of I frames in the code stream from ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a video coding technology, and discloses a video coding optimization method and system, the video coding optimization method is applied to an NUMA architecture, and the method comprises the following steps: detecting CPU hardware of a server, and obtaining a total number of nodes of a CPU and a logic core included by the nodes of the CPU, the total number of the nodes of the CPU being M; creating a coding kernel according to the detected total number of the CPU nodes; according to the go id of the current video frame, encoding the video on an encoder; and outputting video code streams for the coded video, and sequentially splicing the code streams into a complete code stream according to the display sequence of the I frames in the code streams from low to high. According to the method, the coding parallelism degree is improved, and meanwhile remote memory access existing in conventional software coding is avoided. And meanwhile, the coding parallelism is improved, the coding speed is improved, and the coding quality is not lost.

Description

technical field [0001] The present invention relates to video coding technology, in particular to a video coding optimization method and system applied in NUMA architecture. Background technique [0002] At present, software encoders for ultra-high-definition video use a combination of multiple parallel encoding strategies to achieve ultra-high-definition real-time transcoding. Commonly used parallel coding strategies are: [0003] (1), Intra-frame row-level parallel encoding (using multi-threading to realize intra-frame multi-row simultaneous encoding); [0004] (2), frame-level parallel encoding (using multi-threading to realize simultaneous encoding of multiple frames); [0005] (3) GOP-level parallel encoding (multiple threads are used to realize simultaneous encoding of multiple GOPs). [0006] Through multi-thread-based parallel encoding, the computing resources of multi-core CPUs can be mobilized as much as possible. At the same time, in order to meet the computin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): H04N19/436H04N19/423H04N19/177H04N19/159
CPCH04N19/436H04N19/423H04N19/177H04N19/159
Inventor 李日朱建国廖义谢亚光孙彦龙
Owner HANGZHOU ARCVIDEO TECHNOLOGY CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More