Parameter adjusting method and device

By dynamically adjusting the graphics card capability evaluation during the encoding process and using rendering data and input parameters, the problem of uneven utilization of graphics card resources is solved and the balance of user experience and system processing capabilities is improved.

CN118708146APending Publication Date: 2024-09-27XIAN WANXIANG ELECTRONICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410850700.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The existing detection and analysis system graphics card capability assessment method cannot achieve a reasonable and balanced utilization of system graphics card resources, resulting in an imbalance of system processing capabilities and affecting user experience.

Method used

During the encoding process, we continuously obtain rendering data and input parameters, dynamically adjust the target acquisition encoding parameters, and analyze the graphics card capabilities using the two dimensions of system refresh frame rate and frame uniformity to ensure that encoding capabilities are not affected and maximize acquisition and encoding capabilities. Achieve balanced use of system processing power.

Benefits of technology

Without affecting coding capabilities, the collection and coding capabilities are maximized, the user experience is improved, and reasonable and balanced utilization of system graphics card resources is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708146A
    Figure CN118708146A
Patent Text Reader

Abstract

The invention provides a parameter adjustment method and device, relates to the field of data processing, and can improve user experience. The specific technical scheme is as follows: determining a target acquisition coding parameter; encoding according to the target acquisition encoding parameter; in the encoding process, continuously obtaining rendering data and input parameters; and dynamically adjusting the value of the target acquisition coding parameter in the coding process according to the continuously acquired rendering data and the input parameter. According to the method and the device, the capability of the graphics card can be analyzed through two dimensions of the system refresh frame rate and the frame uniformity, the rendering data and the input parameters are continuously acquired, and the values of the target acquisition coding parameters are circularly and repeatedly adjusted in the coding process according to the rendering data and the input parameters acquired each time; on the premise that the coding capacity is not affected basically, the coding capacity is collected to the maximum degree, the system processing capacity reaches a balanced use state, and system graphics card resources can be reasonably utilized in a balanced mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing, and in particular to a parameter adjustment method and device. Background Art

[0002] At present, in the software system based on desktop acquisition, the two most important functional modules are generally the acquisition module and the encoding module. The acquisition module and the encoding module need to adjust the acquisition encoding strategy and operating parameters in real time according to the capabilities of the operating system, so as to reasonably utilize the system processing capabilities and smoothly run the operating system by intervening in the acquisition frequency and encoding clarity. Among them, detecting and analyzing the system graphics card capabilities is the key to completing the above functions.

[0003] However, the existing methods for detecting and analyzing the system graphics card capabilities all have many problems, and thus cannot achieve the purpose of reasonably balancing the utilization of system graphics card resources. Summary of the invention

[0004] The embodiments of the present disclosure provide a parameter adjustment method and device, which can maximize the acquisition and encoding capabilities without substantially affecting the encoding capabilities, thereby improving the user experience. The technical solution is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a parameter adjustment method is provided, the method comprising: determining target acquisition encoding parameters; encoding according to the target acquisition encoding parameters; continuously acquiring rendering data and input parameters during the encoding process; dynamically adjusting the value of the target acquisition encoding parameters during the encoding process according to the continuously acquired rendering data and the input parameters.

[0006] Based on the above solution, the capabilities of the graphics card are analyzed through the two dimensions of system refresh frame rate and frame uniformity. By continuously acquiring rendering data and input parameters, the values ​​of the target acquisition encoding parameters are adjusted repeatedly during the encoding process according to the rendering data and input parameters acquired each time, so as to maximize the acquisition encoding capability without basically affecting the encoding capability, so that the system processing capacity can be used in a balanced state, and the system graphics card resources can be used reasonably and balanced, thereby improving the user experience.

[0007] In some embodiments, dynamically adjusting the value of the target acquisition encoding parameter during the encoding process according to the continuously acquired rendering data and the input parameter includes:

[0008] During the encoding process, it is determined whether the encoding time obtained each time exceeds a first threshold, the encoding time belonging to the input parameter; when the encoding time exceeds the first threshold, the value of the target acquisition encoding parameter is reduced.

