Code stream testing device and method based on GPU platform
Through the GPU platform-based code stream testing device and method, the parallel computing power of the GPU is used for real-time comparison, the delay problem of traditional test methods in large-scale code stream data scenarios is solved, efficient and stable code stream verification is achieved, and the needs of real-time and long-term testing are met.
Patent Information
- Application Number
- CN202510975316.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-15
- Publication Date
- 2025-08-12
AI Technical Summary
Traditional code stream testing devices and testing methods are difficult to meet the real-time and long-term testing requirements of large-scale code stream data. Especially in scenarios where the data volume is large and real-time testing is required, it is impossible to effectively verify the correctness of code streams.
Using the GPU platform-based code stream testing device and method, the parallel computing power of the GPU is used to generate test instructions in real time and perform frame-by-frame comparison between the standard code stream and the measured code stream, avoiding the time-consuming process of data storage and secondary reading, and real-time analysis and format verification of large-scale code streams are realized through multi-core parallel processing.
It realizes synchronous progress of code stream reception and comparison, meets the immediate verification needs of scenarios such as live broadcast and industrial control, improves the stability and efficiency of testing, supports unattended execution of multiple rounds of multi-protocol tests, and improves the consistency and reliability of the test process.
Smart Images

Figure CN120469934A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a bit stream testing device and method based on a GPU platform. Background Art
[0002] With the rapid development of modern digital technology, digital coding technology is being used more and more widely. As a sequence of encoded data, the correctness of the code stream is the basis for ensuring the application of digital coding technology. Therefore, the verification of the correctness of the code stream is very important. Code stream testing is a common test method for verifying the correctness of code streams in the field of data processing technology. Traditional code stream testing devices and test methods generally take the approach of first obtaining the tested code stream and the standard code stream, then performing a local comparison test, and finally outputting the test results for code stream correctness testing. This type of test device and test method is generally suitable for scenarios with small data volumes, short-term testing, and non-real-time testing. When the code stream data volume is very large and requires long-term testing, and there is also a need for real-time testing, traditional code stream testing devices and test methods are difficult to meet. Summary of the Invention
[0003] Based on this, it is necessary to provide a bit stream testing device and method based on a GPU platform to address the above technical problems.
[0004] A bitstream testing device based on a GPU platform, comprising: The test control platform is configured to set test parameters according to the test plan and send them to the GPU platform, and receive test results fed back by the GPU platform; the test parameters include bitstream extraction time, bitstream test duration, and bitstream type; The GPU platform is connected to the test control platform, the standard bitstream server, and the bitstream output platform, and is configured to generate a test instruction according to the test parameters and send the test instruction to the standard bitstream server and the bitstream output platform, receive the standard bitstream output by the standard bitstream server and the tested bitstream output by the bitstream output platform, perform a real-time comparison test on the standard bitstream and the tested bitstream, and feedback the test result; A standard bitstream server, connected to the GPU platform, configured to receive the test instruction and generate a standard bitstream according to the test instruction; the standard bitstream serves as a comparison benchmark for the bitstream test; The code stream output platform is connected to the GPU platform and is configured to receive the test instruction and generate a tested code stream according to the instruction.
[0005] In one embodiment, the test control platform includes a server and test software; the server provides an operating environment for the test software; the test software includes a software interface, a communication module, a business processing module, a bit stream management module, a log management module and an automation control module, wherein: the communication module is used to interact with the GPU platform for data; the automation control module is used to trigger the automated test process according to a preset test plan.
[0006] In one embodiment, the GPU platform includes a GPU server and GPU processing software; the GPU server provides an operating environment for the GPU processing software; the GPU processing software includes a 10G network transceiver module and a bit stream test module, wherein: the 10G network transceiver module is used to realize data transmission with the standard bit stream server and the bit stream output platform; the bit stream test module uses the GPU parallel computing capability to perform real-time comparison between the standard bit stream and the tested bit stream.
[0007] In one embodiment, the standard bitstream server includes a signal processing module, a clock module and a communication module, wherein: the signal processing module is used to generate standard bitstream data; the clock module is used to provide a synchronous clock signal to ensure the timing accuracy of bitstream generation.
[0008] In one embodiment, the bitstream output platform includes a prototype verification module and an interface module, wherein the prototype verification module is used to generate the bitstream data to be tested, and the interface module is used to communicate with the GPU platform.
[0009] In one embodiment, the GPU platform performs a real-time comparison test on the standard bitstream and the tested bitstream, including: verifying the consistency of the bitstream format between the tested bitstream and the standard bitstream; detecting the integrity and timing correctness of the bitstream data; and calculating the bit error rate and packet loss rate during the bitstream transmission process.
[0010] In one embodiment, the test control platform also displays the test results.
[0011] A bitstream testing method based on a GPU platform is applied to the bitstream testing device based on the GPU platform, and the method includes: The test control platform generates test parameters including bitstream extraction time, test duration, and bitstream type according to the test plan and sends them to the GPU platform; The GPU platform generates a test instruction according to the test parameters and sends it to the standard stream server and the stream output platform respectively; The standard stream server generates a standard stream according to the test instruction and sends it to the GPU platform; The code stream output platform generates a tested code stream according to the test instruction and sends it to the GPU platform; The GPU platform uses parallel computing capabilities to perform frame-by-frame comparison of the standard code stream received in real time with the code stream under test, generates test results, and feeds the test results back to the test control platform.
[0012] In one embodiment, the test control platform further displays the test results.
[0013] In one embodiment, the method includes: verifying the consistency of the bitstream format of the tested bitstream with the standard bitstream; detecting the integrity and timing correctness of the bitstream data; and calculating the bit error rate and packet loss rate during the bitstream transmission process.
[0014] The aforementioned GPU-based bitstream testing device and method incorporates the GPU platform into the bitstream testing architecture, leveraging its inherent parallel computing advantages to restructure the traditional testing process. After the test control platform configures parameters, the GPU platform generates real-time instructions to drive the standard bitstream server to synchronize bitstream output with the device under test. This allows for direct frame-by-frame comparison in the GPU memory without requiring pre-storage. The core principle is that the GPU's multi-core parallel architecture allows bitstream data to be sharded and processed simultaneously across thousands of computing cores, breaking through the efficiency bottleneck of CPU serial processing and enabling real-time parsing, format verification, and timing analysis of large-scale bitstreams. This design avoids the time-consuming data storage and secondary readout required in traditional solutions, creating a real-time "instant comparison" processing chain, fundamentally addressing the processing latency issue in large data volumes. The resulting beneficial effects include: real-time synchronization of code stream reception and comparison to meet instant verification needs in scenarios such as live broadcasting and industrial control; stability, without relying on local storage resources, eliminates the risk of storage media performance degradation during long-term testing; automation, through unified interface design and test plan pre-configuration, supports unattended execution of multiple rounds and multi-protocol tests, significantly improving the consistency and efficiency of the test process, and providing an efficient and flexible technical solution for reliability verification in high-density code stream environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 1 is a structural block diagram of a bit stream testing device based on a GPU platform in one embodiment; Figure 2 The figure is a flowchart of a bit stream testing method based on a GPU platform in one embodiment. DETAILED DESCRIPTION
[0016] In order to make the purpose, technical solutions and advantages of this application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.
[0017] In one embodiment, Figure 1 As shown, a bit stream testing device based on a GPU platform is provided, comprising: The test control platform is configured to set test parameters according to the test plan and send them to the GPU platform, and receive test results fed back by the GPU platform; the test parameters include bitstream extraction time, bitstream test duration and bitstream type.
[0018] The GPU platform is connected to the test control platform, the standard bitstream server, and the bitstream output platform, and is configured to generate a test instruction according to the test parameters and send the test instruction to the standard bitstream server and the bitstream output platform, receive the standard bitstream output by the standard bitstream server and the tested bitstream output by the bitstream output platform, perform a real-time comparison test on the standard bitstream and the tested bitstream, and feedback the test result.
[0019] The standard bitstream server is connected to the GPU platform and is configured to receive the test instruction and generate a standard bitstream according to the test instruction; the standard bitstream serves as a comparison benchmark for the bitstream test.
[0020] The code stream output platform is connected to the GPU platform and is configured to receive the test instruction and generate a tested code stream according to the instruction.
[0021] The aforementioned GPU-based bitstream test setup incorporates the GPU platform into the bitstream test architecture, leveraging its inherent parallel computing advantages to restructure the traditional testing process. After the test control platform configures parameters, the GPU platform generates real-time instructions to drive the standard bitstream server to synchronize bitstream output with the device under test. This allows for frame-by-frame comparison directly in the GPU memory without requiring pre-storage. The core principle is that the GPU's multi-core parallel architecture allows bitstream data to be sharded and processed simultaneously across thousands of computing cores, breaking through the efficiency bottleneck of CPU serial processing and enabling real-time parsing, format verification, and timing analysis of large-scale bitstreams. This design avoids the time-consuming data storage and secondary readout required in traditional solutions, creating a real-time "instantaneous comparison" processing chain, fundamentally addressing the processing latency issue in large data volumes. The resulting beneficial effects include: real-time synchronization of code stream reception and comparison to meet instant verification needs in scenarios such as live broadcasting and industrial control; stability, without relying on local storage resources, eliminates the risk of storage media performance degradation during long-term testing; automation, through unified interface design and test plan pre-configuration, supports unattended execution of multiple rounds and multi-protocol tests, significantly improving the consistency and efficiency of the test process, and providing an efficient and flexible technical solution for reliability verification in high-density code stream environments.
[0022] In one embodiment, the test control platform includes a server and test software; the server provides an operating environment for the test software; the test software includes a software interface, a communication module, a business processing module, a bit stream management module, a log management module and an automation control module, wherein: the communication module is used to interact with the GPU platform for data; the automation control module is used to trigger the automated test process according to a preset test plan.
[0023] Specifically, the server is a computer that primarily provides the operating environment for the test software. The test software primarily includes a software interface, a communication module, a service processing module, a stream management module, a log management module, and an automation control module. The software interface primarily handles the interface display; the communication module primarily handles communication with the GPU platform; the service processing module primarily handles control command transmission and service analysis; the stream management module primarily handles stream test parameter configuration and stream test result analysis; and the log management module primarily handles test log management. The automation control module primarily handles stream automation testing.
[0024] In addition, the test control platform also displays the test results.
[0025] In one embodiment, the GPU platform includes a GPU server and GPU processing software; the GPU server provides an operating environment for the GPU processing software; the GPU processing software includes a 10G network transceiver module and a bit stream test module, wherein: the 10G network transceiver module is used to realize data transmission with the standard bit stream server and the bit stream output platform; the bit stream test module uses the GPU parallel computing capability to perform real-time comparison between the standard bit stream and the tested bit stream.
[0026] Specifically, the GPU server is a computer that primarily provides the operating environment for the test software. The GPU processing software includes a communication module, a bitstream output management module, a standard bitstream management module, a 10G network transceiver module, and a bitstream testing module. The communication module primarily handles communication with the test control platform, the standard bitstream server, and the bitstream output platform; the bitstream output management module primarily handles the extraction of the bitstream under test; the standard bitstream management module primarily handles the extraction of the standard bitstream; the 10G network transceiver module primarily handles 10G network communication; and the bitstream testing module primarily performs bitstream correctness testing of both the standard bitstream and the bitstream under test.
[0027] In one embodiment, the GPU platform performs a real-time comparison test on the standard bitstream and the tested bitstream, including: verifying the consistency of the bitstream format between the tested bitstream and the standard bitstream; detecting the integrity and timing correctness of the bitstream data; and calculating the bit error rate and packet loss rate during the bitstream transmission process.
[0028] In one embodiment, the standard bitstream server includes a signal processing module, a clock module and a communication module, wherein: the signal processing module is used to generate standard bitstream data; the clock module is used to provide a synchronous clock signal to ensure the timing accuracy of bitstream generation.
[0029] In another embodiment, the bitstream output platform includes a prototype verification module and an interface module, the prototype verification module is used to generate the bitstream data to be tested, and the interface module is used to communicate with the GPU platform.
[0030] In one embodiment, Figure 2 As shown, a bit stream testing method based on a GPU platform is provided, which is applied to the bit stream testing device based on the GPU platform, including: S1: The test control platform generates test parameters including bitstream extraction time, test duration, and bitstream type according to the test plan and sends them to the GPU platform. S2, the GPU platform generates a test instruction according to the test parameters and sends it to the standard stream server and the stream output platform respectively; S3, the standard stream server generates a standard stream according to the test instruction and sends it to the GPU platform; S4, the bitstream output platform generates a bitstream to be tested according to the test instruction and sends it to the GPU platform; S5, the GPU platform uses parallel computing capabilities to compare the standard code stream received in real time with the code stream under test frame by frame, generates a test result, and feeds the test result back to the test control platform.
[0031] In one embodiment, the test control platform also displays the test results.
[0032] In another embodiment, the specific steps of S5 include: verifying the consistency of the bitstream format of the tested bitstream with the standard bitstream; detecting the integrity and timing correctness of the bitstream data; and calculating the bit error rate and packet loss rate during the bitstream transmission process.
[0033] Those skilled in the art will understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0034] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0035] The above-described embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention. It should be noted that a person of ordinary skill in the art may make various modifications and improvements without departing from the spirit of the present application, and such modifications and improvements are intended to fall within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be determined by the appended claims.
Claims
1. A code stream test device based on a GPU platform, characterized in that: The device comprises: The test control platform is configured to set test parameters according to the test plan and send them to the GPU platform, and receive test results fed back by the GPU platform; the test parameters include bitstream extraction time, bitstream test duration, and bitstream type; The GPU platform is connected to the test control platform, the standard bitstream server, and the bitstream output platform, and is configured to generate a test instruction according to the test parameters and send the test instruction to the standard bitstream server and the bitstream output platform, receive the standard bitstream output by the standard bitstream server and the tested bitstream output by the bitstream output platform, perform a real-time comparison test on the standard bitstream and the tested bitstream, and feedback the test result; A standard bitstream server, connected to the GPU platform, configured to receive the test instruction and generate a standard bitstream according to the test instruction; the standard bitstream serves as a comparison benchmark for the bitstream test; The code stream output platform is connected to the GPU platform and is configured to receive the test instruction and generate a tested code stream according to the instruction.
2. The bit stream testing device based on the GPU platform according to claim 1, characterized in that: The test control platform includes a server and test software; The server provides an operating environment for the test software; the test software includes a software interface, a communication module, a business processing module, a stream management module, a log management module and an automation control module, wherein: The communication module is used to interact with the GPU platform for data exchange; The automation control module is used to trigger the automation test process according to the preset test plan.
3. The bit stream testing device based on the GPU platform according to claim 1, characterized in that: The GPU platform includes a GPU server and GPU processing software; The GPU server provides an operating environment for the GPU processing software; the GPU processing software includes a 10G network transceiver module and a bit stream test module, wherein: The 10G network transceiver module is used to realize data transmission with the standard stream server and the stream output platform; The bitstream test module uses the parallel computing capability of the GPU to perform real-time comparison between the standard bitstream and the bitstream under test.
4. The bit stream testing device based on the GPU platform according to claim 1, characterized in that: The standard stream server includes a signal processing module, a clock module and a communication module, wherein: The signal processing module is used to generate standard code stream data; The clock module is used to provide a synchronous clock signal to ensure the timing accuracy of code stream generation.
5. The bit stream testing device based on the GPU platform according to claim 1, characterized in that: The code stream output platform includes a prototype verification module and an interface module. The prototype verification module is used to generate the tested code stream data, and the interface module is used to communicate with the GPU platform.
6. The bit stream testing device based on a GPU platform according to any one of claims 1 to 5, characterized in that: The GPU platform performs a real-time comparison test on the standard bitstream and the bitstream under test, including: Verify the consistency of the bitstream format between the tested bitstream and the standard bitstream; Check the integrity and timing correctness of the code stream data; Statistics on the bit error rate and packet loss rate during bit stream transmission.
7. The bit stream testing device based on a GPU platform according to any one of claims 1 to 5, characterized in that: The test control platform also displays the test results.
8. A code stream testing method based on a GPU platform, applied to the code stream testing device based on a GPU platform according to any one of claims 1 to 6, characterized in that: The method comprises: The test control platform generates test parameters including bitstream extraction time, test duration, and bitstream type according to the test plan and sends them to the GPU platform; The GPU platform generates a test instruction according to the test parameters and sends it to the standard stream server and the stream output platform respectively; The standard stream server generates a standard stream according to the test instruction and sends it to the GPU platform; The code stream output platform generates a tested code stream according to the test instruction and sends it to the GPU platform; The GPU platform uses parallel computing capabilities to perform frame-by-frame comparison of the standard code stream received in real time with the code stream under test, generates test results, and feeds the test results back to the test control platform.
9. The method for testing bitstream based on a GPU platform according to claim 8, wherein: The test control platform also displays the test results.
10. The method for testing bit stream based on a GPU platform according to claim 8, wherein: The GPU platform uses parallel computing capabilities to perform frame-by-frame comparison of the standard bitstream received in real time with the bitstream under test, including: Verify the consistency of the bitstream format between the tested bitstream and the standard bitstream; Check the integrity and timing correctness of the code stream data; Statistics on the bit error rate and packet loss rate during bit stream transmission.
Citation Information
Patent Citations
Constant code stream testing system and method of distributed file system
CN106874198A
Image signal generator output interface detection device and system
CN112291557A
Online signal quality monitoring analysis method and system based on GPU
CN114384558A