Hard decoding strategy generation method, device, electronic device and storage medium

By obtaining and analyzing the hard decoding performance data of the target device, a suitable hard decoding strategy is generated, which solves the problems of high maintenance cost and delay of the hard decoding strategy in the existing technology, and improves the multimedia data decoding efficiency and playback quality of the electronic device.

CN116095401BActive Publication Date: 2024-09-20BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310102897.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-28
Publication Date
2024-09-20
Estimated Expiration
2043-01-28

AI Technical Summary

Technical Problem

The maintenance cost of the hard decoding strategy in the existing technology is high and there is delay, which results in low decoding efficiency when the electronic device plays multimedia data and cannot provide an adapted hard decoding strategy in a timely manner.

Method used

By obtaining the hard decoding performance data corresponding to the decoding type supported by the target device, the target resolution and maximum number of decoding paths are determined based on the hard decoding performance parameter threshold, a suitable hard decoding strategy is generated, and a decoding solution is intelligently provided for the target device.

Benefits of technology

It effectively reduces the cost and delay of hard decoding strategy generation, improves the multimedia data decoding efficiency and playback quality of the target device, and ensures that the device can obtain the appropriate decoding strategy in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116095401B
    Figure CN116095401B
Patent Text Reader

Abstract

The present disclosure provides a method, device, electronic device and storage medium for generating a hard decoding strategy, and relates to the field of computer technology. The method includes: according to a request for generating a hard decoding strategy, obtaining hard decoding performance data corresponding to a decoding type supported by a target device; determining target resolution data corresponding to a decoding type supported by the target device according to the hard decoding performance data and a hard decoding performance parameter threshold; determining the target maximum number of decoding paths corresponding to the target resolution data from the hard decoding performance data; generating a hard decoding strategy corresponding to a decoding type supported by the target device according to the target resolution data and the target maximum number of decoding paths. The method can generate a hard decoding strategy corresponding to a decoding type supported by the target device according to the hard decoding performance parameter threshold and the hard decoding performance data corresponding to the decoding type supported by the target device, which solves the problems of high consumption cost and delay existing in related technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to a hard decoding strategy generation method, device, electronic device and storage medium. Background Art

[0002] When playing multimedia data such as audio and video, electronic devices decode the multimedia data before playing. At present, decoding methods include soft decoding and hard decoding. Hard decoding can use a special module of GPU (Graphic Process Unit) for decoding, which can reduce CPU operations and has the characteristics of high decoding efficiency, low power consumption and low heat generation. Since the hard decoding capabilities of different electronic devices are different, issuing corresponding hard decoding strategies to them according to their hard decoding capabilities can improve the playback quality.

[0003] In the related technology, the QoS (Quality of Service) and QoE (Quality of Experience) performance of the electronic device's hard decoding can be used to determine the incompatible electronic devices corresponding to each hard decoding strategy through offline data statistics, and a blacklist of each hard decoding strategy can be generated. However, the maintenance of the blacklist requires regular analysis of offline data, which consumes a high cost; usually, the blacklist is added after the performance has been damaged, which has a serious delay.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The present disclosure provides a hard decoding strategy generation method, device, electronic device and computer-readable storage medium to at least solve the problems of high consumption cost and delay existing in the related technology.

[0006] According to one aspect of an embodiment of the present disclosure, a hard decoding strategy generation method is provided, comprising: obtaining hard decoding performance data corresponding to a decoding type supported by a target device according to a request for generating a hard decoding strategy; determining target resolution data corresponding to the decoding type supported by the target device according to the hard decoding performance data and a hard decoding performance parameter threshold; determining a target maximum number of decoding paths corresponding to the target resolution data from the hard decoding performance data; and generating a hard decoding strategy corresponding to the decoding type supported by the target device according to the target resolution data and the target maximum number of decoding paths.

[0007] In some embodiments of the present disclosure, the hard decoding performance parameter threshold parameters include a first parameter threshold, a second parameter threshold, a third parameter threshold, a fourth parameter threshold and a fifth parameter threshold; wherein the first parameter threshold is a decoding success rate threshold corresponding to the decoder, the second parameter threshold is a resolution threshold, the third parameter threshold is a first frame decoding time threshold, the fourth parameter threshold is a decoding success rate threshold corresponding to the decoding path, and the fifth parameter threshold is a number threshold of decoding paths.

[0008] In some embodiments of the present disclosure, the hard decoding performance data includes a decoding success rate at each resolution, a first frame decoding time at each resolution, and a decoding success rate corresponding to each decoding path at each resolution; wherein, determining the target resolution data corresponding to the decoding type supported by the target device according to the hard decoding performance data and the hard decoding performance parameter threshold comprises: querying in the decoding success rate at each resolution based on the first parameter threshold and the second parameter threshold, and determining the first resolution data corresponding to the decoding type supported by the target device according to the query result; querying in the first frame decoding time at each resolution based on the second parameter threshold and the third parameter threshold, and determining the second resolution data corresponding to the decoding type supported by the target device according to the query result; determining the maximum decoding path at each resolution according to the decoding success rate corresponding to each decoding path at each resolution, and then querying in the decoding success rate corresponding to the maximum decoding path at each resolution based on the second parameter threshold and the fifth parameter threshold, and determining the third resolution data corresponding to the decoding type supported by the target device according to the query result; selecting the minimum resolution data as the target resolution data from the first resolution data, the second resolution data, and the third resolution data.

[0009] In some embodiments of the present disclosure, the decoding success rates at each resolution are queried based on the first parameter threshold and the second parameter threshold, and the first resolution data corresponding to the decoding type supported by the target device is determined according to the query result, including: if there is first performance data in the decoding success rates at each resolution, whose decoding success rate is not less than the first parameter threshold and whose resolution is not greater than the second parameter threshold, then the resolution corresponding to the first performance data is determined to be the first resolution data; if the first performance data does not exist in the decoding success rates at each resolution, then the first resolution data is determined to be a preset value.

[0010] In some embodiments of the present disclosure, based on the second parameter threshold and the third parameter threshold, a query is performed in the decoding first frame time at each resolution, and the second resolution data corresponding to the decoding type supported by the target device is determined according to the query result, including: if there is second performance data in the decoding first frame time at each resolution, and the decoding first frame time is not greater than the third parameter threshold and the resolution is not greater than the second parameter threshold, then the resolution corresponding to the second performance data is determined to be the second resolution data; if the second performance data does not exist in the decoding first frame time at each resolution, then the second resolution data is set to a preset value.

[0011] In some embodiments of the present disclosure, the maximum decoding path at each resolution is determined based on the decoding success rate corresponding to each decoding path at each resolution, including: for each resolution, traversing the decoding success rates corresponding to each decoding path at the resolution in order from large to small; when traversing the decoding success rates corresponding to the current decoding path, if the decoding success rate corresponding to the current decoding path is not less than the fourth parameter threshold, determining that the current decoding path is the maximum decoding path at the resolution.

[0012] In some embodiments of the present disclosure, based on the second parameter threshold and the fifth parameter threshold, a query is performed in the decoding success rate corresponding to the maximum number of decoding paths at each resolution, and the third resolution data corresponding to the decoding type supported by the target device is determined according to the query result, including: if there is third performance data in the decoding success rate corresponding to the maximum number of decoding paths at each resolution, in which the maximum number of decoding paths is not less than the fifth parameter threshold and the resolution is not greater than the second parameter threshold, then the resolution corresponding to the third performance data is determined to be the third resolution data; if the third performance data does not exist in the decoding success rate corresponding to the maximum number of decoding paths at each resolution, then the third resolution data is set to a preset value.