[0009] Specifically, during the encoding process, the encoding time of each frame should not exceed the acquisition interval (i.e., the first threshold), otherwise the delay after each frame processing will be superimposed, affecting the user experience. Therefore, it should be determined whether the encoding time exceeds the first threshold. When the encoding time exceeds the first threshold, the values ​​of the acquisition parameters and the encoding parameters should be reduced.

[0010] In some embodiments, when the encoding time does not exceed the first threshold, dynamically adjusting the value of the target acquisition encoding parameter during the encoding process based on the continuously acquired rendering data and the input parameters also includes: during the encoding process, determining whether the acquisition frequency acquired each time is lower than a second threshold, the acquisition frequency belonging to the input parameter; when the acquisition frequency is lower than the second threshold, reducing the value of the target acquisition encoding parameter.

[0011] Specifically, during the encoding process, the acquisition frequency (or acquisition frame rate) should be set with a corresponding lower limit (i.e., the second threshold). If the acquisition frequency is lower than the set lower limit, the user will lose a good experience and the solution will lose its meaning. Therefore, it should be determined whether the acquisition frequency is lower than the second threshold. When the acquisition frequency is lower than the second threshold, the values ​​of the acquisition parameters and the encoding parameters should be reduced.

[0012] In some embodiments, when the acquisition frequency is not lower than the second threshold, dynamically adjusting the value of the target acquisition encoding parameter during the encoding process based on the continuously acquired rendering data and the input parameters also includes: during the encoding process, determining whether the rising value of the rendering data acquired each time is lower than a third threshold; when the rising value of the rendering data is lower than the third threshold, reducing the value of the target acquisition encoding parameter.

[0013] Specifically, during the encoding process, a corresponding threshold (i.e., the third threshold) should be set to determine whether acquisition and encoding have an impact on rendering capabilities. For example, if the mean value of the rendering frame interval increases by less than 0.2 and the standard deviation increases by less than 0.1 after reducing the acquisition frequency and encoding clarity, it is determined that acquisition and encoding have no impact on rendering. Furthermore, this solution sets a rendering data rise value and a corresponding third threshold to determine whether the rendering data rise value is lower than the third threshold. When the rendering data rise value is lower than the third threshold, the acquisition parameters and encoding parameters are reduced.

[0014] In some embodiments, the rendering data includes frame rate, frame interval, and standard deviation.

[0015] According to a second aspect of the embodiments of the present disclosure, a parameter adjustment device is provided, comprising a memory and a processor. The memory stores a program. When the program is executed in the processor, the processor is used to execute the method of the first aspect and any embodiment of the first aspect.

[0016] Based on the above equipment, the capabilities of the graphics card are analyzed through two dimensions: system refresh frame rate and frame uniformity. By continuously acquiring rendering data and input parameters, the values ​​of the target acquisition encoding parameters are adjusted repeatedly during the encoding process according to the rendering data and input parameters acquired each time, so as to maximize the acquisition encoding capability without basically affecting the encoding capability, so that the system processing capacity can be used in a balanced state, and the system graphics card resources can be used reasonably and balanced, thereby improving the user experience.

[0017] According to a third aspect of an embodiment of the present disclosure, a parameter adjustment device is provided, comprising: a determination module for determining target acquisition encoding parameters; an encoding module for encoding according to the target acquisition encoding parameters; an acquisition module for continuously acquiring rendering data and input parameters during the encoding process; and an adjustment module for dynamically adjusting the value of the target acquisition encoding parameters during the encoding process according to the continuously acquired rendering data and the input parameters.

[0018] In some embodiments, the adjustment module includes: a first judgment submodule, which judges whether the encoding time obtained each time exceeds a first threshold during the encoding process, and the encoding time belongs to the input parameter; a first reduction submodule, which is used to reduce the value of the target acquisition encoding parameter when the encoding time exceeds the first threshold.

