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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM

Abstract
Description
Claims
Application Information

- R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com