[0013] In some embodiments of the present disclosure, after determining the maximum number of decoding paths at each resolution, the method further includes: if the maximum number of decoding paths at each resolution is less than the fifth parameter threshold, then using the maximum number of decoding paths at each resolution to update the fifth parameter threshold.

[0014] In some embodiments of the present disclosure, the first resolution data is one or more, the second resolution data is one or more, and the third resolution data is one or more; wherein, selecting the minimum resolution data as the target resolution data from the first resolution data, the second resolution data and the third resolution data includes: if the first resolution data, the second resolution data and the third resolution data are all non-preset values, selecting the resolution that exists in the first resolution data, the second resolution data and the third resolution data; and determining that the minimum value of the selected resolutions is the target resolution data.

[0015] In some embodiments of the present disclosure, the method further includes: if the resolution corresponding to the data to be decoded is smaller than the target resolution data, sending the hard decoding strategy to the target device so that the target device decodes the data to be decoded according to the hard decoding strategy.

[0016] According to another aspect of an embodiment of the present disclosure, a hard decoding strategy generation device is provided, including: a data acquisition module, used to obtain hard decoding performance data corresponding to a decoding type supported by a target device according to a request for generating a hard decoding strategy; a resolution determination module, used to determine target resolution data corresponding to a decoding type supported by the target device according to the hard decoding performance data and a hard decoding performance parameter threshold; a decoding path determination module, used to determine a target maximum decoding path corresponding to the target resolution data from the hard decoding performance data; and a strategy generation module, used to generate a hard decoding strategy corresponding to a decoding type supported by the target device according to the target resolution data and the target maximum decoding path.

[0017] In some embodiments of the present disclosure, the hard decoding performance parameter threshold includes a first parameter threshold, a second parameter threshold, a third parameter threshold, a fourth parameter threshold and a fifth parameter threshold; wherein the first parameter threshold is a decoding success rate threshold corresponding to the decoder, the second parameter threshold is a resolution threshold, the third parameter threshold is a first frame decoding time threshold, the fourth parameter threshold is a decoding success rate threshold corresponding to the decoding path, and the fifth parameter threshold is a number threshold of decoding paths.

[0018] In some embodiments of the present disclosure, the hard decoding performance data includes a decoding success rate at each resolution, a first frame decoding time at each resolution, and a decoding success rate corresponding to each decoding path at each resolution; wherein the resolution determination module is further used to: query the decoding success rate at each resolution based on the first parameter threshold and the second parameter threshold, and determine the first resolution data corresponding to the decoding type supported by the target device according to the query result; query the first frame decoding time at each resolution based on the second parameter threshold and the third parameter threshold, and determine the second resolution data corresponding to the decoding type supported by the target device according to the query result; determine the maximum decoding path at each resolution according to the decoding success rate corresponding to each decoding path at each resolution, and then query the decoding success rate corresponding to the maximum decoding path at each resolution based on the second parameter threshold and the fifth parameter threshold, and determine the third resolution data corresponding to the decoding type supported by the target device according to the query result; select the minimum resolution data as the target resolution data from the first resolution data, the second resolution data, and the third resolution data.

[0019] In some embodiments of the present disclosure, the resolution determination module is also used for: if there is first performance data in the decoding success rates at each resolution, in which the decoding success rate is not less than the first parameter threshold and the resolution is not greater than the second parameter threshold, then determining that the resolution corresponding to the first performance data is the first resolution data; if the first performance data does not exist in the decoding success rates at each resolution, then determining that the first resolution data is a preset value.

[0020] In some embodiments of the present disclosure, the resolution determination module is also used for: if there is second performance data in the decoding first frame time at each resolution, and the decoding first frame time is not greater than the third parameter threshold and the resolution is not greater than the second parameter threshold, then determine that the resolution corresponding to the second performance data is the second resolution data; if the second performance data does not exist in the decoding first frame time at each resolution, then set the second resolution data to a preset value.

[0021] In some embodiments of the present disclosure, the resolution determination module is also used to: for each resolution, traverse the decoding success rates corresponding to each decoding path under the resolution in order from large to small; when traversing the decoding success rates corresponding to the current decoding path, if the decoding success rate corresponding to the current decoding path is not less than the fourth parameter threshold, determine that the current decoding path is the maximum decoding path under the resolution.

[0022] In some embodiments of the present disclosure, the resolution determination module is also used for: if there is third performance data in the decoding success rate corresponding to the maximum decoding path under each resolution, in which the maximum decoding path is not less than the fifth parameter threshold and the resolution is not greater than the second parameter threshold, then determining the resolution corresponding to the third performance data as the third resolution data; if the third performance data does not exist in the decoding success rate corresponding to the maximum decoding path under each resolution, then setting the third resolution data to a preset value.

[0023] In some embodiments of the present disclosure, the resolution determination module is further used to: if the maximum number of decoding paths at each resolution is less than the fifth parameter threshold, update the fifth parameter threshold using the maximum number of decoding paths at each resolution.

[0024] In some embodiments of the present disclosure, the first resolution data is one or more, the second resolution data is one or more, and the third resolution data is one or more; wherein the resolution determination module is also used for: if the first resolution data, the second resolution data and the third resolution data are all non-preset values, selecting a resolution that exists in the first resolution data, the second resolution data and the third resolution data; and determining the minimum value of the selected resolutions as the target resolution data.

[0025] In some embodiments of the present disclosure, the device also includes a policy sending module, which is used to: if the resolution corresponding to the data to be decoded is smaller than the target resolution data, send the hard decoding strategy to the target device, so that the target device decodes the data to be decoded according to the hard decoding strategy.

[0026] According to another aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the above-mentioned hard decoding strategy generation method.

[0027] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above-mentioned hard decoding strategy generation method.

[0028] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: after obtaining the hard decoding performance data corresponding to the decoding type supported by the target device, the hard decoding performance data can be analyzed based on the hard decoding performance parameter threshold to obtain the target resolution data corresponding to the decoding type supported by the target device, and then the target maximum decoding path is determined, and then the hard decoding strategy corresponding to the decoding type supported by the target device is generated according to the target resolution data and the target maximum hard decoding path. In this way, the hard decoding strategy corresponding to the decoding type supported by the target device can be intelligently generated through the hard decoding performance parameter threshold and the hard decoding performance data corresponding to the decoding type supported by the target device, which solves the problems of high consumption cost and delay existing in the related technology, and achieves the effect of allocating a suitable hard decoding strategy to the target device, so that the target device can better decode multimedia data and improve the playback quality of the target device.

[0029] 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

[0030] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0031] Figure 1 is a schematic diagram of a system architecture of a method for generating a hard decoding strategy according to an exemplary embodiment;

[0032] Figure 2 is a flowchart of a method for generating a hard decoding strategy according to an exemplary embodiment;

[0033] Figure 3 is a flow chart showing a method for determining target resolution data according to an exemplary embodiment;

[0034] Figure 4 is a flowchart of a method for generating a hard decoding strategy according to another exemplary embodiment;

[0035] Figure 5 is a block diagram of a hard decoding strategy generation device according to an exemplary embodiment;

[0036] Figure 6 It is a structural diagram of an electronic device suitable for implementing the embodiments of the present disclosure according to an exemplary embodiment. DETAILED DESCRIPTION

[0037] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.

[0038] The features, structures or characteristics described in the present disclosure may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring the various aspects of the present disclosure.