[0019] In some embodiments, when the encoding time does not exceed the first threshold, the adjustment module specifically includes: a second judgment submodule, used to judge whether the acquisition frequency obtained each time is lower than the second threshold during the encoding process, and the acquisition frequency belongs to the input parameter; a second reduction submodule, used to reduce the value of the target acquisition encoding parameter when the acquisition frequency is lower than the second threshold.

[0020] In some embodiments, when the acquisition frequency is not lower than the second threshold, the adjustment module specifically includes: a third judgment submodule, used to judge whether the rising value of the rendering data acquired each time is lower than the third threshold during the encoding process; a third reduction submodule, used to reduce the value of the target acquisition encoding parameter when the rising value of the rendering data is lower than the third threshold.

[0021] In some embodiments, the rendering data includes frame rate, frame interval, and standard deviation.

[0022] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, characterized in that the computer program storage medium has program instructions, and when the program instructions are executed by a processor, the processor executes the method of the first aspect and any embodiment of the first aspect.

[0023] According to the fifth aspect of the embodiments of the present disclosure, a chip system is provided, characterized in that the chip system includes at least one processor, and when program instructions are executed in the at least one processor, the at least one processor executes the method of the first aspect and any embodiment of the first aspect.

[0024] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0026] Figure 1 is a schematic diagram of a parameter collection process method 100;

[0027] Figure 2 This is a schematic diagram of the performance results 200 of the physical machine AMD RX 5700 graphics card;

[0028] Figure 3 It is a diagram of the performance result 300 of the virtual machine NVIDIA Tesla T4 (4G);

[0029] Figure 4 This is a diagram of the performance result 400 of a virtual machine with 4 cores and 2.6G and NOGPU;

[0030] Figure 5 is a schematic diagram of a parameter adjustment method 500 provided in an embodiment of the present disclosure;

[0031] Figure 6 is a structural diagram of a parameter adjustment device 600 provided in an embodiment of the present disclosure;

[0032] Figure 7 is a structural diagram of a parameter adjustment device 700 provided in an embodiment of the present disclosure;

[0033] Figure 8 is another structural diagram of a parameter adjustment device 700 provided in an embodiment of the present disclosure;

[0034] Fig. 9 is another structural diagram of a parameter adjustment device 700 provided in an embodiment of the present disclosure;

[0035] Fig.10 is another structural diagram of a parameter adjustment device 700 provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0036] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0037] Currently, in the software system based on desktop acquisition (hereinafter referred to as "acquisition system"), the two most important functional modules are generally the acquisition module and the encoding module. Among them:

[0038] Capture module: used to extract the desktop image from the operating system desktop through the interface provided by the operating system, graphics card or third-party platform, and at the same time extract the changed area of ​​the desktop, and process the synchronous update of the previous image frame and the new image frame through the changed area;

[0039] Coding module: used to process the changing part of the image through the image contrast compression processing protocol (such as H264), and quantize and compress the changing part to form a compressed frame.

[0040] During the processing, the acquisition module can be roughly divided into the following two acquisition modes:

[0041] The operating system uses a real graphics card (for example, a physical graphics card or a physical virtual graphics card). In this environment, the acquisition interface (for example, the system interface, the graphics card interface) usually directly acquires images from the graphics card, and relies on the capabilities of the graphics card (GPU) during the processing. Among them, a physical virtual graphics card refers to splitting the physical graphics card in the host into multiple virtual graphics cards for use by multiple cloud virtual machines through the cloud. Each virtual machine can use the capabilities of the physical graphics card through the virtual graphics card in the system;

[0042] There is no external graphics card (NOGPU) in the operating system. In this environment, the acquisition interface (for example, system interface, third-party platform interface) acquires images through the system virtual graphics card. Since the system virtual graphics card is virtually implemented by the operating system, the rendering and acquisition of the graphics card are all implemented through CPU calculation. Among them, NOGPU means that there is no external graphics card (including physical graphics card or physical virtual graphics card) in the operating system, that is, there is no real GPU capability; the system virtual graphics card refers to the graphics card virtualized by the operating system when there is no external graphics card available in the operating system. This graphics card provides an interface for a general graphics card. The processing power of the graphics card is achieved by the operating system coordinating the CPU to simulate GPU operations and the memory to simulate the video memory.

