A method and device for evaluating performance of a video transcoding apparatus, and a medium

CN117241070BActive Publication Date: 2026-09-04INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311151739.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-07
Publication Date
2026-09-04
Estimated Expiration
2043-09-07

AI Technical Summary

Technical Problem

[0003]视频转码是一个高运算负荷的过程,需要对输入的视频流进行全解码、视频过滤、图像处理、并且对输出格式进行全编码;最简单的视频转码过程仅仅涉及到解码一个比特流,或用不同的编解码器重新编码两个步骤;虽然这种视频转码看似简单,只需要一个解码器和一个编码器,但是最终转码后视频显示结果并不理想,因为视频数据解码后重新编码会降低视频的画质

Benefits of technology

[0079] The technical solution provided in this application expands the capabilities of the video transcoding device by utilizing the resources of the entire server, thereby increasing the utilization rate of the video transcoding device and reducing the R&D costs of video transcoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117241070B_ABST
    Figure CN117241070B_ABST
Patent Text Reader

Abstract

The application discloses a video transcoding device performance evaluation method and device, equipment and medium, and belongs to the technical field of testing. The method comprises the following steps: receiving an instruction for evaluating the performance of the video transcoding device; setting a test script for multi-dimensional mode performance testing of the video transcoding device, wherein the multi-dimensional mode comprises a host relay service mode; performing performance detection on the video transcoding device according to the test script for multi-dimensional mode performance testing; and analyzing and evaluating the performance of the video transcoding device according to the performance detection result. The application expands the capacity of the video transcoding device through the resources of the whole server, improves the utilization rate of the video transcoding device, and reduces the research and development cost of video transcoding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of testing technology, and in particular to a method, apparatus, device and medium for evaluating the performance of video transcoding equipment. Background Technology

[0002] Video transcoding refers to converting a compressed and encoded video stream into another video stream to adapt to different network bandwidths, terminal processing capabilities, and different user needs. Video transcoding is essentially a process of decoding first and then encoding. Therefore, the video streams before and after the conversion may follow the same video encoding standard or they may not follow the same video encoding standard.

[0003] Video transcoding is a computationally intensive process that requires full decoding of the input video stream, video filtering, image processing, and full encoding of the output format. The simplest video transcoding process involves only two steps: decoding a single bitstream or re-encoding it with a different codec. Although this type of video transcoding seems simple, requiring only a decoder and an encoder, the final transcoded video display result is not ideal because re-encoding the video data after decoding degrades the video quality.

[0004] Currently, the frame rate per second (fps) data for video transcoding devices and the maximum number of transcoding paths supported above 30 fps (30 fps is the minimum number of frames per second for video without dropped connections) reflect the performance of video transcoding devices to a certain extent. However, this method only applies to on-chip transcoding scenarios and does not provide intuitive performance data for applications such as host relay. Furthermore, with the changing business models, simply looking at the frame rate per second of video transcoding devices in on-chip transcoding scenarios is no longer sufficient to meet business needs. Summary of the Invention

[0005] To overcome the aforementioned technical deficiencies, the purpose of this application is to provide a method, apparatus, device, and medium for evaluating the performance of a video transcoding device. The method includes: receiving an instruction to evaluate the performance of the video transcoding device; setting a test script for multi-dimensional mode performance testing of the video transcoding device, wherein the multi-dimensional mode includes a host relay service mode; performing performance testing on the video transcoding device according to the test script for multi-dimensional mode performance testing; and analyzing and evaluating the performance of the video transcoding device based on the performance testing results. This application expands the capabilities of the video transcoding device by utilizing the resources of the entire server, improves the utilization rate of the video transcoding device, and reduces the R&D costs of video transcoding.

[0006] The specific technical solutions provided in this application are as follows:

[0007] In a first aspect, this application provides a method for evaluating the performance of a video transcoding device, the method comprising:

[0008] Receive instructions for performance evaluation of the video transcoding device;

[0009] Set up a test script for multi-dimensional mode performance testing of video transcoding devices, wherein the multi-dimensional mode includes host relay service mode;

[0010] The video transcoding device is subjected to performance testing according to the test script of the multi-dimensional mode performance test;

[0011] The performance of the video transcoding device is analyzed and evaluated based on the performance test results.

[0012] In one embodiment, before receiving the instruction to evaluate the performance of the video transcoding device, the process includes:

[0013] Set up a server test machine and install a video transcoding device through a PCIe adapter slot;

[0014] Map the downloaded operating system image file to the system directory and install the toolkit;

[0015] Unzip and install the open-source video transcoding program.

[0016] In one embodiment, the test script for setting the multi-dimensional mode performance test of the video transcoding device includes:

[0017] Configure a test script that supports the specified video transcoding device mode;

[0018] Set up a test script that supports multiple video resolution modes;

[0019] Configure test scripts that support decoding and / or encoding business modes;

[0020] Set up a test script that supports on-chip transcoding service mode;

[0021] Configure a test script that supports the host relay service mode;

[0022] Set up a test script that supports multiple video transcoding speed adjustment modes;

[0023] Configure test scripts that support multiple test path modification modes, and disable test scripts for single test path modes;

[0024] Configure the functional parameters of the test script for the multi-dimensional mode performance test.

[0025] In one embodiment, the test script for setting up a host relay service mode includes:

[0026] The first compressed digital video decoding interface is set as the bitstream entry point using the first decoding parameters;

[0027] Receive the first compressed digital video data file;