[0039] The accompanying drawings are only schematic diagrams of the present disclosure, and the same reference numerals in the drawings represent the same or similar parts, so their repeated description will be omitted. Some block diagrams shown in the accompanying drawings do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in at least one hardware module or integrated circuit, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0040] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and steps, nor must they be executed in the order described. For example, some steps can be decomposed, and some steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0041] In this specification, the terms "a", "an", "the", "said" and "at least one" are used to indicate the presence of at least one element / component / etc.; the terms "comprising", "including" and "having" are used to express an open-ended inclusion and mean that additional elements / components / etc. may exist in addition to the listed elements / components / etc.; the terms "first", "second" and "third" etc. are used only as labels and are not intended to limit the quantity of their objects.

[0042] Figure 1 FIG. 1 is a schematic diagram of a system architecture of a method for generating a hard decoding strategy according to an exemplary embodiment. Figure 1As shown, the system architecture may include a server 101, a network 102, and a client 103. The network 102 is used to provide a medium for a communication link between the client 103 and the server 101. The network 102 may include various connection types, such as wired, wireless communication links, or optical fiber cables.

[0043] In an exemplary embodiment, the client 103 for data transmission with the server 101 may include but is not limited to terminal devices of the type of smart phones, tablet computers, laptop computers, smart speakers, digital assistants, AR (Augmented Reality) devices, VR (Virtual Reality) devices, smart wearable devices, etc., or the client 103 may also be a personal computer, such as a laptop computer and a desktop computer, etc. Optionally, the operating system running on the electronic device may include but is not limited to Android system, IOS system, Linux, Windows, etc.

[0044] Server 101 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. In some practical applications, server 101 can also be a server of a network platform, which can be, for example, a trading platform, a live broadcast platform, a social platform, or a music platform, etc., which is not limited in the embodiments of the present disclosure. Among them, the server can be a single server or a cluster formed by multiple servers, and the present disclosure does not limit the specific architecture of the server.

[0045] In the disclosed embodiment, the client 103 may be a terminal device installed with various applications, such as a terminal device installed with a multimedia application, and a user may play audio and video on demand or shop through the multimedia application provided by the client 103 .

[0046] In an exemplary embodiment, the process for server 101 to generate a hard decoding strategy may be: server 101 obtains hard decoding performance data corresponding to a decoding type supported by a target device; server 101 determines, based on pre-configured parameters, target resolution data corresponding to a decoding type supported by the target device according to the hard decoding performance data and a hard decoding performance parameter threshold; server 101 determines, from the hard decoding performance data, a target maximum number of decoding paths corresponding to the target resolution data; server 101 generates a hard decoding strategy corresponding to a decoding type supported by the target device according to the target resolution data and the target maximum number of decoding paths.

[0047] In addition, it should be noted that Figure 1 What is shown is only one application environment of the hard decoding strategy generation method provided by the present disclosure. Figure 1 The numbers of the clients 103, networks 102 and servers 101 are merely illustrative, and any number of clients, networks and servers may be provided according to actual needs.

[0048] In order to enable ordinary persons skilled in the art to better understand the technical solution of the present disclosure, each step of the hard decoding strategy generation method in the exemplary embodiment of the present disclosure will be described in more detail below with reference to the accompanying drawings and embodiments.

[0049] Figure 2 is a flowchart of a method for generating a hard decoding strategy according to an exemplary embodiment. Figure 2 The execution subject of the method provided in the embodiment may be any electronic device, such as Figure 1 The server 101 in the embodiment, but the present disclosure is not limited thereto. Figure 2 As shown, the hard decoding strategy generation method may include the following steps.

[0050] Step S201: acquiring hard decoding performance data corresponding to a decoding type supported by a target device according to a request for generating a hard decoding strategy.

[0051] The target device refers to an electronic device that needs to decode multimedia data such as audio and video. For the sake of convenience, the multimedia data is video data as an example for explanation below. In an embodiment, the decoding type supported by the target device refers to the hard decoding type supported by the target device, which may include H.264 hard decoding and H.265 hard decoding. Among them, H.264 and H.265 are both video compression standards, H.264 is also called AVC (Advanced Video Codec), and H.265 is also called HEVC (High Efficiency Video Coding).

[0052] In an embodiment, the hard decoding performance data may include: decoding success rate at each resolution, first frame decoding time at each resolution, and decoding success rate corresponding to each decoding path at each resolution. The performance data at each resolution may be understood as the performance data at the maximum edge of the resolution, which refers to the larger edge of the length and width of the resolution.

[0053] The decoding success rate at each resolution refers to the decoding success rate of the decoding type supported by the target device at each resolution. For example, avc_mcs_supportrate_960 refers to the decoding success rate when the maximum resolution is 960 when the decoding type supported by the target device is AVC (i.e. H.264 hard decoding). Generally, when the maximum resolution is 960, the resolution size is 960*540. The maximum resolution refers to the larger side of the length and width of the resolution.

[0054] The first frame decoding time at each resolution refers to the first frame decoding time at each resolution ratio of the decoding type supported by the target device, where the first frame decoding time can be understood as the time spent decoding the first frame of the video data. For example, avc_mcs_firstframecost_1280 refers to the first frame decoding time when the maximum resolution is 1280 when the decoding type supported by the target device is AVC (i.e. H.264 hard decoding). Generally, when the maximum resolution is 1280, the resolution size is 1280*720.

[0055] The decoding success rate corresponding to each decoding path at each resolution refers to the decoding success rate corresponding to each decoding path created at each resolution for the decoding type supported by the target device. For each resolution, different decoding paths can be created, and the corresponding decoding success rates can be different for different created decoding paths. For example, the data avc_mcs_maxdecodernum_1280_3 refers to the decoding success rate of creating 3-path decoding when the maximum resolution is 1280 and the decoding type supported by the target device is AVC (i.e. H.264 hard decoding).

[0056] Table 1 is a table of hard decoding performance data corresponding to the decoding types supported by the target device. As can be seen from Table 1, the device model of the target device is AGM (AGM X3). Considering that the devices with the same device model have the same supported decoding types and the hard decoding performance data corresponding to the decoding types, the devices with the same device model have the same corresponding hard decoding strategies. In an embodiment, the hardware performance data corresponding to the decoding types supported by the device can be obtained according to the device model, and the hard decoding strategy corresponding to the device model can be generated.

[0057] In Table 1, the decoding types supported by the target device include AVC (i.e., H.264 hard decoding) and HEVC (i.e., H.265 hard decoding). For the decoding type AVC (i.e., H.264 hard decoding), the hard decoding performance data includes: the decoding success rate, the time consumed for decoding the first frame, and the decoding success rate of creating 1-way, 2-way, and 3-way decoding when the maximum resolution edge is 960; the decoding success rate, the time consumed for decoding the first frame, and the decoding success rate of creating 1-way, 2-way, and 3-way decoding when the maximum resolution edge is 1280; the decoding success rate, the time consumed for decoding the first frame, and the decoding success rate of creating 1-way, 2-way, and 3-way decoding when the maximum resolution edge is 1920. For the decoding type HEVC (i.e., H.265 hard decoding), the hard decoding performance data includes: the decoding success rate, the time consumed for decoding the first frame, and the decoding success rate for creating 1-channel, 2-channel, and 3-channel decoding when the maximum resolution edge is 960; the decoding success rate, the time consumed for decoding the first frame, and the decoding success rate for creating 1-channel, 2-channel, and 3-channel decoding when the maximum resolution edge is 1280; the decoding success rate, the time consumed for decoding the first frame, and the decoding success rate for creating 1-channel, 2-channel, and 3-channel decoding when the maximum resolution edge is 1920.