[0043] Similarly, the corresponding encoding modules in the above two scenarios can also be completed through collaborative processing of the GPU and the CPU.

[0044] The smoothness of the video images formed by the acquisition system is also determined by the rendering results of the graphics card. That is to say, the rendering capability of the system determines the upper limit of the acquisition system. For example, if the operating system plays a video, a smooth video effect requires 24fps, but since the system can only render to 10fps, the acquisition system can only capture up to 10fps, and the video playback effect will definitely be jerky and not smooth.

[0045] At the same time, the system's acquisition and encoding form a certain competitive relationship with the system's processing power (mainly the graphics card). Among them: the acquisition and encoding modules in the real graphics card environment form a competitive relationship with the system GPU; the acquisition module and encoding module in the NOGPU environment form a competitive relationship with the CPU processing power. At the same time, the competition between the acquisition system and its own graphics card rendering will also affect the ability of other software in the entire operating system to use the system processing.

[0046] To address the above issues, the acquisition module and encoding module need to adjust the acquisition and encoding strategies and operating parameters in real time according to the capabilities of the operating system, so as to achieve the purpose of rationally utilizing the system processing capabilities and smooth operation of the operating system by intervening in the acquisition frequency and encoding clarity.

[0047] From the above analysis, it can be concluded that detecting and analyzing the system graphics card capabilities is the key to completing the above functions.

[0048] There are two general ways to deal with the above requirements:

[0049] 1. Analyze and process based on the graphics card model, quantify the graphics card capabilities based on the graphics card capabilities ranking on the market, and then make adjustments to the graphics card used by the operating system.

[0050] 2. Use 3D simulation programs (Directx, Opengl) to test and quantify the graphics card capabilities.

[0051] The disadvantages of the first method are as follows:

[0052] 1. Graphics card capabilities are multi-dimensional, such as encoding capability, decoding capability, rendering capability, video memory size, etc. It is difficult to reduce these dimensional capabilities to a single dimension of acquisition system capabilities or even to quantify them;

[0053] 2. The performance of the graphics card is also affected by factors such as graphics card aging and virtualization segmentation. The performance in the operating system does not match the ideal capabilities.

[0054] The disadvantages of the second method are as follows:

[0055] 1. The target operating system may not meet the running requirements of the 3D simulation program, such as the lack of relevant 3D platform versions;

[0056] 2. For the acquisition system, the running smoothness of the 3D program may not necessarily be in line with the operating environment of the acquisition system. For example, the NOGPU operating system has limited GPU capabilities simulated by the CPU, so the usage scenario is bound to be irrelevant to a large number of 3D programs.

[0057] It can be seen that the above methods are unable to achieve the purpose of reasonably balancing the utilization of system graphics card resources.

[0058] In view of this, the present disclosure provides a parameter adjustment method, which can improve the above problems and enhance the user experience.

[0059] In order to better understand the parameter adjustment method provided by the embodiment of the present disclosure, the following explanation is made before introducing the embodiment of the present disclosure:

[0060] In terms of the technical characteristics of the acquisition system, the factor directly affecting the performance of the graphics card is the graphics card's rendering capability, which is mainly reflected in the graphics card's frame rate and refresh stability.

[0061] In general, the monitor refresh rate is 60fps. In pursuit of the highest fluency, we hope to capture and encode each frame of the refresh image first. Therefore, the ideal requirements for our system graphics card capabilities can be summarized as follows:

[0062] 1. The system ensures 60 frames per second parameter adjustment in the full-screen full-frame refresh scene, and no frames can be missed;

[0063] 2. The refresh interval between each frame and the two adjacent frames is maintained at 16.6667ms (ie, 1000ms / 60), which will be considered as the ideal interval below.

[0064] Therefore, we can use the actual refresh frame rate under full frame refresh and the refresh interval as the basis for analyzing the graphics card capabilities.