[0028] The first compressed digital video data file is downloaded from the board to the server using hardware download parameters and hardware interface.

[0029] Set the source file path of the bitstream using the first path parameter;

[0030] The second compressed digital video encoding interface is set as a hardware interface using the first encoding parameters.

[0031] The first compressed digital video data file downloaded to the server is re-uploaded to the video transcoding device using hardware download parameters.

[0032] The video format of the first compressed digital video data file is re-uploaded to the video transcoding device by setting the first specified format parameter.

[0033] In one embodiment, the test script for setting up a host relay service mode further includes:

[0034] Set the video transcoding device's transcoding speed parameter to the first transcoding speed parameter;

[0035] Set the video delay parameter of the video transcoding device to the first video delay parameter.

[0036] In one embodiment, the setup supports test scripts for decoding and / or encoding business modes, including:

[0037] Set the resolution of the encoded video;

[0038] Set the source file path of the bitstream using the second path parameter;

[0039] The video encoding format is set to an open video format using the second encoding parameter;

[0040] The source file of the bitstream is repeatedly decoded or encoded using loop parameters;

[0041] The test script that supports on-chip transcoding service mode includes:

[0042] Decoding or encoding operations are performed on the video transcoding device by setting on-chip transcoding parameters;

[0043] Set the source file path of the bitstream using the third path parameter;

[0044] The decoding video format of the source file is set by the first decoding parameter;

[0045] Set the video encoding format to open video format using the second encoding parameter.

[0046] In one embodiment, the analysis and evaluation of the video transcoding device performance based on the performance test results includes:

[0047] A performance test log is generated based on the performance test results. The performance test log includes the number of frames transmitted per second of video and / or the video transcoding delay value and / or the CPU utilization rate of a single process and / or the CPU utilization rate of a multi-process.

[0048] The performance of the video transcoding device is evaluated based on the number of frames transmitted per second of the video footage and / or the video transcoding latency and / or the CPU utilization of a single process and / or the CPU utilization of a multi-process.

[0049] Error logs from the performance testing logs of the video transcoding device are checked.

[0050] Secondly, this application also provides a video transcoding device performance evaluation apparatus, the apparatus comprising:

[0051] A receiving module is used to receive instructions for performance evaluation of the video transcoding device;

[0052] The configuration module is used to set up test scripts for multi-dimensional mode performance testing of video transcoding devices, wherein the multi-dimensional mode includes host relay service mode;

[0053] The detection module is used to perform performance testing on the video transcoding device according to the test script of the multi-dimensional mode performance test;

[0054] The analysis module is used to analyze and evaluate the performance of the video transcoding device based on the performance test results.

[0055] Thirdly, this application also provides a computer device, the device comprising:

[0056] A memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the video transcoding device performance evaluation method as described in any of the first aspects.

[0057] Fourthly, this application also provides a computer storage medium, the medium comprising:

[0058] It stores a computer program that, when executed by a processor, implements the steps of the video transcoding device performance evaluation method described in any of the first aspects.

[0059] Compared with existing technologies, the video transcoding device performance evaluation method provided in this application includes: receiving an instruction to evaluate the performance of the video transcoding device; setting a test script for multi-dimensional mode performance testing of the video transcoding device, wherein the multi-dimensional mode includes a host relay service mode; performing performance testing on the video transcoding device according to the test script for multi-dimensional mode performance testing; and analyzing and evaluating the performance of the video transcoding device based on the performance testing results. This application expands the capabilities of the video transcoding device by utilizing the resources of the entire server, improves the utilization rate of the video transcoding device, and reduces the R&D costs of video transcoding.

[0060] The technical solution provided in this application supports the display of performance data in the host relay service mode. The source code stream is decoded to the server through the interface. Under the powerful computing power provided by the server, the decoded code stream can be processed at will, and the processed code stream can be transmitted back to the video transcoding device through the interface, thereby expanding the capabilities of the video transcoding device and increasing the efficiency of video transcoding.

[0061] The technical solution provided in this application supports monitoring whether the video transcoding performance bottleneck has been reached during interaction with the server in host relay mode by using the number of video frames transmitted per second and / or the video transcoding latency value and / or the CPU utilization rate of a single process and / or the CPU utilization rate of multiple processes in multi-channel testing, as well as monitoring whether performance data can be further optimized. This improves the utilization rate of video transcoding equipment and reduces the R&D cost of video transcoding. Attached Figure Description

[0062] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0063] Figure 1 This is a first flowchart of the video transcoding device performance evaluation method provided in Embodiment 1 of this application;

[0064] Figure 2 This is a second flowchart of the video transcoding device performance evaluation method provided in Embodiment 2 of this application;

[0065] Figure 3 This is a structural diagram of the video transcoding equipment performance evaluation device provided in Embodiment 3 of this application;

[0066] Figure 4 This is an exemplary system provided for Embodiment 5 of this application, which can be used to implement the various embodiments described in this application. Detailed Implementation

[0067] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0068] It should be noted that, unless the context explicitly requires it, the words "comprising," "including," and similar terms in the entire specification and claims should be interpreted as encompassing rather than being exclusive or exhaustive; that is, meaning "including but not limited to."

[0069] Furthermore, in the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0070] Example 1

[0071] This application provides a method for evaluating the performance of a video transcoding device, such as... Figure 1 As shown, the method includes:

[0072] Receive instructions for performance evaluation of the video transcoding device;