[0058] Table 1 is a table of hard decoding performance data corresponding to the decoding types supported by the target device

[0059]

[0060]

[0061] In an embodiment, the hard decoding performance data corresponding to the decoding type supported by the target device can be stored in a database, such as redis. In this way, after receiving a request to generate a hard decoding strategy, the hard decoding performance data corresponding to the decoding type supported by the target device can be obtained from the database, and then a hard decoding strategy can be generated based on the obtained hard decoding performance data.

[0062] Step S202: determining target resolution data corresponding to a decoding type supported by the target device according to the hard decoding performance data and the hard decoding performance parameter threshold.

[0063] The hard decoding performance parameter threshold may include a first parameter threshold, a second parameter threshold, a third parameter threshold, a fourth parameter threshold and a fifth parameter threshold. It should be noted that the specific value of each parameter threshold can be configured based on experience and can be changed based on actual needs.

[0064] The first parameter threshold is a decoding success rate threshold corresponding to the decoder, or the first parameter threshold is an established threshold of the maximum resolution edge of the video data supported by the decoder, that is, a decoding success rate threshold that the decoder needs to reach to decode the video data.

[0065] The second parameter threshold is a resolution threshold, which can be specifically an upper threshold of the maximum resolution edge of the video data supported for decoding. For example, if the second parameter threshold is 1920, if the maximum resolution edge of a certain video data is not greater than 1920, decoding of the video data is supported, otherwise decoding of the video data is not supported.

[0066] The third parameter threshold is the first frame decoding time threshold, that is, the first frame decoding time threshold for supporting hard decoding. For example, if the third parameter threshold is 0.09, if the first frame decoding time of hard decoding supported by a target device is 0.089, it means that the target device does not meet the first frame decoding time condition.

[0067] The fourth parameter threshold is a decoding success rate threshold corresponding to the number of decoding paths, or the fourth parameter threshold is a threshold for establishing the success rate of the maximum number of decoding paths that support hard decoding, that is, to create a decoding success rate threshold for the maximum number of decoding paths. The maximum number of decoding paths refers to the number of decoding paths supported by hard decoding, for example, if the maximum number of decoding paths is 3, it means that a maximum of 3 decoding paths can be created. In an embodiment, when different numbers of decoding paths are created, the corresponding decoding success rate thresholds may be the same, such as the decoding success rate threshold for creating 1-path decoding, the decoding success rate threshold for creating 2-path decoding, and the decoding success rate threshold for creating 3-path decoding are all the same.

[0068] The fifth parameter threshold is the number threshold of the decoding paths, that is, the lower limit constraint threshold of the decoding paths. For example, if the fifth parameter threshold is 2, if the maximum number of decoding paths supported by a target device is 1, it means that the target device does not reach the lower limit constraint threshold of the decoding paths.

[0069] In this step, the hard decoding performance data corresponding to the decoding type supported by the target device is analyzed using the pre-configured hard decoding performance parameter threshold to obtain the target resolution data corresponding to the decoding type supported by the target device, that is, to obtain the maximum edge of the target resolution.

[0070] Step S203: determining the target maximum number of decoding paths corresponding to the target resolution data from the hard decoding performance data.

[0071] In this step, the maximum number of decoding paths that can be created under the target resolution data is queried from the hard decoding performance data as the target maximum number of decoding paths.

[0072] Step S204: Generate a hard decoding strategy corresponding to the decoding type supported by the target device according to the target resolution data and the target maximum number of decoding paths.

[0073] In this step, after determining the maximum edge of the target resolution and the target maximum number of decoding paths, a hard decoding strategy corresponding to the decoding type supported by the target device may be generated.

[0074] It should be noted that the decoding types supported by the target device may include one or more. For each decoding type supported by the target device, the hard decoding performance data corresponding to the decoding type can be obtained, and then based on the pre-set hard decoding performance parameter threshold, the hard decoding performance data corresponding to the decoding type is analyzed to obtain the target resolution data corresponding to the decoding type, and then the target maximum decoding path corresponding to the decoding type is determined, and finally the hard decoding strategy corresponding to the decoding type is generated. Taking the hard decoding performance data corresponding to the decoding types supported by the target device in Table 1 as an example, the decoding types AVC (i.e., H.264 hard decoding) and HEVC (i.e., H.265 hard decoding) are analyzed respectively, and the hard decoding strategy corresponding to the decoding type AVC (i.e., H.264 hard decoding) and the hard decoding strategy corresponding to the decoding type HEVC (i.e., H.265 hard decoding) are generated.

[0075] In an exemplary embodiment, the hard decoding strategy generation method may further include: if the resolution corresponding to the data to be decoded is smaller than the target resolution data, sending the hard decoding strategy to the target device so that the target device decodes the data to be decoded according to the hard decoding strategy.

[0076] The data to be decoded refers to multimedia data such as audio and video that needs to be decoded by the target device. If the maximum resolution edge of the data to be decoded is smaller than the maximum resolution edge of the target, the generated hard decoding strategy can be sent to the target device, and then the target device decodes the data to be decoded according to the hard decoding strategy and then plays it.

[0077] It should be noted that if the target device supports multiple hard decoding strategies corresponding to the decoding types, the priority of each hard decoding strategy can be set, such as setting the priority of each hard decoding strategy according to the decoding type, or setting the priority of each hard decoding strategy according to the resolution, or setting the priority of each hard decoding strategy according to the decoding success rate of the hard decoding strategy. In this way, when sending the hard decoding strategy, it can be sent according to the priority of each hard decoding strategy, so that the best hard decoding strategy can be sent to the target device, improving the decoding efficiency and the playback quality of the target device.

[0078] In an exemplary embodiment, when issuing a hard decoding strategy, the strategy can also be issued in combination with the real-time status of the target device, such as the power, temperature, memory, CPU usage, etc. of the target device. In this way, the strategy can be issued according to the real-time status of the target device, so that the target device can reduce CPU calculations and improve decoding efficiency when decoding using the hard decoding strategy, and has the characteristics of low power consumption and less heat generation.

[0079] Through the hard decoding strategy method provided by the embodiment of the present disclosure, after obtaining the hard decoding performance data corresponding to the decoding type supported by the target device, the hard decoding performance data can be analyzed based on the hard decoding performance parameter threshold to obtain the target resolution data corresponding to the decoding type supported by the target device, and then the target maximum decoding path is determined, and then the hard decoding strategy corresponding to the decoding type supported by the target device is generated according to the target resolution data and the target maximum hard decoding path. In this way, the hard decoding strategy corresponding to the decoding type supported by the target device can be intelligently generated according to the hard decoding performance parameter threshold and the decoding type supported by the target device, which solves the problems of high consumption cost and delay in related technologies, and achieves the effect of allocating a suitable hard decoding strategy to the target device, so that the target device can better decode multimedia data and improve the playback quality of the target device.

[0080] In an exemplary embodiment, if Figure 3 As shown, in step S202, determining the target resolution data corresponding to the decoding type supported by the target device according to the hard decoding performance data and the hard decoding performance parameter threshold can be specifically implemented by the following steps:

[0081] Step S2021: Based on the first parameter threshold and the second parameter threshold, query the decoding success rates at each resolution, and determine the first resolution data corresponding to the decoding type supported by the target device according to the query result.

[0082] Further, the specific implementation of determining the first resolution data can be: if there is first performance data in the decoding success rate at each resolution, the decoding success rate is not less than the first parameter threshold and the resolution is not greater than the second parameter threshold, then the resolution corresponding to the first performance data is determined to be the first resolution data; if there is no first performance data in the decoding success rate at each resolution, then the first resolution data is determined to be a preset value. As described above, the first parameter threshold is the decoding success rate threshold corresponding to the decoder, and the second parameter threshold is the resolution threshold.