[0065] We can collect data through the DXGI interface provided by Windows 10 system. The core function is as follows:

[0066]

[0067] Among them, TimeoutInMilliseconds: timeout setting, the unit is milliseconds (ms).

[0068] pFrameInfo: The returned acquisition result. The structure definition is as follows:

[0069]

[0070]

[0071] Among them, AccumulatedFrames means that the acquisition result contains the updated frame number. If the acquisition is continuous, the frame number must be 1 in theory. Figure 1 shown.

[0072] We generated data through the above process in several typical graphics card scenarios. The test content is as follows:

[0073] The resolution was changed to 1080p, 60fps; testufo was run using the Chrome browser to simulate full frame refresh.

[0074] Figure 2 The performance result of the physical machine AMD RX 5700 graphics card is 200. Figure 2 As shown in the figure, within the refresh time of about half a second (29 frames), the graphics card completes the refresh of one frame of image in each refresh cycle, and the frame interval is basically close to the ideal interval. The overall performance is basically matched with the parameters of the 5700 graphics card. Among them, the horizontal axis represents the refresh frame number, and the vertical axis represents the time interval, the unit is milliseconds (ms).

[0075] Figure 3 This is the performance result of the virtual machine NVIDIA Tesla T4 (4G) 300. Figure 3 As shown, T4 can basically guarantee a frame refresh in each refresh cycle within half a second, but the frame interval is obviously uneven. This is because the T4 graphics card as a professional card is not good at rendering, and it is divided into 1 / 4 and runs on a virtual machine, which makes the performance gap with the 5700 graphics card obvious.

[0076] Figure 4 The performance result of the virtual machine with 4 cores and 2.6G and NOGPU is 400. Figure 4 As shown, in this environment the system only refreshed 27 frames, which is equivalent to 2 to 3 frames less, and it can be seen with the naked eye that the refresh interval is very uneven, which is consistent with the performance of the virtual machine NOGPU environment.

[0077] Through quantitative analysis, we can more intuitively feel the difference in graphics card performance under different environments. Table 1 shows the performance results of graphics cards under different environments.

[0078] Table 1

[0079]

[0080]

[0081]

[0082] As shown in Table 1, the mean frame intervals of 5700 and T4 are infinitely close to the ideal interval (the difference is less than 1%), which is consistent with its full frame refresh. The interval variance of T4 is about 5 times that of 5700, which is also consistent with the more uniform frame of 5700. The mean frame interval of NOGPU is far from the ideal interval (the difference ratio is: (18.963-16.6667) / 16.6667=0.122, more than 10%), and the variance is more than 2 times that of T4 graphics card, which is also consistent with its insufficient frame rate and uneven refresh performance.

[0083] To sum up, it is completely feasible and reasonable to analyze the capabilities of a graphics card through the two dimensions of system refresh frame rate and frame uniformity.

[0084] Therefore, the present disclosure provides a parameter adjustment method 500, such as Figure 5 As shown, the parameter adjustment method 500 includes the following steps:

[0085] S510, determining target acquisition encoding parameters.

[0086] Specifically, the target acquisition encoding parameters need to be determined first.

[0087] S520: Encoding is performed according to target acquisition encoding parameters.

[0088] Specifically, after the target acquisition encoding parameters are determined, encoding may be performed according to the target acquisition encoding parameters.

[0089] S530: During the encoding process, continuously obtain rendering data and input parameters.

[0090] The rendering data includes frame rate, frame interval, and standard deviation; the input parameters include acquisition frequency and encoding time.

[0091] S540: Dynamically adjust the value of the target acquisition encoding parameter during the encoding process according to the continuously acquired rendering data and input parameters.

[0092] In one possible implementation, dynamically adjusting the value of the target acquisition encoding parameter during the encoding process according to the continuously acquired rendering data and input parameters may specifically include:

[0093] During the encoding process, it is determined whether the encoding time obtained each time exceeds a first threshold, where the encoding time is an input parameter;

[0094] When the encoding time exceeds the first threshold, the value of the target acquisition encoding parameter is reduced.