[0073] Set up a test script for multi-dimensional mode performance testing of video transcoding devices, wherein the multi-dimensional mode includes host relay service mode;

[0074] The video transcoding device is subjected to performance testing according to the test script of the multi-dimensional mode performance test;

[0075] The performance of the video transcoding device is analyzed and evaluated based on the performance test results.

[0076] Specifically, this application addresses the performance evaluation and testing of the video transcoding device under the host relay mode. It supports the display of performance data under the host relay service mode. The source code stream is decoded to the server through the interface. Under the powerful computing power provided by the server, the decoded code stream can be processed at will, and the processed code stream can be transmitted back to the video transcoding device through the interface, thereby expanding the capabilities of the video transcoding device.

[0077] For performance metrics, in host relay mode, the system supports reflecting the performance data of the video transcoding device by the number of frames transmitted per second and / or the video transcoding latency and / or the CPU utilization of a single process and / or the CPU utilization of multiple processes in multi-channel testing.

[0078] The beneficial effects of the technical solutions provided in this application are:

[0079] The technical solution provided in this application expands the capabilities of the video transcoding device by utilizing the resources of the entire server, thereby increasing the utilization rate of the video transcoding device and reducing the R&D costs of video transcoding.

[0080] The technical solution provided in this application supports the display of performance data in the host relay service mode. The source code stream is decoded to the server through the interface. Under the powerful computing power provided by the server, the decoded code stream can be processed at will, and the processed code stream can be transmitted back to the video transcoding device through the interface, thereby expanding the capabilities of the video transcoding device.

[0081] The technical solution provided in this application supports monitoring whether the video transcoding performance bottleneck has been reached during interaction with the server in host relay mode by using the number of video frames transmitted per second and / or the video transcoding latency value and / or the CPU utilization rate of a single process and / or the CPU utilization rate of multiple processes in multi-channel testing, as well as monitoring whether performance data can be further optimized. This improves the utilization rate of video transcoding equipment and reduces the R&D cost of video transcoding.

[0082] Example 2

[0083] This application provides a method for evaluating the performance of a video transcoding device, such as... Figure 2 As shown, the method includes:

[0084] Step S01: Set up a server test machine and install the video transcoding device through the PCIe adapter slot;

[0085] Map the downloaded operating system image file to the system directory and install the toolkit;

[0086] Unzip and install the open-source video transcoding program.

[0087] Specifically, the ffmpeg software package corresponding to the operating system is ported to the OS of the test machine, the ffmpeg software package is debugged and installed, the downloaded operating system image file is mapped to the system directory, and the tool package is installed.

[0088] Specifically, 1. Set up the server environment by installing hardware such as CPU, memory, hard drive, fan, and power supply onto the motherboard. Also, install adapter cards and video transcoding cards (video transcoding devices) onto the server, power on, and install the operating system (any system version is acceptable; taking Red Hat 8.1 as an example, system versions include CentOS 7.9 and Ubuntu 18.04).

[0089] 2. Set up the software environment under the operating system (OS):

[0090] (1) Mount the system image under the Baseboard Management Controller (BMC) and map it to the system directory / mnt. Use the yum toolkit to install the necessary basic software (e.g., gcc, git, patch, Xorg packages).

[0091] (2) Unzip the video transcoding open source computer program installation package *.tgz (the installation package varies depending on the system), and after unzipping, go to the path and execute ( / install.sh install);

[0092] (3) After installation, check if the driver was installed successfully; (lsmod|grep -I transcoder)

[0093] (4) Run the video transcoding open-source computer program to check if it can be executed normally.

[0094] The ffmpeg software package is an open-source computer program that can be used to record and convert digital audio and video and convert them into bitstreams; it is licensed under the LGPL or GPL license; it provides a complete solution for recording, converting and streaming audio and video; the ffmpeg software includes the very advanced audio / video codec library libavcodec, and many port codes in the audio / video codec library are newly developed to ensure high portability and encoding / decoding quality.

[0095] The video transcoding device is a new generation of high-density VPU (Video Processing Unit) accelerator card for full-scenario video AI applications. It supports H264, HEVC, and VP9 video formats and the mainstream video processing framework FFMPEG.

[0096] Step S02: Receive an instruction to evaluate the performance of the video transcoding device.

[0097] Step S03: Set up a test script for the multi-dimensional mode performance test of the video transcoding device, wherein the multi-dimensional mode includes the host relay service mode.

[0098] Step S03 also includes:

[0099] Step S031: Set up a test script that supports the specified video transcoding device mode;

[0100] Set up a test script that supports multiple video resolution modes;

[0101] Configure test scripts that support decoding and / or encoding business modes;

[0102] Set up a test script that supports on-chip transcoding service mode;

[0103] Configure a test script that supports the host relay service mode;

[0104] Set up a test script that supports multiple video transcoding speed adjustment modes;

[0105] Configure test scripts that support multiple test path modification modes, and disable test scripts for single test path modes;

[0106] Configure the functional parameters of the test script for the multi-dimensional mode performance test.

[0107] Specifically, a main script entry point is designed, and performance test scripts are edited. Performance test modes supported include:

[0108] (1) Test scripts that support specified video transcoding device modes;

[0109] (2) Test scripts that support multiple video resolution modes, including [4096x2160], [3840x2160], [1920x1080], and [1280x720];

[0110] (3) Test scripts that support decoding and / or encoding business modes (transcoding between H264, HEVC, and VP9);