[0083] The first resolution data may specifically be the maximum edge of the first resolution. A query is performed in the decoding success rate at each resolution to determine whether there is data whose decoding success rate is not less than the decoding success rate threshold corresponding to the decoder and whose maximum edge of the resolution is not greater than the resolution threshold. If so, the maximum edge of the resolution corresponding to the data is determined to be the maximum edge of the first resolution. If not, the maximum edge of the first resolution is set to a preset value, and specifically, the maximum edge of the first resolution may be set to -1.

[0084] For example, the first parameter threshold is 0.95, and the second parameter threshold is 1920. Taking the hard decoding performance data in Table 1 as an example, for the decoding type AVC (ie, H.264 hard decoding) supported by the target device, the data of avc_mcs_supportrate_960, avc_mcs_supportrate_1280, and avc_mcs_supportrate_1920 are 1, which is greater than 0.95, and the maximum resolution edges are not greater than 1920. Therefore, the first resolution maximum edge corresponding to the decoding type AVC includes 960, 1280 and 1920. For the decoding type HEVC (ie, H.265 hard decoding) supported by the target device, the data of hevc_mcs_supportrate_960, hevc_mcs_supportrate_1280, and hevc_mcs_supportrate_1920 are all 1, greater than 0.95, and the maximum resolution edge is no greater than 1920, so the first resolution maximum edge corresponding to the decoding type HEVC includes 960, 1280, and 1920.

[0085] Step S2022: Based on the second parameter threshold and the third parameter threshold, query the first frame decoding time at each resolution, and determine the second resolution data corresponding to the decoding type supported by the target device according to the query result.

[0086] Furthermore, the specific implementation of determining the second resolution data can be: if there is second performance data in the first frame decoding time at each resolution, in which the first frame decoding time is not greater than the third parameter threshold and the resolution is not greater than the second parameter threshold, then the resolution corresponding to the second performance data is determined to be the second resolution data; if there is no second performance data in the first frame decoding time at each resolution, then the second resolution data is set to a preset value. As described above, the third parameter threshold is the first frame decoding time threshold, and the second parameter threshold is the resolution threshold.

[0087] The second resolution data may specifically be the second resolution maximum edge. A query is performed in the first frame decoding time consumption at each resolution corresponding to the decoding type supported by the target device to check whether there is data in which the first frame decoding time consumption is not greater than the first frame decoding time consumption threshold and the resolution maximum edge is not greater than the resolution threshold. If so, the resolution maximum edge corresponding to the data is determined to be the second resolution maximum edge. If not, the second resolution maximum edge is set to a preset value, and specifically the second resolution maximum edge may be set to -1.

[0088] Continuing with the above example, the third parameter threshold is 0.1s. Taking the hard decoding performance data in Table 1 as an example, for the decoding type AVC (i.e., H.264 hard decoding) supported by the target device, the data of avc_mcs_firstframecost_1280 is 0.088s, and the data of avc_mcs_firstframecost_1920 is 0.094s. These two data are not greater than 0.1s, and the maximum resolution edges are both not greater than 1920. Therefore, the second resolution maximum edges corresponding to the decoding type AVC include 1280 and 1920. For the decoding type HEVC supported by the target device (i.e. H.265 hard decoding), the data of hevc_mcs_firstframecost_1280 is 0.097s, and the data of hevc_mcs_firstframecost_1920 is 0.0965s. These two data are not greater than 0.1s, and the maximum resolution edges are both no greater than 1920. Therefore, the second resolution maximum edges corresponding to the decoding type HEVC include 1280 and 1920.

[0089] Step S2023, according to the decoding success rate corresponding to each decoding path at each resolution, determine the maximum number of decoding paths at each resolution, and then based on the second parameter threshold and the fifth parameter threshold, query the decoding success rate corresponding to the maximum number of decoding paths at each resolution, and determine the third resolution data corresponding to the decoding type supported by the target device according to the query result.

[0090] In this step, the maximum number of decoding paths at each resolution may be determined first, that is, the maximum value of the number of decoding paths that can be created at each resolution, and then the third resolution data may be determined according to the maximum number of decoding paths.

[0091] Furthermore, the specific implementation of determining the maximum number of decoding paths under each resolution may be: for each resolution, in the order of the number of decoding paths under the resolution from large to small, traverse the decoding success rates corresponding to each decoding path under the resolution; when traversing the decoding success rates corresponding to the current decoding path, if the decoding success rate corresponding to the current decoding path is not less than the fourth parameter threshold, determine that the current decoding path is the maximum number of decoding paths under the resolution. As described above, the fourth parameter threshold is the decoding success rate threshold corresponding to the decoding path.

[0092] For each resolution corresponding to the decoding type supported by the target device, determine all decoding paths that can be supported at the resolution. Then, traverse the decoding success rate corresponding to each decoding path from large to small. If the decoding success rate of the currently traversed decoding path is not less than the decoding success rate threshold corresponding to the decoding path, determine that the currently traversed decoding path is the maximum decoding path at the resolution, otherwise, continue to traverse the decoding success rate of the next decoding path. It should be noted that if the decoding success rates corresponding to all decoding paths at the resolution are less than the decoding success rate threshold corresponding to the decoding path, then when determining the third resolution data, the resolution may not be analyzed.

[0093] Continuing with the above example, the fourth parameter threshold is 0.99. Taking the hard decoding performance data in Table 1 as an example, for the decoding type AVC (i.e., H.264 hard decoding) supported by the target device, when the maximum resolution edge is 960, the corresponding decoding paths include 3, 2, and 1. In descending order, the data of the decoding success rate avc_mcs_maxdecodernum_960_3 corresponding to the 3-path is first traversed, which is 0.9951807228915662. This data is greater than 0.99, so it is determined that the maximum number of decoding paths corresponding to the maximum resolution edge 960 is 3; when the maximum resolution edge is 1280, the corresponding decoding paths include 3, 2, and 1. , in order from large to small, first traverse the data 0.9976851851851852 of the decoding success rate avc_mcs_maxdecodernum_1280_3 corresponding to the 3-way, which is greater than 0.99, so it is determined that the maximum number of decoding paths corresponding to the maximum resolution edge 1280 is 3; when the maximum resolution edge is 1920, the corresponding decoding paths include 3, 2 and 1. In order from large to small, first traverse the data 0.9975 of the decoding success rate avc_mcs_maxdecodernum_1920_3 corresponding to the 3-way, which is greater than 0.99, so it is determined that the maximum number of decoding paths corresponding to the maximum resolution edge 1920 is 3.

[0094] Also, for the decoding type HEVC (i.e. H.265 hard decoding) supported by the target device, when the maximum resolution edge is 960, the corresponding decoding paths include 3, 2, and 1. In order from large to small, first traverse the data 0.9967105263157895 of the decoding success rate hevc_mcs_maxdecodernum_960_3 corresponding to the 3-path, which is greater than 0.99. Therefore, it is determined that the maximum number of decoding paths corresponding to the maximum resolution edge 960 is 3; when the maximum resolution edge is 1280, the corresponding decoding paths include 3, 2, and 1. In order from large to small, In order, first traverse the data 1 of the decoding success rate hevc_mcs_maxdecodernum_1280_3 corresponding to the 3-way, the data is greater than 0.99, so it is determined that the maximum number of decoding paths corresponding to the maximum resolution edge 1280 is 3; when the maximum resolution edge is 1920, the corresponding decoding paths include 3, 2 and 1. In order from large to small, first traverse the data 1 of the decoding success rate hevc_mcs_maxdecodernum_1920_3 corresponding to the 3-way, the data is greater than 0.99, so it is determined that the maximum number of decoding paths corresponding to the maximum resolution edge 1920 is 3.