[0095] Specifically, during the encoding process, the encoding time of each frame should not exceed the acquisition interval (i.e., the first threshold), otherwise the delay after each frame processing will be superimposed, affecting the user experience. Therefore, it should be determined whether the encoding time exceeds the first threshold. When the encoding time exceeds the first threshold, the values ​​of the acquisition parameters and the encoding parameters should be reduced.

[0096] Further, when the encoding time does not exceed the first threshold, dynamically adjusting the value of the target acquisition encoding parameter during the encoding process according to the continuously acquired rendering data and input parameters, further comprising:

[0097] During the encoding process, it is determined whether the acquisition frequency obtained each time is lower than the second threshold value, and the acquisition frequency is an input parameter;

[0098] When the acquisition frequency is lower than the second threshold, the value of the target acquisition encoding parameter is reduced.

[0099] Specifically, during the encoding process, the acquisition frequency (or acquisition frame rate) should be set with a corresponding lower limit (i.e., the second threshold). If the acquisition frequency is lower than the set lower limit, the user will lose a good experience and the solution will lose its meaning. Therefore, it should be determined whether the acquisition frequency is lower than the second threshold. When the acquisition frequency is lower than the second threshold, the values ​​of the acquisition parameters and the encoding parameters should be reduced.

[0100] On the one hand, the coding clarity should also have a lower limit. If it is lower than the lower limit, the solution will become meaningless.

[0101] On the other hand, the acquisition frame rate cannot be greater than the upper limit of the system refresh frame rate. For example, if the upper limit of the system refresh frame rate is 60fps, the minimum acquisition interval cannot be greater than the ideal interval, otherwise the solution will become meaningless.

[0102] Furthermore, when the acquisition frequency is not lower than the second threshold, dynamically adjusting the value of the target acquisition encoding parameter during the encoding process according to the continuously acquired rendering data and input parameters, further comprising:

[0103] During the encoding process, determining whether the rising value of the rendering data obtained each time is lower than a third threshold;

[0104] When the rising value of the rendering data is lower than the third threshold, the value of the target acquisition encoding parameter is reduced.

[0105] Specifically, during the encoding process, a corresponding threshold (i.e., the third threshold) should be set to determine whether acquisition and encoding have an impact on rendering capabilities. For example, if the mean value of the rendering frame interval increases by less than 0.2 and the standard deviation increases by less than 0.1 after reducing the acquisition frequency and encoding clarity, it is determined that acquisition and encoding have no impact on rendering. Furthermore, this solution sets a rendering data rise value and a corresponding third threshold to determine whether the rendering data rise value is lower than the third threshold. When the rendering data rise value is lower than the third threshold, the acquisition parameters and encoding parameters are reduced.

[0106] It should be understood that in the above scheme, the rendering data and input parameters are continuously acquired during the encoding process. After the rendering data and input parameters are continuously acquired, during the encoding process, the values ​​of the target acquisition encoding parameters are dynamically adjusted after each acquisition of the rendering data and input parameters. The values ​​of the target acquisition encoding parameters are repeatedly adjusted in this way according to the rendering data and input parameters acquired each time.

[0107] Based on the above solution, the capabilities of the graphics card are analyzed through the two dimensions of system refresh frame rate and frame uniformity. By continuously acquiring rendering data and input parameters, the values ​​of the target acquisition encoding parameters are adjusted repeatedly during the encoding process according to the rendering data and input parameters acquired each time, so as to maximize the acquisition encoding capability without basically affecting the encoding capability, so that the system processing capacity can be used in a balanced state, and the system graphics card resources can be used reasonably and balanced, thereby improving the user experience.

[0108] Based on the above Figure 5 The parameter adjustment method described in the corresponding embodiment is as follows: an embodiment of the device of the present disclosure, which can be used to execute the embodiment of the method of the present disclosure.

[0109] The present disclosure provides a parameter adjustment device 600, such as Figure 6 The parameter adjustment device 600 includes: a memory 601 and a processor 602 .

[0110] The memory 601 is used to store programs.