[0111] (4) Test scripts supporting host relay service mode: H264->HEVC 2:H264->VP93:HEVC->H264

[0112] 4:HEVC->VP95:VP9->H2646:VP9->HEVC 7:H264->H2648:HEVC->HEVC 9:VP9->VP9;

[0113] (5) Test scripts supporting on-chip transcoding service mode: 1: H264->HEVC 2: H264->VP9 3: HEVC->H264

[0114] :4:HEVC->VP95:VP9->H2646:VP9->HEVC 7:H264->H2648:HEVC->HEVC 9:VP9->VP9

[0115] (6) Supports test scripts for multiple video transcoding speed adjustment modes (superslow, slow, medium, fast, superfast);

[0116] (7) Supports test scripts with multiple test channel modification mode (the number of online users watching the video simultaneously on the same video transcoding device), and cancels test scripts with single test channel mode (cancels the mode where only one person can use a video transcoding device);

[0117] The functional parameters of the test script for the multi-dimensional performance test are set as follows: 1. The main script is designed with a stop parameter to terminate the test; 2. The main script is designed with a clean parameter to clear the test log; 3. The main script is designed with a start parameter to start the test; 4. The sub-scripts use the input parameters passed from the main script to perform performance testing on the video transcoding device according to the test script for the multi-dimensional performance test, and analyze and evaluate the performance of the video transcoding device based on the performance testing results.

[0118] H.264 video format is MPEG-4 Part 10, a highly compressed digital video codec standard proposed by the Joint Video Team (JVT), which is composed of the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Moving Picture Experts Group (MPEG).

[0119] HEVC (High Efficiency Video Coding) is a new video compression standard used to extend the H264 / AVC encoding standard;

[0120] VP9 video format is an open format video compression standard developed by Google with no licensing fees; VP9 was initially named Next Gen Open Video (NGOV) and VP-Next; VP9 video format is the successor to VP8 video format.

[0121] The on-chip transcoding service mode is transcoding between H264, HEVC, and VP9. On-chip transcoding mode means that encoding and decoding operations are performed directly on the video transcoding device without going through a server.

[0122] The host relay service mode is a transcoding between H264, HEVC, and VP9. The host relay mode means that the data is first uploaded to the server for encoding and decoding, and then the transcoded video file is downloaded to the video transcoding device.

[0123] The encoding service mode is to encode the original video stream into three video formats: H264, HEVC, and VP9.

[0124] The decoding service mode is to decode video streams in H264, HEVC, and VP9 encoding formats into NV12 and P010le video formats.

[0125] This application sets up a test script for multi-dimensional mode performance testing of video transcoding equipment. The multi-dimensional mode includes a host relay service mode, which supports the display of performance data in the host relay service mode. The source code stream is decoded to the server through an interface. Under the powerful computing power provided by the server, the decoded code stream can be processed at will, and the processed code stream is transmitted back to the video transcoding equipment through an interface, thereby expanding the capabilities of the video transcoding equipment.

[0126] Step S032: Set the first compressed digital video decoding interface as the bitstream entry point using the first decoding parameters;

[0127] Receive the first compressed digital video data file;

[0128] The first compressed digital video data file is downloaded from the board to the server using hardware download parameters and hardware interface.

[0129] Set the source file path of the bitstream using the first path parameter;

[0130] The second compressed digital video encoding interface is set as a hardware interface using the first encoding parameters.

[0131] The first compressed digital video data file downloaded to the server is re-uploaded to the video transcoding device using hardware download parameters.

[0132] The video format of the first compressed digital video data file is re-uploaded to the video transcoding device by setting the first specified format parameter.

[0133] Specifically, the first compressed digital video decoding interface (H264 decoding interface) is set as the bitstream inlet by the first decoding parameter (h264dec_insvid);

[0134] Receive the first compressed digital video data file;

[0135] The first compressed digital video data file is downloaded from the board to the server using hardware download parameters (hwdownload_insvid parameter) and hardware interface;

[0136] Set the source file path of the bitstream using the first path parameter ($h264source parameter);

[0137] The second compressed digital video encoding interface (HEVC encoding interface) is set as a hardware interface using the first encoding parameter (hevcenc_insvid parameter);

[0138] The first compressed digital video data file downloaded to the server is re-uploaded to the video transcoding device using hardware download parameters (hwupload parameters);

[0139] Set the video format of the first compressed digital video data file that is re-uploaded to the video transcoding device using the first specified format parameter (format parameter).

[0140] By leveraging the resources of the entire server, the capabilities of the video transcoding equipment were expanded, its utilization rate was increased, and the R&D costs of video transcoding were reduced.

[0141] Step S033: Set the video transcoding device transcoding speed parameter to the first transcoding speed parameter;

[0142] Set the video delay parameter of the video transcoding device to the first video delay parameter.

[0143] Specifically, to achieve the ideal performance, the first transcoding speed parameter (superfast) and the first video delay parameter (low_delay=1) are configured to improve performance; these two parameters are set to achieve the best transcoding speed and the lowest transcoding delay value.

[0144] Step S034: Set the resolution of the encoded video;

[0145] Set the source file path of the bitstream using the second path parameter;

[0146] The video encoding format is set to an open video format using the second encoding parameter;

[0147] The source file of the bitstream is repeatedly decoded or encoded using loop parameters;

[0148] The test script that supports on-chip transcoding service mode includes:

[0149] Decoding or encoding operations are performed on the video transcoding device by setting on-chip transcoding parameters;