[0095] After determining the maximum number of decoding paths at each resolution, the third resolution data can be determined according to the decoding success rate corresponding to the maximum number of decoding paths at each resolution. Furthermore, the specific implementation of determining the third resolution data can be: if there is third performance data in the decoding success rate corresponding to the maximum number of decoding paths at each resolution, in which the maximum number of decoding paths is not less than the fifth parameter threshold and the resolution is not greater than the second parameter threshold, then the resolution corresponding to the third performance data is determined to be the third resolution data; if there is no third performance data in the decoding success rate corresponding to the maximum number of decoding paths at each resolution, then the third resolution data is set to a preset value. It has been explained above that the fifth parameter threshold is the number threshold of decoding paths.

[0096] The third resolution data may specifically be the third resolution maximum edge. A query is performed in the decoding success rate corresponding to the maximum number of decoding paths at each resolution to check whether there is data in which the maximum number of decoding paths is not less than the number threshold of decoding paths and the maximum edge of the resolution is not greater than the resolution threshold. If so, the maximum edge of the resolution corresponding to the data is determined to be the third resolution maximum edge. If not, the third resolution maximum edge is set to a preset value, and specifically the third resolution maximum edge may be set to -1.

[0097] Continuing with the above example, the fifth parameter threshold is 2. Taking the hard decoding performance data in Table 1 as an example, for the decoding type AVC (i.e., H.264 hard decoding) supported by the target device, the maximum number of decoding paths under the maximum resolution edges of 960, 1280, and 1920 is 3, which is greater than 2, and these maximum resolution edges are not greater than 1920, so the third maximum resolution edge corresponding to the decoding type AVC includes 960, 1280, and 1920. For the decoding type HEVC (i.e., H.265 hard decoding) supported by the target device, the maximum number of decoding paths under the maximum resolution edges of 960, 1280, and 1920 is 3, which is greater than 2, and these maximum resolution edges are not greater than 1920, so the third maximum resolution edge corresponding to the decoding type HEVC includes 960, 1280, and 1920.

[0098] In an exemplary embodiment, after determining the maximum number of decoding paths at each resolution, if it is determined that the maximum number of decoding paths at each resolution is less than the fifth parameter threshold, the fifth parameter threshold is updated using the maximum number of decoding paths at each resolution. For the decoding type supported by the target device, if the maximum number of decoding paths at each resolution is not greater than the set number threshold of decoding paths, the maximum value can be selected from the maximum number of decoding paths at each resolution, the number threshold of decoding paths can be changed to the maximum value, and then the maximum edge of the third resolution can be determined using the changed number threshold of decoding paths, thereby increasing the possibility of the existence of the maximum edge of the third resolution, and then increasing the possibility of sending a hard decoding strategy to the target device, so that the target device can use the hard decoding strategy for decoding.

[0099] It should be noted that, in an exemplary embodiment, the maximum number of decoding paths at each resolution may also be analyzed. If the maximum number of decoding paths at the resolution is less than the number threshold of decoding paths, the number threshold of decoding paths corresponding to the resolution may be changed to the maximum number of decoding paths at the resolution. When the decoding success rate corresponding to the maximum number of decoding paths at the resolution is analyzed, it is determined whether the maximum edge of the resolution is not greater than the resolution threshold. If so, the maximum edge of the resolution is the maximum edge of the third resolution. Otherwise, the maximum edge of the resolution is not the maximum edge of the third resolution.

[0100] Step S2024: Select minimum resolution data from the first resolution data, the second resolution data, and the third resolution data as the target resolution data.

[0101] The number of the first resolution data is one or more, the number of the second resolution data is one or more, and the number of the third resolution data is one or more. In this step, the target resolution data is selected from these resolutions. The specific implementation may be: if the first resolution data, the second resolution data, and the third resolution data are all non-preset values, a resolution existing in the first resolution data, the second resolution data, and the third resolution data is selected; and the minimum value of the selected resolutions is determined as the target resolution data.

[0102] The above description states that the first resolution data may be the first resolution maximum edge, the second resolution data may be the second resolution maximum edge, the third resolution data may be the third resolution maximum edge, the target resolution data may be the target resolution maximum edge, and the preset value is -1. If the first resolution maximum edge, the second resolution maximum edge, and the third resolution maximum edge are all not -1, then the resolution maximum edge that exists in the first resolution maximum edge, the second resolution maximum edge, and the third resolution maximum edge may be selected, and then the selected resolution maximum edge is determined to be the target resolution maximum edge.

[0103] Continuing with the above example, for the decoding type AVC (i.e., H.264 hard decoding) supported by the target device, the first resolution maximum edge includes 960, 1280 and 1920, the second resolution maximum edge includes 1280 and 1920, and the third resolution maximum edge includes 960, 1280 and 1920. It can be obtained that the first resolution maximum edge, the second resolution maximum edge and the third resolution maximum edge all have resolution maximum edges 1280 and 1920. Therefore, the resolution maximum edge 1280 is selected as the target resolution maximum edge corresponding to the decoding type AVC supported by the target device. For the decoding type HEVC supported by the target device (i.e., H.265 hard decoding), its first resolution maximum edge includes 960, 1280 and 1920, the second resolution maximum edge includes 1280 and 1920, and the third resolution maximum edge includes 960, 1280 and 1920. It can be obtained that the first resolution maximum edge, the second resolution maximum edge and the third resolution maximum edge all have resolution maximum edges 1280 and 1920. Therefore, the resolution maximum edge 1280 is selected as the target resolution maximum edge corresponding to the decoding type HEVC supported by the target device.

[0104] After the maximum edge of the target resolution is determined, in step S203, the maximum number of decoding paths corresponding to the maximum edge of the target resolution may be determined as the target maximum number of decoding paths.

[0105] Continuing with the above example, for the decoding type AVC supported by the target device, the maximum number of decoding paths corresponding to the maximum resolution edge 1280 is 3, so the target maximum number of decoding paths is 3. For the decoding type HEVC supported by the target device, the maximum number of decoding paths corresponding to the maximum resolution edge 1280 is 3, so the target maximum number of decoding paths is 3.

[0106] Finally, the generated hard decoding strategies for the target device are: strategy 1 (decoding type AVC, maximum resolution edge 1280, maximum decoding paths 3) and strategy 2 (decoding type HEVC, maximum resolution edge 1280, maximum decoding paths 3), which can be specifically expressed as {"vodMaxCnt264":3, "vodMaxCnt265":3, "length264":1280, "length265":1280}. If the maximum edge of the video data that the target device needs to decode is less than 1280, the generated hard decoding strategy can be sent to the target device.

[0107] For ease of understanding, Figure 4 As shown, in combination with a specific embodiment, the specific execution process of the above hard decoding strategy generation method is described in detail.

[0108] Specifically, the following hard decoding performance parameter thresholds are pre-set: the decoding success rate threshold m1 corresponding to the decoder, the resolution threshold m2, the first frame decoding time threshold m3, the decoding success rate threshold m4 corresponding to the number of decoding paths, and the number of decoding paths threshold m5. The hard decoding performance data corresponding to the decoding type supported by the target device is stored in redis, where the hard decoding performance data includes the decoding success rate at each resolution, the first frame decoding time at each resolution, and the decoding success rate corresponding to each decoding path at each resolution. After the target device initiates a policy generation request, the following processing is performed according to the hard decoding performance data corresponding to the decoding type it supports:

[0109] (1) In the decoding success rate at each resolution, search for data that satisfies the decoding success rate>=m1 and the resolution<=m2. If found, determine L1 as the maximum resolution edge corresponding to the data; if not found, determine L1=-1.

[0110] (2) In the first frame decoding time at each resolution, search for data that satisfies the first frame decoding time <= m3 and resolution <= m2. If found, determine L2 as the maximum resolution edge corresponding to the data; if not found, determine L2=-1.

[0111] (3) Determine the maximum number of decoding channels for each resolution. For the maximum number of decoding channels corresponding to each resolution, the specific process is as follows: Traverse the decoding success rates corresponding to the number of decoding channels at this resolution in descending order of the number of decoding channels, and determine that the number of decoding channels with a hard decoding success rate >= m4 is the maximum number of decoding channels corresponding to this resolution.

[0112] Among the decoding success rates corresponding to the maximum number of decoding channels at each resolution, query for data that satisfies the maximum number of decoding channels >= m5 and the resolution <= m2. If found, determine that L3 is the maximum side of the resolution corresponding to this data; if not found, determine that L3 = -1.

[0113] It should be noted that if the maximum number of decoding channels corresponding to each resolution is < m5, then the maximum value among the maximum number of decoding channels corresponding to each resolution can be used to replace m5.

[0114] (4) If L1, L2, and L3 all exist and are greater than 0, then determine that the maximum side of the target resolution L = min(L1, L2, L3), and the target maximum number of decoding channels N is the maximum number of decoding channels corresponding to L; otherwise, L = -1 and N = -1.

[0115] (5) Generate a hard decoding strategy corresponding to the decoding type supported by the target device according to the maximum side L of the target resolution and the target maximum number of decoding channels N.

[0116] It should be noted that the decoding types supported by the target device are one or more. For each decoding type supported by the target device, a hard decoding strategy corresponding to this decoding type can be generated according to the hard decoding performance data corresponding to this decoding type.

[0117] The hard decoding strategy method provided by the embodiments of the present disclosure can intelligently generate a hard decoding strategy corresponding to the decoding type supported by the target device through hard decoding performance data, solve the problems of high cost consumption and delay existing in the related technologies, achieve the effect of allocating a suitable hard decoding strategy for the target device, enable the target device to decode multimedia data better, and improve the playback quality of the target device.

[0118] It can be understood that the same / similar parts among the various embodiments of the above methods in this specification can be referred to each other, and each embodiment focuses on the differences from other embodiments. For the related parts, refer to the descriptions of other method embodiments.

[0119] Figure 5 is a block diagram of a hard decoding strategy generation device shown according to an exemplary embodiment. Refer to Figure 5 , the hard decoding strategy generation device 500 includes: a data acquisition module 510, a resolution determination module 520, a decoding channel determination module 530, and a strategy generation module 540.

[0120] Among them, the data acquisition module 510 can be used to: obtain the hard decoding performance data corresponding to the decoding type supported by the target device according to the generation request of the hard decoding strategy; the resolution determination module 520 can be used to: determine the target resolution data corresponding to the decoding type supported by the target device according to the hard decoding performance data and the hard decoding performance parameter threshold; the decoding path determination module 530 can be used to: determine the target maximum decoding paths corresponding to the target resolution data from the hard decoding performance data; the strategy generation module 540 can be used to: generate the hard decoding strategy corresponding to the decoding type supported by the target device according to the target resolution data and the target maximum decoding paths.

[0121] In some embodiments of the present disclosure, the hard decoding performance parameter threshold includes a first parameter threshold, a second parameter threshold, a third parameter threshold, a fourth parameter threshold and a fifth parameter threshold. Among them, the first parameter threshold is the decoding success rate threshold corresponding to the decoder, the second parameter threshold is the resolution threshold, the third parameter threshold is the first frame decoding time threshold, the fourth parameter threshold is the decoding success rate threshold corresponding to the number of decoding paths, and the fifth parameter threshold is the number threshold of decoding paths.

[0122] In some embodiments of the present disclosure, the hard decoding performance data includes the decoding success rate at each resolution, the time consumed for decoding the first frame at each resolution, and the decoding success rate corresponding to each decoding path at each resolution. The resolution determination module 520 can also be used to: query the decoding success rate at each resolution based on the first parameter threshold and the second parameter threshold, and determine the first resolution data corresponding to the decoding type supported by the target device according to the query result; query the time consumed for decoding the first frame at each resolution based on the second parameter threshold and the third parameter threshold, and determine the second resolution data corresponding to the decoding type supported by the target device according to the query result; determine the maximum decoding path at each resolution according to the decoding success rate corresponding to each decoding path at each resolution, and then query the decoding success rate corresponding to the maximum decoding path at each resolution based on the second parameter threshold and the fifth parameter threshold, and determine the third resolution data corresponding to the decoding type supported by the target device according to the query result; select the minimum resolution data as the target resolution data from the first resolution data, the second resolution data, and the third resolution data.

[0123] In some embodiments of the present disclosure, the resolution determination module 520 may also be used for: if there is first performance data in the decoding success rate at each resolution, in which the decoding success rate is not less than the first parameter threshold and the resolution is not greater than the second parameter threshold, then the resolution corresponding to the first performance data is determined to be the first resolution data; if there is no first performance data in the decoding success rate at each resolution, then the first resolution data is determined to be a preset value.

[0124] In some embodiments of the present disclosure, the resolution determination module 520 can also be used for: if there is second performance data in the decoding first frame time at each resolution, in which the decoding first frame time is not greater than the third parameter threshold and the resolution is not greater than the second parameter threshold, then the resolution corresponding to the second performance data is determined to be the second resolution data; if there is no second performance data in the decoding first frame time at each resolution, then the second resolution data is set to a preset value.

[0125] In some embodiments of the present disclosure, the resolution determination module 520 may also be used to: for each resolution, traverse the decoding success rates corresponding to each decoding path under the resolution in order from large to small; when traversing the decoding success rates corresponding to the current decoding path, if the decoding success rate corresponding to the current decoding path is not less than the fourth parameter threshold, determine that the current decoding path is the maximum decoding path under the resolution.

[0126] In some embodiments of the present disclosure, the resolution determination module 520 may also be used for: if there is third performance data in the decoding success rate corresponding to the maximum decoding path under each resolution, in which the maximum decoding path is not less than the fifth parameter threshold and the resolution is not greater than the second parameter threshold, then the resolution corresponding to the third performance data is determined to be the third resolution data; if there is no third performance data in the decoding success rate corresponding to the maximum decoding path under each resolution, then the third resolution data is set to a preset value.

[0127] In some embodiments of the present disclosure, the resolution determination module 520 may also be used to: if the maximum number of decoding paths at each resolution is less than the fifth parameter threshold, update the fifth parameter threshold using the maximum number of decoding paths at each resolution.

[0128] In some embodiments of the present disclosure, the first resolution data is one or more, the second resolution data is one or more, and the third resolution data is one or more. The resolution determination module 520 may also be used to: if the first resolution data, the second resolution data, and the third resolution data are all non-preset values, select a resolution that exists in the first resolution data, the second resolution data, and the third resolution data; and determine the minimum value of the selected resolutions as the target resolution data.