[0111] When the program is executed in the processor 602 , the processor 602 is used to execute the above parameter adjustment method.

[0112] Processor 602 is used to: determine target acquisition coding parameters; encode according to the target acquisition coding parameters; continuously obtain rendering data and input parameters during the encoding process; and dynamically adjust the value of the target acquisition coding parameters during the encoding process based on the continuously obtained rendering data and the input parameters.

[0113] Optionally, the processor 602 is specifically used to determine whether the encoding time obtained each time exceeds a first threshold during the encoding process, and the encoding time belongs to the input parameter; when the encoding time exceeds the first threshold, reduce the value of the target acquisition encoding parameter.

[0114] Optionally, when the encoding time does not exceed the first threshold, the processor 602 is specifically used to: during the encoding process, determine whether the acquisition frequency obtained each time is lower than a second threshold, and the acquisition frequency belongs to the input parameter; when the acquisition frequency is lower than the second threshold, reduce the value of the target acquisition encoding parameter.

[0115] Optionally, when the acquisition frequency is not lower than the second threshold, the processor 602 is specifically used to: during the encoding process, determine whether the rising value of the rendering data acquired each time is lower than a third threshold; when the rising value of the rendering data is lower than the third threshold, reduce the value of the target acquisition encoding parameter.

[0116] Optionally, the rendering data includes frame rate, frame interval, and standard deviation.

[0117] The parameter adjustment device provided in the embodiment of the present disclosure analyzes the capabilities of the graphics card through two dimensions: system refresh frame rate and frame uniformity. It continuously obtains rendering data and input parameters, and repeatedly adjusts the values ​​of target acquisition encoding parameters during the encoding process according to the rendering data and input parameters obtained each time, so as to maximize the acquisition encoding capability without substantially affecting the encoding capability, thereby achieving a balanced utilization of the system processing capability and allowing the system graphics card resources to be reasonably and balancedly utilized, thereby improving the user experience.

[0118] Based on the above Figure 5 The parameter adjustment method described in the corresponding embodiment is as follows: an embodiment of the device of the present disclosure, which can be used to execute the embodiment of the method of the present disclosure.

[0119] Based on the above Figure 5 Corresponding to the parameter adjustment method described in the embodiment, the embodiment of the present disclosure also provides a parameter adjustment device 700, such as Figure 7 shown.

[0120] The parameter adjustment device 700 comprises:

[0121] A determination module 710 is used to determine target acquisition encoding parameters;

[0122] The encoding module 720 is used to perform encoding according to the target acquisition encoding parameters;

[0123] An acquisition module 730, used for continuously acquiring rendering data and input parameters during the encoding process;

[0124] The adjustment module 740 is used to dynamically adjust the value of the target acquisition encoding parameter during the encoding process according to the continuously acquired rendering data and the input parameter.

[0125] Alternatively, if Figure 8 As shown, the adjustment module 740 specifically includes:

[0126] A first judgment submodule 7410, during the encoding process, judges whether the encoding time obtained each time exceeds a first threshold, the encoding time being one of the input parameters;

[0127] The first reducing submodule 7420 is configured to reduce the value of the target acquisition encoding parameter when the encoding time exceeds the first threshold.

[0128] Alternatively, if Fig. 9 As shown, when the encoding time does not exceed the first threshold, the adjustment module 740 further includes:

[0129] A second judgment submodule 7430 is used to judge whether the acquisition frequency obtained each time is lower than a second threshold value during the encoding process, and the acquisition frequency belongs to the input parameter;

[0130] The second reducing submodule 7440 is configured to reduce the value of the target acquisition coding parameter when the acquisition frequency is lower than the second threshold.

[0131] Alternatively, if Fig.10 As shown, when the acquisition frequency is not lower than the second threshold, the adjustment module 740 further includes:

[0132] The third judgment submodule 7450 is used to judge whether the rising value of the rendering data obtained each time is lower than a third threshold value during the encoding process;

[0133] The third reducing submodule 7460 is configured to reduce the value of the target acquisition encoding parameter when the rising value of the rendering data is lower than the third threshold.