[0150] Set the source file path of the bitstream using the third path parameter;

[0151] The decoding video format of the source file is set by the first decoding parameter;

[0152] Set the video encoding format to open video format using the second encoding parameter.

[0153] Specifically, the pure encoding / pure decoding mode is implemented as follows:

[0154] Set the resolution of the encoded video (e.g., 1920x1080);

[0155] Set the source file path of the bitstream using the second path parameter ( / home / stress_test / bigstream / 1080p30.yuv);

[0156] Set the video encoding format to Open Video Format (VP9) using the second encoding parameter (vp9enc);

[0157] The source file of the bitstream is repeatedly decoded or encoded using the loop parameter (stream_loop-1);

[0158] The test script that supports on-chip transcoding service mode includes:

[0159] Decoding or encoding operations are performed on the video transcoding device by setting the on-chip transcoding parameter (-transcoder 1);

[0160] Set the source file path of the bitstream using the third path parameter ( / home / stress_test / bigstream / h2641080p30.mp4);

[0161] Set the decoding video format of the source file of the bitstream using the first decoding parameter (h264dec);

[0162] Set the video encoding format to Open Video Format (VP9) using the second encoding parameter (vp9enc).

[0163] This application uses multi-channel testing to monitor whether the video transcoding performance bottleneck is reached during interaction with the server, thereby improving the efficiency of video transcoding.

[0164] Step S04: Perform performance testing on the video transcoding device according to the test script of the multi-dimensional mode performance test.

[0165] Step S05: Analyze and evaluate the performance of the video transcoding device based on the performance test results.

[0166] Step S05 also includes:

[0167] Step S051: Generate a performance test log based on the performance test results. The performance test log includes the number of frames transmitted per second of video footage and / or the video transcoding delay value and / or the CPU utilization rate of a single process and / or the CPU utilization rate of a multi-process.

[0168] The performance of the video transcoding device is evaluated based on the number of frames transmitted per second of the video footage and / or the video transcoding latency and / or the CPU utilization of a single process and / or the CPU utilization of a multi-process.

[0169] Error logs from the performance testing logs of the video transcoding device are checked.

[0170] Specifically, a performance test log is generated based on the performance test results of the multi-channel mode. The performance test log includes the number of video frames transmitted per second for each channel mode and / or the video transcoding delay value and / or the CPU utilization rate of a single channel process and / or the CPU utilization rate of a multi-channel process.

[0171] The error logs (dmesg messages) of the performance test log of the video transcoding device are checked to see if there are any memory-related error messages related to the video transcoding device.

[0172] Check the event logs and SDL logs under the Baseboard Management Controller (BMC) to see if there are any video transcoding device memory-related error messages.

[0173] During the test, you can view the current test status of each mode, and a test log will be generated after the test is completed.

[0174] The performance monitoring log includes the number of frames transmitted per second (fps) and / or the video transcoding latency and / or the size of the decoded data transmitted and / or the time of the decoded data transmission and / or the video transcoding speed bitrate and / or the ratio to the actual time and / or the CPU utilization of a single process and / or the CPU utilization of a multi-process.

[0175] The performance of the video transcoding device is analyzed and evaluated based on the performance test results: whether the number of frames transmitted per second in the video transcoding device exceeds 30fps; whether the video transcoding latency is less than 200ms; whether the CPU utilization of a single process is greater than 80%; and whether the CPU utilization of a multi-process exceeds the theoretical value (here, the theoretical value varies depending on the server model, for example, on the NF5280M5 server, the CPU utilization of a multi-process is not less than 1%).

[0176] Check the event logs and SDL logs under the Baseboard Management Controller (BMC) to see if there are any video transcoding device memory-related error messages.

[0177] This application monitors whether the video transcoding performance bottleneck has been reached during interaction with the server by measuring the number of frames transmitted per second and / or the video transcoding latency and / or the CPU utilization of a single process and / or the CPU utilization of multiple processes in multi-channel testing. It also monitors whether performance data can be further optimized, thereby improving the utilization rate of video transcoding equipment and reducing the R&D cost of video transcoding.

[0178] The technical solution of this application can obtain more detailed performance data of video transcoding equipment, and the performance test modes supported are:

[0179] (1) Test scripts that support specified video transcoding device modes;

[0180] (2) Test scripts that support multiple video resolution modes, including [4096x2160], [3840x2160], [1920x1080], and [1280x720];

[0181] (3) Test scripts that support decoding and / or encoding business modes (transcoding between H264, HEVC, and VP9);

[0182] (4) Test scripts supporting host relay service mode: H264->HEVC 2:H264->VP93:HEVC->H264

[0183] 4:HEVC->VP95:VP9->H2646:VP9->HEVC 7:H264->H2648:HEVC->HEVC 9:VP9->VP9;

[0184] (5) Test scripts supporting on-chip transcoding service mode: 1: H264->HEVC 2: H264->VP9 3: HEVC->H264

[0185] :4:HEVC->VP95:VP9->H2646:VP9->HEVC 7:H264->H2648:HEVC->HEVC 9:VP9->VP9

[0186] (6) Supports test scripts for multiple video transcoding speed adjustment modes (superslow, slow, medium, fast, superfast);

[0187] (7) Support test scripts with multiple test path modification mode, and cancel test scripts with single test path mode;

[0188] The video transcoding device is subjected to performance testing according to the test script of the multi-dimensional mode performance test;