[0129] In some embodiments of the present disclosure, Figure 5 The hard decoding strategy generating device 500 shown also includes a strategy issuing module 550, which is used to: if the resolution corresponding to the data to be decoded is smaller than the target resolution data, issue the hard decoding strategy to the target device so that the target device decodes the data to be decoded according to the hard decoding strategy.

[0130] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0131] Figure 6 FIG. 1 shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present disclosure. It should be noted that: Figure 6 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0132] like Figure 6 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include but are not limited to: at least one processing unit 610, at least one storage unit 620, and a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610).

[0133] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 610 can perform the following steps: Figure 2 In step S201 shown in the figure, hard decoding performance data corresponding to the decoding type supported by the target device is obtained according to a request for generating a hard decoding strategy; in step S202, target resolution data corresponding to the decoding type supported by the target device is determined according to the hard decoding performance data and a hard decoding performance parameter threshold; in step S203, a target maximum number of decoding paths corresponding to the target resolution data is determined from the hard decoding performance data; in step S204, a hard decoding strategy corresponding to the decoding type supported by the target device is generated according to the target resolution data and the target maximum number of decoding paths.

[0134] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .

[0135] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0136] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0137] The electronic device 600 may also communicate with one or more external devices 660 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 640. As shown, the network adapter 640 communicates with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0138] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0139] The program product for implementing the above method according to the embodiment of the present invention may adopt a portable compact disk read-only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, apparatus, or device.

[0140] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0141] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0142] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0143] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0144] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0145] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0146] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0147] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

[0148] 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 method for generating a hard decoding strategy, characterized in that: include: According to the generation request of the hard decoding strategy, obtain the hard decoding performance data corresponding to the decoding type supported by the target device; Determining target resolution data corresponding to a decoding type supported by the target device according to the hard decoding performance data and the hard decoding performance parameter threshold; Determining a target maximum number of decoding paths corresponding to the target resolution data from the hard decoding performance data; A hard decoding strategy corresponding to a decoding type supported by the target device is generated according to the target resolution data and the target maximum number of decoding paths.

2. The method according to claim 1, characterized in that The hard decoding performance parameter thresholds include a first parameter threshold, a second parameter threshold, a third parameter threshold, a fourth parameter threshold and a fifth parameter threshold; Among them, the first parameter threshold is the decoding success rate threshold corresponding to the decoder, the second parameter threshold is the resolution threshold, the third parameter threshold is the first frame decoding time threshold, the fourth parameter threshold is the decoding success rate threshold corresponding to the decoding path, and the fifth parameter threshold is the number threshold of decoding paths.

3. The method according to claim 2, characterized in that The hard decoding performance data includes the decoding success rate at each resolution, the first frame decoding time at each resolution, and the decoding success rate corresponding to each decoding path at each resolution; The step of determining the target resolution data corresponding to the decoding type supported by the target device according to the hard decoding performance data and the hard decoding performance parameter threshold includes: Based on the first parameter threshold and the second parameter threshold, querying the decoding success rates at the respective resolutions, and determining the first resolution data corresponding to the decoding type supported by the target device according to the query result; Based on the second parameter threshold and the third parameter threshold, querying in the first frame decoding time at each resolution, and determining the second resolution data corresponding to the decoding type supported by the target device according to the query result; Determine the maximum number of decoding paths at each resolution according to the decoding success rates corresponding to the decoding paths at each resolution, and then query the decoding success rates corresponding to the maximum number of decoding paths at each resolution based on the second parameter threshold and the fifth parameter threshold, and determine the third resolution data corresponding to the decoding type supported by the target device according to the query result; From the first resolution data, the second resolution data and the third resolution data, select minimum resolution data as the target resolution data.

4. The method according to claim 3, characterized in that The querying in the decoding success rates at the respective resolutions based on the first parameter threshold and the second parameter threshold, and determining the first resolution data corresponding to the decoding type supported by the target device according to the query result, includes: If, among the decoding success rates at the resolutions, there is first performance data whose decoding success rate is not less than the first parameter threshold and whose resolution is not greater than the second parameter threshold, determining that the resolution corresponding to the first performance data is the first resolution data; If the first performance data does not exist in the decoding success rates at the resolutions, it is determined that the first resolution data is a preset value.

5. The method according to claim 3, characterized in that: The querying in the first frame decoding time at each resolution based on the second parameter threshold and the third parameter threshold, and determining the second resolution data corresponding to the decoding type supported by the target device according to the query result, includes: If, among the first frame decoding times at the resolutions, there is second performance data whose first frame decoding time is not greater than the third parameter threshold and whose resolution is not greater than the second parameter threshold, it is determined that the resolution corresponding to the second performance data is the second resolution data; If the second performance data does not exist in the first frame decoding time at each resolution, the second resolution data is set to a preset value.

6. The method according to claim 3, characterized in that The determining the maximum number of decoding paths at each resolution according to the decoding success rate corresponding to each decoding path at each resolution includes: For each resolution, in descending order of the number of decoding paths at the resolution, traverse the decoding success rates corresponding to the decoding paths at the resolution; When traversing the decoding success rates corresponding to the current decoding path, if the decoding success rate corresponding to the current decoding path is not less than the fourth parameter threshold, the current decoding path is determined to be the maximum decoding path under the resolution.

7. The method according to claim 6, characterized in that The querying, based on the second parameter threshold and the fifth parameter threshold, in the decoding success rate corresponding to the maximum number of decoding paths at each resolution, and determining the third resolution data corresponding to the decoding type supported by the target device according to the query result, includes: If, among the decoding success rates corresponding to the maximum number of decoding paths under the resolutions, there is third performance data whose maximum number of decoding paths is not less than the fifth parameter threshold and whose resolution is not greater than the second parameter threshold, determining that the resolution corresponding to the third performance data is the third resolution data; If the third performance data does not exist in the decoding success rate corresponding to the maximum number of decoding paths under each resolution, the third resolution data is set to a preset value.

8. The method according to claim 7, characterized in that After determining the maximum number of decoding paths at each resolution, the method further includes: If the maximum number of decoding paths at each resolution is smaller than the fifth parameter threshold, the fifth parameter threshold is updated using the maximum number of decoding paths at each resolution.

9. The method according to claim 3, characterized in that: The first resolution data is one or more, the second resolution data is one or more, and the third resolution data is one or more; The step of selecting minimum resolution data as the target resolution data from the first resolution data, the second resolution data and the third resolution data includes: If the first resolution data, the second resolution data and the third resolution data are all non-preset values, selecting a resolution that exists in the first resolution data, the second resolution data and the third resolution data; The minimum value of the selected resolution is determined to be the target resolution data.

10. The method according to claim 1, characterized in that The method further comprises: If the resolution corresponding to the data to be decoded is smaller than the target resolution data, the hard decoding strategy is sent to the target device, so that the target device decodes the data to be decoded according to the hard decoding strategy.

11. A hard decoding strategy generating device, characterized in that: include: A data acquisition module, used to acquire hard decoding performance data corresponding to the decoding type supported by the target device according to the generation request of the hard decoding strategy; A resolution determination module, configured to determine target resolution data corresponding to a decoding type supported by the target device according to the hard decoding performance data and the hard decoding performance parameter threshold; A decoding path determination module, used to determine a target maximum decoding path corresponding to the target resolution data from the hard decoding performance data; The strategy generation module is used to generate a hard decoding strategy corresponding to the decoding type supported by the target device according to the target resolution data and the target maximum decoding path number.

12. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the hard decoding strategy generation method according to any one of claims 1 to 10. 13 . A computer-readable storage medium, when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the hard decoding strategy generation method according to any one of claims 1 to 10.