[0134] Optionally, the rendering data includes frame rate, frame interval, and standard deviation.

[0135] Based on the above Figure 5In accordance with the parameter adjustment method described in the embodiment, the embodiment of the present disclosure further provides a computer-readable storage medium. For example, the non-temporary computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, or an optical data storage device. The storage medium stores computer instructions for executing the above Figure 5 The parameter adjustment method described in the corresponding embodiment will not be repeated here.

[0136] Based on the above Figure 5 Corresponding to the parameter adjustment method described in the embodiment, the embodiment of the present disclosure also provides a chip system, the chip system includes at least one processor, when the program instruction is executed in the at least one processor, the at least one processor performs the above Figure 5 The parameter adjustment method described in the corresponding embodiment will not be repeated here.

[0137] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0138] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A parameter adjustment method, characterized in that: The method comprises: Determine target acquisition encoding parameters; Encoding according to the target acquisition encoding parameters; During the encoding process, continuously acquiring rendering data and input parameters; According to the continuously acquired rendering data and the input parameters, the value of the target acquisition encoding parameter is dynamically adjusted during the encoding process.

2. The method according to claim 1, characterized in that The dynamically adjusting the value of the target acquisition encoding parameter during the encoding process according to the continuously acquired rendering data and the input parameter includes: During the encoding process, determining whether the encoding time obtained each time exceeds a first threshold, the encoding time being one of the input parameters; When the encoding time exceeds the first threshold, the value of the target acquisition encoding parameter is reduced.

3. The method according to claim 2, characterized in that When the encoding time does not exceed the first threshold, dynamically adjusting the value of the target acquisition encoding parameter during the encoding process according to the continuously acquired rendering data and the input parameter, further comprising: During the encoding process, determining whether the acquisition frequency obtained each time is lower than a second threshold, the acquisition frequency being one of the input parameters; When the acquisition frequency is lower than the second threshold, the value of the target acquisition encoding parameter is reduced.

4. The method according to claim 3, characterized in that When the acquisition frequency is not lower than the second threshold, dynamically adjusting the value of the target acquisition encoding parameter during the encoding process according to the continuously acquired rendering data and the input parameter, further comprising: During the encoding process, determining whether the rising value of the rendering data obtained each time is lower than a third threshold; When the rising value of the rendering data is lower than the third threshold, the value of the target acquisition encoding parameter is reduced.

5. The method according to any one of claims 1 to 4, characterized in that The rendering data includes frame rate, frame interval, and standard deviation.

6. A parameter adjustment device, characterized in that: including memory and processor; The memory is used to store programs; When the program is executed in the processor, the processor is configured to: Determine target acquisition encoding parameters; Encoding according to the target acquisition encoding parameters; During the encoding process, continuously acquiring rendering data and input parameters; According to the continuously acquired rendering data and the input parameters, the value of the target acquisition encoding parameter is dynamically adjusted during the encoding process.

7. The device according to claim 6, characterized in that The processor is specifically used for: During the encoding process, determining whether the encoding time obtained each time exceeds a first threshold, the encoding time being one of the input parameters; When the encoding time exceeds the first threshold, the value of the target acquisition encoding parameter is reduced.

8. The device according to claim 7, characterized in that When the encoding time does not exceed the first threshold, the processor is specifically configured to: During the encoding process, determining whether the acquisition frequency obtained each time is lower than a second threshold, the acquisition frequency being one of the input parameters; When the acquisition frequency is lower than the second threshold, the value of the target acquisition encoding parameter is reduced.

9. The device according to claim 8, characterized in that When the acquisition frequency is not lower than the second threshold, the processor is specifically configured to: During the encoding process, determining whether the rising value of the rendering data obtained each time is lower than a third threshold; When the rising value of the rendering data is lower than the third threshold, the value of the target acquisition encoding parameter is reduced.

10. A computer-readable storage medium, characterized in that: The computer program storage medium has program instructions, and when the program instructions are executed by a processor, the processor is caused to execute the method according to any one of claims 1 to 5.