[0189] The performance of the video transcoding device is analyzed and evaluated based on the performance test results, which clearly shows the transcoding capability of the device.

[0190] The method for evaluating the performance of video transcoding devices provided in this application can be improved and optimized in several ways without departing from the technical solution of this application. These improvements and optimizations should also be considered within the scope of protection of this application.

[0191] The beneficial effects of the technical solutions provided in this application are:

[0192] The technical solution provided in this application supports the display of performance data in the host relay service mode. The source code stream is decoded to the server through the interface. Under the powerful computing power provided by the server, the decoded code stream can be processed at will, and the processed code stream can be transmitted back to the video transcoding device through the interface, thereby expanding the capabilities of the video transcoding device.

[0193] The technical solution provided in this application supports monitoring whether the video transcoding performance bottleneck has been reached during interaction with the server in host relay mode by using the number of video frames transmitted per second and / or the video transcoding latency value and / or the CPU utilization rate of a single process and / or the CPU utilization rate of multiple processes in multi-channel testing, as well as monitoring whether performance data can be further optimized. This improves the utilization rate of video transcoding equipment and reduces the R&D cost of video transcoding.

[0194] Example 3

[0195] This application provides a performance evaluation device for video transcoding equipment, such as... Figure 3 As shown, the device includes a preprocessing module, a receiving module, a setting module, a detection module, and an analysis module.

[0196] In this embodiment, the receiving module is used to receive instructions for performance evaluation of the video transcoding device;

[0197] The configuration module is used to set up test scripts for multi-dimensional mode performance testing of video transcoding devices, wherein the multi-dimensional mode includes host relay service mode;

[0198] The detection module is used to perform performance testing on the video transcoding device according to the test script of the multi-dimensional mode performance test;

[0199] The analysis module is used to analyze and evaluate the performance of the video transcoding device based on the performance test results.

[0200] In one embodiment, the preprocessing module is used to build a server test machine and install a video transcoding device through a PCIe adapter slot;

[0201] Map the downloaded operating system image file to the system directory and install the toolkit;

[0202] Unzip and install the open-source video transcoding program.

[0203] In one embodiment, the setting module is further configured to set a test script that supports a specified video transcoding device mode;

[0204] Set up a test script that supports multiple video resolution modes;

[0205] Configure test scripts that support decoding and / or encoding business modes;

[0206] Set up a test script that supports on-chip transcoding service mode;

[0207] Configure a test script that supports the host relay service mode;

[0208] Set up a test script that supports multiple video transcoding speed adjustment modes;

[0209] Configure test scripts that support multiple test path modification modes, and disable test scripts for single test path modes;

[0210] Configure the functional parameters of the test script for the multi-dimensional mode performance test.

[0211] In one embodiment, a setting module is configured to set the first compressed digital video decoding interface as a stream inlet using a first decoding parameter;

[0212] Receive the first compressed digital video data file;

[0213] The first compressed digital video data file is downloaded from the board to the server using hardware download parameters and hardware interface.

[0214] Set the source file path of the bitstream using the first path parameter;

[0215] The second compressed digital video encoding interface is set as a hardware interface using the first encoding parameters.

[0216] The first compressed digital video data file downloaded to the server is re-uploaded to the video transcoding device using hardware download parameters.

[0217] The video format of the first compressed digital video data file is re-uploaded to the video transcoding device by setting the first specified format parameter.

[0218] In one embodiment, the setting module is further configured to set the transcoding speed parameter of the video transcoding device to a first transcoding speed parameter;

[0219] Set the video delay parameter of the video transcoding device to the first video delay parameter.

[0220] In one embodiment, a setting module is used to set the resolution of the encoded video;

[0221] Set the source file path of the bitstream using the second path parameter;

[0222] The video encoding format is set to an open video format using the second encoding parameter;

[0223] The source file of the bitstream is repeatedly decoded or encoded using loop parameters;

[0224] The test script that supports on-chip transcoding service mode includes:

[0225] Decoding or encoding operations are performed on the video transcoding device by setting on-chip transcoding parameters;

[0226] Set the source file path of the bitstream using the third path parameter;

[0227] The decoding video format of the source file is set by the first decoding parameter;

[0228] Set the video encoding format to open video format using the second encoding parameter.

[0229] In one embodiment, the analysis module is configured to generate a performance test log based on the performance test results, wherein the performance test log includes the number of frames transmitted per second of video footage and / or the video transcoding delay value and / or the CPU utilization rate of a single process and / or the CPU utilization rate of a multi-process.

[0230] The performance of the video transcoding device is evaluated based on the number of frames transmitted per second of the video footage and / or the video transcoding latency and / or the CPU utilization of a single process and / or the CPU utilization of a multi-process.

[0231] Error logs from the performance testing logs of the video transcoding device are checked.

[0232] The beneficial effects of the technical solutions provided in this application are:

[0233] The technical solution provided in this application supports the display of performance data in the host relay service mode. The source code stream is decoded to the server through the interface. Under the powerful computing power provided by the server, the decoded code stream can be processed at will, and the processed code stream can be transmitted back to the video transcoding device through the interface, thereby expanding the capabilities of the video transcoding device.

[0234] The technical solution provided in this application supports monitoring whether the video transcoding performance bottleneck has been reached during interaction with the server in host relay mode by using the number of video frames transmitted per second and / or the video transcoding latency value and / or the CPU utilization rate of a single process and / or the CPU utilization rate of multiple processes in multi-channel testing, as well as monitoring whether performance data can be further optimized. This improves the utilization rate of video transcoding equipment and reduces the R&D cost of video transcoding.

[0235] Example 4

[0236] This application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it can perform the following method for evaluating the performance of a video transcoding device:

[0237] Receive instructions for performance evaluation of the video transcoding device;

[0238] Set up a test script for multi-dimensional mode performance testing of video transcoding devices, wherein the multi-dimensional mode includes host relay service mode;

[0239] The video transcoding device is subjected to performance testing according to the test script of the multi-dimensional mode performance test;

[0240] The performance of the video transcoding device is analyzed and evaluated based on the performance test results.

[0241] The beneficial effects of the technical solutions provided in this application are:

[0242] The technical solution provided in this application supports the display of performance data in the host relay service mode. The source code stream is decoded to the server through the interface. Under the powerful computing power provided by the server, the decoded code stream can be processed at will, and the processed code stream can be transmitted back to the video transcoding device through the interface, thereby expanding the capabilities of the video transcoding device.

[0243] The technical solution provided in this application supports monitoring whether the video transcoding performance bottleneck has been reached during interaction with the server in host relay mode by using the number of video frames transmitted per second and / or the video transcoding latency value and / or the CPU utilization rate of a single process and / or the CPU utilization rate of multiple processes in multi-channel testing, as well as monitoring whether performance data can be further optimized. This improves the utilization rate of video transcoding equipment and reduces the R&D cost of video transcoding.

[0244] Example 5

[0245] This application provides a computer storage medium, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it performs the following steps:

[0246] Receive instructions for performance evaluation of the video transcoding device;

[0247] Set up a test script for multi-dimensional mode performance testing of video transcoding devices, wherein the multi-dimensional mode includes host relay service mode;

[0248] The video transcoding device is subjected to performance testing according to the test script of the multi-dimensional mode performance test;

[0249] The performance of the video transcoding device is analyzed and evaluated based on the performance test results.

[0250] In one embodiment, before receiving the instruction to evaluate the performance of the video transcoding device, the process includes:

[0251] Set up a server test machine and install a video transcoding device through a PCIe adapter slot;

[0252] Map the downloaded operating system image file to the system directory and install the toolkit;

[0253] Unzip and install the open-source video transcoding program.

[0254] In one embodiment, the test script for setting the multi-dimensional mode performance test of the video transcoding device includes:

[0255] Configure a test script that supports the specified video transcoding device mode;

[0256] Set up a test script that supports multiple video resolution modes;

[0257] Configure test scripts that support decoding and / or encoding business modes;

[0258] Set up a test script that supports on-chip transcoding service mode;

[0259] Configure a test script that supports the host relay service mode;

[0260] Set up a test script that supports multiple video transcoding speed adjustment modes;

[0261] Configure test scripts that support multiple test path modification modes, and disable test scripts for single test path modes;

[0262] Configure the functional parameters of the test script for the multi-dimensional mode performance test.

[0263] In one embodiment, the test script for setting up a host relay service mode includes:

[0264] The first compressed digital video decoding interface is set as the bitstream entry point using the first decoding parameters;

[0265] Receive the first compressed digital video data file;

[0266] The first compressed digital video data file is downloaded from the board to the server using hardware download parameters and hardware interface.

[0267] Set the source file path of the bitstream using the first path parameter;

[0268] The second compressed digital video encoding interface is set as a hardware interface using the first encoding parameters.

[0269] The first compressed digital video data file downloaded to the server is re-uploaded to the video transcoding device using hardware download parameters.

[0270] The video format of the first compressed digital video data file is re-uploaded to the video transcoding device by setting the first specified format parameter.

[0271] In one embodiment, the test script for setting up a host relay service mode further includes:

[0272] Set the video transcoding device's transcoding speed parameter to the first transcoding speed parameter;

[0273] Set the video delay parameter of the video transcoding device to the first video delay parameter.

[0274] In one embodiment, the setup supports test scripts for decoding and / or encoding business modes, including:

[0275] Set the resolution of the encoded video;

[0276] Set the source file path of the bitstream using the second path parameter;

[0277] The video encoding format is set to an open video format using the second encoding parameter;

[0278] The source file of the bitstream is repeatedly decoded or encoded using loop parameters;

[0279] The test script that supports on-chip transcoding service mode includes:

[0280] Decoding or encoding operations are performed on the video transcoding device by setting on-chip transcoding parameters;

[0281] Set the source file path of the bitstream using the third path parameter;

[0282] The decoding video format of the source file is set by the first decoding parameter;

[0283] Set the video encoding format to open video format using the second encoding parameter.

[0284] In one embodiment, the analysis and evaluation of the video transcoding device performance based on the performance test results includes:

[0285] A performance test log is generated based on the performance test results. The performance test log includes the number of frames transmitted per second of video and / or the video transcoding delay value and / or the CPU utilization rate of a single process and / or the CPU utilization rate of a multi-process.

[0286] The performance of the video transcoding device is evaluated based on the number of frames transmitted per second of the video footage and / or the video transcoding latency and / or the CPU utilization of a single process and / or the CPU utilization of a multi-process.

[0287] Error logs from the performance testing logs of the video transcoding device are checked.

[0288] The technical solution provided in this application supports the display of performance data in the host relay service mode. The source code stream is decoded to the server through the interface. Under the powerful computing power provided by the server, the decoded code stream can be processed at will, and the processed code stream can be transmitted back to the video transcoding device through the interface, thereby expanding the capabilities of the video transcoding device.

[0289] The technical solution provided in this application supports monitoring whether the video transcoding performance bottleneck has been reached during interaction with the server in host relay mode by using the number of video frames transmitted per second and / or the video transcoding latency value and / or the CPU utilization rate of a single process and / or the CPU utilization rate of multiple processes in multi-channel testing, as well as monitoring whether performance data can be further optimized. This improves the utilization rate of video transcoding equipment and reduces the R&D cost of video transcoding.

[0290] Figure 4 This is an exemplary system provided as Embodiment 5 of the present application, which can be used to implement the various embodiments described in this application;

[0291] like Figure 4 As shown, in some embodiments, the system can serve as any of the aforementioned devices for performance evaluation of video transcoding devices in each of the various embodiments. In some embodiments, the system may include one or more computer-readable media (e.g., system memory or NVM / storage device) having a result and one or more processors (e.g., one or more processors) coupled to the one or more computer-readable media and configured to execute the result to implement the module thereby performing the actions described in this application.

[0292] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual 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.

[0293] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.

[0294] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for evaluating the performance of a video transcoding device, characterized in that, The method includes: Receive instructions for performance evaluation of the video transcoding device; Set up a test script for multi-dimensional mode performance testing of video transcoding devices, wherein the multi-dimensional mode includes host relay service mode; The video transcoding device is subjected to performance testing according to the test script of the multi-dimensional mode performance test; The performance of the video transcoding device is analyzed and evaluated based on the performance test results; The test script for setting up multi-dimensional mode performance testing of video transcoding devices includes: Configure a test script that supports the specified video transcoding device mode; Set up a test script that supports multiple video resolution modes; Configure test scripts that support decoding and / or encoding business modes; Set up a test script that supports on-chip transcoding service mode; Configure a test script that supports the host relay service mode; Set up a test script that supports multiple video transcoding speed adjustment modes; Configure test scripts that support multiple test path modification modes, and disable test scripts for single test path modes; Configure the functional parameters of the test script for the multi-dimensional mode performance test.

2. The video transcoding device performance evaluation method according to claim 1, characterized in that, Before receiving the instruction to evaluate the performance of the video transcoding device, the following steps are included: Set up a server test machine and install a video transcoding device through a PCIe adapter slot; Map the downloaded operating system image file to the system directory and install the toolkit; Unzip and install the open-source video transcoding program.

3. The video transcoding device performance evaluation method according to claim 1, characterized in that, The test script for setting up support for host relay service mode includes: The first compressed digital video decoding interface is set as the bitstream entry point using the first decoding parameters; Receive the first compressed digital video data file; The first compressed digital video data file is downloaded from the board to the server using hardware download parameters and hardware interface. Set the source file path of the bitstream using the first path parameter; The second compressed digital video encoding interface is set as a hardware interface using the first encoding parameters. The first compressed digital video data file downloaded to the server is re-uploaded to the video transcoding device using hardware download parameters. The video format of the first compressed digital video data file is re-uploaded to the video transcoding device by setting the first specified format parameter.

4. The video transcoding device performance evaluation method according to claim 1, characterized in that, The test script for setting up support for host relay service mode also includes: Set the video transcoding device's transcoding speed parameter to the first transcoding speed parameter; Set the video delay parameter of the video transcoding device to the first video delay parameter.

5. The video transcoding device performance evaluation method according to claim 1, characterized in that, The settings support test scripts for decoding and / or encoding business modes, including: Set the resolution of the encoded video; Set the source file path of the bitstream using the second path parameter; The video encoding format is set to an open video format using the second encoding parameter; The source file of the bitstream is repeatedly decoded or encoded using loop parameters; The test script that supports on-chip transcoding service mode includes: Decoding or encoding operations are performed on the video transcoding device by setting on-chip transcoding parameters; Set the source file path of the bitstream using the third path parameter; The decoding video format of the source file is set by the first decoding parameter; Set the video encoding format to open video format using the second encoding parameter.

6. The video transcoding device performance evaluation method according to claim 1, characterized in that, The analysis and evaluation of the video transcoding device's performance based on performance test results includes: A performance test log is generated based on the performance test results. The performance test log includes the number of frames transmitted per second of video and / or the video transcoding delay value and / or the CPU utilization rate of a single process and / or the CPU utilization rate of a multi-process. The performance of the video transcoding device is evaluated based on the number of frames transmitted per second of the video footage and / or the video transcoding latency and / or the CPU utilization of a single process and / or the CPU utilization of a multi-process. Error logs from the performance testing logs of the video transcoding device are checked.

7. A performance evaluation apparatus for video transcoding equipment implementing the method as described in claim 1, characterized in that, The device includes: A receiving module is used to receive instructions for performance evaluation of the video transcoding device; The configuration module is used to set up test scripts for multi-dimensional mode performance testing of video transcoding devices, wherein the multi-dimensional mode includes host relay service mode; The detection module is used to perform performance testing on the video transcoding device according to the test script of the multi-dimensional mode performance test; The analysis module is used to analyze and evaluate the performance of the video transcoding device based on the performance test results.

8. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the video transcoding device performance evaluation method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the video transcoding device performance evaluation method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Automatic testing method, system and device for matching transcoding card with GPUBOX and medium

    CN115509833A

  • Video transcoding card performance test method and device, electronic equipment and storage medium

    CN115767095A