CN115546329B - Audio and video hardware acceleration transcoding detection method and system - Google Patents

Audio and video hardware acceleration transcoding detection method and system Download PDF

Info

Publication number
CN115546329B
CN115546329B CN202211523508.0A CN202211523508A CN115546329B CN 115546329 B CN115546329 B CN 115546329B CN 202211523508 A CN202211523508 A CN 202211523508A CN 115546329 B CN115546329 B CN 115546329B
Authority
CN
China
Prior art keywords
decoding
coding
equipment
hardware acceleration
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211523508.0A
Other languages
Chinese (zh)
Other versions
CN115546329A (en
Inventor
严泽辉
李昌绿
明德
张常华
朱正辉
赵定金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Baolun Electronics Co ltd
Original Assignee
Guangdong Baolun Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Baolun Electronics Co ltd filed Critical Guangdong Baolun Electronics Co ltd
Priority to CN202211523508.0A priority Critical patent/CN115546329B/en
Publication of CN115546329A publication Critical patent/CN115546329A/en
Application granted granted Critical
Publication of CN115546329B publication Critical patent/CN115546329B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining

Abstract

The invention discloses an audio and Video hardware accelerated transcoding detection method and system, which are characterized in that a decoding method in a database and an encoding method in another database are sequentially called to Decode and encode videos so as to judge whether the decoding method and the encoding method exist in the database and further judge whether the decoding method and the encoding method can Decode and encode the videos, if so, the hardware accelerated decoding method and the hardware accelerated encoding method of GPU-Video decoding utilization rate judgment equipment corresponding to the decoding method and the encoding method are detected, if not, the hardware accelerated decoding and the hardware accelerated encoding cannot be carried out by the equipment are obtained, and according to the decoding judgment result and the encoding judgment result, the hardware transcoding result of the equipment is obtained, and by the method, whether the equipment supports hardware accelerated transcoding in complex system environments of different equipment and under the condition of inaccurate hardware information can be judged, so that the risk of transcoding failure is reduced.

Description

Audio and video hardware acceleration transcoding detection method and system
Technical Field
The invention relates to the technical field of file transcoding, in particular to an audio and video hardware acceleration transcoding detection method and system.
Background
Video transcoding refers to converting a video bitstream that has been compression encoded into another video bitstream to accommodate different network bandwidths, different terminal processing capabilities, and different user requirements.
At present, hardware acceleration is generally required for audio and video transcoding, if CPU (Central processing Unit) transcoding is used, time is consumed, the CPU utilization rate of equipment is increased and is blocked, but not all equipment can support the hardware acceleration transcoding, so that whether the equipment supports the hardware acceleration is important before transcoding is judged.
At present, whether a display card exists in a device or not and the type of the display card are determined by means of checking configuration files, calling system functions, checking a registry and the like, so that the type of the display card can be detected on a system by determining what hardware is used for carrying out audio and video hardware acceleration transcoding, but all devices on the market are not capable of detecting the type of the display card systematically, and the situation that the detected type of the display card is not in line with the actual situation exists due to the problems of environment configuration, non-mainstream display cards and the like, and the situation that a hardware acceleration method cannot accelerate can also occur.
Disclosure of Invention
The invention provides an audio and video hardware acceleration transcoding detection method, which can judge whether the equipment supports hardware acceleration transcoding in a complex system environment of the equipment, and reduce the risk of transcoding failure.
In order to solve the technical problems, an embodiment of the present invention provides an audio/video hardware acceleration transcoding detection method, including:
acquiring a test video;
sequentially calling each decoding method in the first database to Decode the test Video, judging whether decoding methods capable of decoding the test Video exist, if so, acquiring all decoding methods which are successful in decoding, screening out a decoding method as a hardware acceleration decoding method of equipment according to the GPU-Video decoding rate corresponding to each decoding method which is successful in decoding, determining that the first judging result is that the equipment can perform hardware acceleration decoding, and if not, determining that the first judging result is that the equipment cannot perform hardware acceleration decoding, wherein a plurality of decoding methods are preset in the first database;
sequentially calling each coding method in the second database to code the test Video, judging whether the coding method capable of coding the test Video exists, if so, acquiring all coding methods which are successful in coding, screening out one coding method as a hardware acceleration coding method of the equipment according to the GPU-Video decoding utilization rate corresponding to each coding method which is successful in coding, determining that the second judging result is that the equipment can perform hardware acceleration coding, and if not, determining that the second judging result is that the equipment cannot perform hardware acceleration coding, wherein a plurality of coding methods are preset in the second database;
obtaining a detection result of the equipment hardware acceleration transcoding method according to the first judgment result and the second judgment result;
sequentially calling each decoding method in the first database to Decode the test Video, judging whether a decoding method capable of decoding the test Video exists, if so, acquiring all decoding methods which are successfully decoded, screening out a decoding method as a hardware acceleration decoding method of the equipment according to the GPU-Video decoding rate corresponding to each decoding method which is successfully decoded, and determining that the first judging result is that the equipment can perform hardware acceleration decoding, wherein the method comprises the following specific steps of:
sequentially calling a decoding method in a first database to decode the test video;
judging whether the current decoding method can Decode the test Video, if the current decoding method can Decode the test Video, detecting whether the GPU-Video decoding rate corresponding to the current decoding method is increased, if so, calling the next decoding method to Decode and judge whether the next decoding method can Decode the test Video, and if not, recording that the current decoding method is a hardware acceleration decoding method of the equipment, and obtaining a first judging result that the equipment can perform hardware acceleration decoding;
sequentially calling each coding method in the second database to code the test Video, judging whether the coding method capable of coding the test Video exists, if so, acquiring all coding methods which are successful in coding, screening out one coding method as a hardware acceleration coding method of the equipment according to the GPU-Video decoding utilization rate corresponding to each coding method which is successful in coding, and determining that the equipment can perform hardware acceleration coding as a second judging result, wherein the method comprises the following steps of:
sequentially calling an encoding method in the first data to encode the test video;
judging whether the current coding method can code the test Video, if the current coding method can code the test Video, detecting whether the GPU-Video decoding rate corresponding to the current coding method is increased, if so, calling the next coding method to code to judge whether the next coding method can code the test Video, and if not, recording that the current coding method is a hardware acceleration coding method of the equipment, and obtaining a first judging result that the equipment can perform hardware acceleration coding.
According to the embodiment of the invention, the prepared Video is used as a test material for detecting the hardware acceleration capability of the equipment, the Video is decoded by sequentially calling the decoding methods in the database to further judge whether the decoding methods exist in the database to Decode the Video, if the decoding methods exist, whether the GPU-Video decoding rate corresponding to the decoding methods is increased or not is detected, if the GPU-Video decoding rate is not increased, the judging result is that the equipment can perform hardware acceleration decoding, if the decoding methods do not exist, the judging result is that the equipment cannot perform hardware acceleration decoding, the Video is encoded by using the encoding methods in the other database, whether the encoding methods exist in the database to encode the Video is judged, if the encoding methods exist to encode the Video, whether the GPU-Video decoding rate corresponding to the encoding methods is increased or not is detected, if the GPU-Video decoding rate is not increased, the judging result is that the equipment can perform hardware acceleration encoding, if the decoding method does not exist, the judging result is that the equipment cannot perform hardware acceleration decoding, the equipment cannot be converted into the hardware acceleration decoding according to the decoding result, the hardware is reduced, and the hardware is not capable of being converted into the hardware acceleration decoding result and the environment is judged, and the hardware is not capable of being converted to have the hardware acceleration decoding results.
As a preferred scheme, a detection result of the device hardware acceleration transcoding method is obtained according to the first judgment result and the second judgment result, specifically:
if the first judgment result is that the equipment can perform hardware acceleration decoding, and the second judgment result is that the equipment can perform hardware acceleration encoding, the equipment can perform hardware acceleration transcoding;
if the first judging result is that the equipment cannot perform hardware acceleration decoding, and the second judging result is that the equipment can perform hardware acceleration encoding, the equipment is obtained without using the hardware acceleration decoding, and the hardware acceleration encoding is used;
if the first judging result is that the equipment can perform hardware acceleration decoding, and the second judging result is that the equipment can perform hardware acceleration encoding, the equipment is obtained to use the hardware acceleration decoding, and the hardware acceleration encoding is not used;
if the first judging result is that the equipment cannot perform hardware acceleration decoding, and the second judging result is that the equipment cannot perform hardware acceleration encoding, the equipment cannot perform hardware acceleration transcoding.
As a preferred scheme, the decoding method is all hardware decoding methods supported by the third party transcoding program;
the encoding method is all hardware encoding methods supported by the third party transcoding program.
In order to solve the same technical problems, the invention also provides an audio and video hardware acceleration transcoding detection system, which comprises:
the acquisition module is used for acquiring the test video;
the first judging module is used for sequentially calling each decoding method in the first database to Decode the test Video, judging whether decoding methods capable of decoding the test Video exist or not, acquiring all decoding methods which are successful in decoding if the decoding methods exist, screening out a decoding method as a hardware acceleration decoding method of the equipment according to the GPU-Video decoding rate corresponding to each decoding method which is successful in decoding, determining that the first judging result is that the equipment can perform hardware acceleration decoding, and determining that the first judging result is that the equipment cannot perform hardware acceleration decoding if the decoding method is not exist, wherein a plurality of decoding methods are preset in the first database;
the second judging module is used for sequentially calling each coding method in the second database to code the test Video, judging whether the coding method capable of coding the test Video exists or not, acquiring all coding methods which are successful in coding if the coding method exists, screening out one coding method as a hardware acceleration coding method of the equipment according to the GPU-Video decoding utilization rate corresponding to each coding method which is successful in coding, determining that the second judging result is that the equipment can perform hardware acceleration coding, and determining that the second judging result is that the equipment cannot perform hardware acceleration coding if the coding method does not exist, wherein a plurality of coding methods are preset in the second database;
and the third judging module is used for obtaining the detection result of the equipment hardware acceleration transcoding method according to the first judging result and the second judging result.
Preferably, the first judging module comprises a calling unit and a judging unit,
the calling unit is used for sequentially calling a decoding method in the first data to decode the test video;
the judging unit is used for judging whether the current decoding method can Decode the test Video, if the current decoding method can Decode the test Video, detecting whether the GPU-Video decoding rate corresponding to the current decoding method is increased, if so, calling the next decoding method to Decode and judge whether the next decoding method can Decode the test Video, and if not, recording the current decoding method as a hardware acceleration decoding method of the equipment, and obtaining a first judging result as that the equipment can perform hardware acceleration decoding.
As a preferred solution, in order to solve the same technical problem, an embodiment of the present invention further provides a terminal device, including: the system comprises a processor and a memory, wherein the memory stores a computer program, the computer program is configured to be executed by the processor, and the processor realizes the audio and video hardware acceleration transcoding detection method according to the embodiment of the invention when executing the computer program.
In order to solve the same technical problems, the embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to implement the method for detecting the acceleration transcoding of the audio and video hardware according to the embodiment of the invention.
According to the audio and Video hardware acceleration transcoding detection method provided by the invention, a prepared Video is used as a test material for detecting the hardware acceleration capability of the equipment, the Video is decoded by sequentially calling a decoding method in a database to further judge whether the decoding method is used for decoding the Video, if the decoding method is used for decoding the Video, the GPU-Video decoding rate corresponding to the decoding method is detected to be increased, if the GPU-Video decoding rate is not increased, the judgment result is that the equipment can perform hardware acceleration decoding, if the decoding method is not used, the judgment result is that the equipment cannot perform hardware acceleration decoding, the Video is coded by using a coding method in another database, whether the coding method is used for coding the Video is judged, if the coding method is used for coding the Video, the GPU-Video decoding rate corresponding to the coding method is detected to be increased, if the GPU-Video decoding rate is not increased, the judgment result is that the equipment can perform hardware acceleration decoding, if the GPU-Video decoding rate is not increased, the decoding result is not increased, the hardware acceleration decoding is not supported by the equipment, and if the hardware acceleration decoding is not supported by the equipment is not used, the hardware acceleration decoding is not supported by the equipment, and if the hardware acceleration decoding is not supported by the hardware acceleration decoding is not judged, the system is judged, and the hardware is not supported by the hardware acceleration decoding is judged.
Drawings
Fig. 1: the flow diagram of the audio/video hardware acceleration transcoding detection method provided by the embodiment of the invention;
fig. 2: another flow diagram of the audio/video hardware acceleration transcoding detection method provided by an embodiment of the present invention;
fig. 3: the audio and video hardware acceleration transcoding detection system provided by the embodiment of the invention is a structural schematic diagram.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the step numbers used herein are for convenience of description only and are not limiting as to the order in which the steps are performed.
It is to be understood that the terminology used in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The terms "comprises" and "comprising" indicate the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The term "and/or" refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Example 1
Referring to fig. 1, an audio/video hardware acceleration transcoding detection method provided by an embodiment of the present invention includes the steps of:
s1, acquiring a test video.
S2, sequentially calling each decoding method in the first database to Decode the test Video, judging whether decoding methods capable of decoding the test Video exist, if so, acquiring all decoding methods which are successful in decoding, screening out a decoding method as a hardware acceleration decoding method of the equipment according to the GPU-Video decoding rate corresponding to each decoding method which is successful in decoding, determining that the first judging result is that the equipment can perform hardware acceleration decoding, and if not, determining that the first judging result is that the equipment cannot perform hardware acceleration decoding, wherein a plurality of decoding methods are preset in the first database.
Further, step S2 specifically includes:
s201, sequentially calling a decoding method in a first database to decode the test video;
s202, judging whether the current decoding method can Decode the test Video, if the current decoding method can Decode the test Video, detecting whether the GPU-Video decoding rate corresponding to the current decoding method is increased, if so, calling the next decoding method to Decode and judge whether the next decoding method can Decode the test Video, and if not, recording the current decoding method as a hardware acceleration decoding method of the equipment, and obtaining a first judging result that the equipment can perform hardware acceleration decoding.
S3, sequentially calling each coding method in the second database to code the test Video, judging whether the coding method capable of coding the test Video exists, if so, acquiring all coding methods with successful coding, screening out one coding method as a hardware acceleration coding method of the equipment according to the GPU-Video decoding utilization rate corresponding to each coding method with successful coding, determining that the second judging result is that the equipment can perform hardware acceleration coding, and if not, determining that the second judging result is that the equipment cannot perform hardware acceleration coding, wherein a plurality of coding methods are preset in the second database.
Further, the step S3 specifically includes:
s301, sequentially calling an encoding method in the first data to encode a test video;
s302, judging whether the current coding method can code the test Video, if the current coding method can code the test Video, detecting whether the GPU-Video decoding rate corresponding to the current coding method is increased, if so, calling the next coding method to code and judging whether the next coding method can code the test Video, and if not, recording the current coding method as a hardware acceleration coding method of the equipment, and obtaining a first judging result as that the equipment can perform hardware acceleration coding.
S4, obtaining a detection result of the equipment hardware acceleration transcoding method according to the first judgment result and the second judgment result.
Further, step S4 specifically includes:
if the first judgment result is that the equipment can perform hardware acceleration decoding, and the second judgment result is that the equipment can perform hardware acceleration encoding, the equipment can perform hardware acceleration transcoding;
if the first judging result is that the equipment cannot perform hardware acceleration decoding, and the second judging result is that the equipment can perform hardware acceleration encoding, the equipment is obtained without using the hardware acceleration decoding, and the hardware acceleration encoding is used;
if the first judging result is that the equipment can perform hardware acceleration decoding, and the second judging result is that the equipment can perform hardware acceleration encoding, the equipment is obtained to use the hardware acceleration decoding, and the hardware acceleration encoding is not used;
if the first judging result is that the equipment cannot perform hardware acceleration decoding, and the second judging result is that the equipment cannot perform hardware acceleration encoding, the equipment cannot perform hardware acceleration transcoding.
Further, the decoding method is all hardware decoding methods supported by the third party transcoding program;
the encoding method is all hardware encoding methods supported by the third party transcoding program.
Referring to fig. 2, based on the above scheme, in order to facilitate better understanding of the audio/video hardware accelerated transcoding detection method provided by the embodiment of the present invention, the following details are described.
Two databases are prepared in advance, namely a scene database and a site information database, wherein one database stores a hardware decoding method supported by a third-party transcoding program, and the other database stores a hardware encoding method supported by the third-party transcoding program.
Firstly, using a small section of standard video prepared in advance as a test material for detecting the hardware acceleration capability of the equipment, and inputting the standard video into the equipment;
secondly, using a database prepared in advance, storing all hardware decoding methods supported by a transcoding program, and taking out one decoding method from the database to decode the video;
thirdly, judging whether the decoding method obtained in the second step is the last, if so, recording that the equipment cannot perform hardware acceleration decoding and can only use software for decoding, otherwise, using the decoding method obtained in the second step for decoding and detecting the condition of GPU-Video decoding utilization rate in the performance state of the equipment;
detecting the condition of the GPU-Video decoding utilization rate in the equipment performance state, if the utilization rate is increased, jumping to a fifth step, otherwise jumping to a second step;
fifthly, when the increase of the GPU-Video decoding rate is detected in the fourth step, recording the decoding method as a decoding hardware acceleration method of the equipment;
sixthly, using a database prepared in advance, storing all hardware coding methods supported by a transcoding program, and taking out one coding method from the database to code the video;
a seventh step of judging whether the coding method obtained in the sixth step is the last, if so, recording that the equipment cannot perform hardware acceleration coding and only can use software acceleration coding, otherwise, using the coding method obtained in the sixth step to perform coding and detecting the condition of GPU-Video decoding utilization rate in the performance state of the equipment;
eighth, detecting the condition of the GPU-Video decoding utilization rate in the equipment performance state, if the utilization rate is increased, jumping to a ninth step, otherwise jumping to a sixth step;
a ninth step of recording the decoding method as a decoding hardware acceleration method of the device when the eighth step detects that the GPU-Video decoding rate is increased;
and tenth, obtaining a method needed to be used for transcoding of the equipment through the process.
If the decoding method is detected but the encoding method is not detected, the decoding is accelerated by hardware, the hardware acceleration encoding is not used, and the soft encoding is used; on the contrary, if the encoding method is detected but the decoding method is not detected, the hardware accelerated encoding is used, the hardware accelerated decoding is not used, the soft decoding is used, and if the decoding method is not detected, the hardware accelerated transcoding method is failed to be acquired.
According to the embodiment of the invention, the Video is input into the device, then the decoding method in the database is sequentially called to Decode the Video, so that whether the decoding method exists in the database to Decode the Video is judged, if the decoding method exists to Decode the Video, whether the GPU-Video decoding rate corresponding to the decoding method is increased is detected, if the GPU-Video decoding rate is not increased, the judging result is that the device can perform hardware acceleration decoding, if the decoding method does not exist, the judging result is that the device cannot perform hardware acceleration decoding, the Video is encoded by using the encoding method in the other database, whether the encoding method exists to encode the Video is judged, if the encoding method exists to encode the Video, the GPU-Video decoding rate corresponding to the encoding method is detected to be increased, if the GPU-Video decoding rate is not increased, the judging result is that the device can perform hardware acceleration encoding, if the decoding method does not exist, the judging result is that the device cannot perform hardware acceleration encoding, if the decoding method does not exist, the decoding method is not performed, the decoding result is not performed according to the judging result, the decoding result is reduced, and the hardware is not supported by the hardware acceleration decoding method is not supported by the device, and the hardware is not supported by the hardware is accurately judged, and the hardware is not supported by the device.
Example two
Correspondingly, referring to fig. 3, fig. 3 is a schematic structural diagram of an audio and video hardware accelerated transcoding detection system provided by the present invention, as shown in fig. 3, the audio and video hardware accelerated transcoding detection system includes:
an acquisition module 301, configured to acquire a test video;
the first judging module 302 is configured to sequentially invoke each decoding method in the first database to Decode the test Video, judge whether there is a decoding method capable of decoding the test Video, if so, obtain all decoding methods that are successful in decoding, and screen out a decoding method as a hardware accelerated decoding method of the device according to the GPU-Video decoding rate corresponding to each decoding method that is successful in decoding, determine that the first judging result is that the device is capable of performing hardware accelerated decoding, and if not, determine that the first judging result is that the device is incapable of performing hardware accelerated decoding, where a plurality of decoding methods are preset in the first database;
the second judging module 303 is configured to sequentially call each encoding method in the second database to encode the test Video, judge whether there is an encoding method capable of encoding the test Video, if so, obtain all encoding methods that encode successfully, and screen out an encoding method as a hardware acceleration encoding method of the device according to the GPU-Video decoding rate corresponding to each encoding method that encode successfully, determine that the second judging result is that the device can perform hardware acceleration encoding, and if not, determine that the second judging result is that the device cannot perform hardware acceleration encoding, where a plurality of encoding methods are preset in the second database;
and a third judging module 304, configured to obtain a detection result of the device hardware acceleration transcoding method according to the first judging result and the second judging result.
In the present embodiment, the first judgment module 302 includes a calling unit 3021 and a judgment unit 3022,
the calling unit 3021 is configured to sequentially call a decoding method in the first data to decode a test video;
the judging unit 3022 is configured to judge whether the current decoding method can Decode the test Video, if the current decoding method can Decode the test Video, detect whether the GPU-Video decoding rate corresponding to the current decoding method is increased, if so, call the next decoding method to Decode and judge whether the next decoding method can Decode the test Video, and if not, record that the current decoding method is a hardware accelerated decoding method of the device, and obtain a first judging result that the device can perform hardware accelerated decoding.
Example III
Correspondingly, the audio and video hardware acceleration transcoding detection electronic equipment provided by the invention comprises: the system comprises a processor and a memory, wherein the memory stores a computer program, and the computer program is configured to be executed by the processor, and the processor executes operations corresponding to the audio/video hardware acceleration transcoding detection method as shown in the first embodiment of the application.
Example IV
Accordingly, the present invention provides a computer readable storage medium, on which a computer executable program is stored, which when executed by a processor implements an audio/video hardware accelerated transcoding detection method as shown in the present application.
Compared with the prior art, the method and the device have the advantages that the Video is input into the device, then the decoding method in the database is sequentially called to Decode the Video, whether the decoding method exists in the database to Decode the Video is judged, if the decoding method exists to Decode the Video, whether the GPU-Video decoding rate corresponding to the decoding method is increased is detected, if the GPU-Video decoding rate is not increased, the judging result is that the device can perform hardware acceleration decoding, if the decoding method does not exist, the judging result is that the device cannot perform hardware acceleration decoding, the Video is encoded by using the encoding method in the other database, whether the encoding method exists to encode the Video is judged, if the encoding method exists to encode the Video, the GPU-Video decoding rate corresponding to the encoding method is detected to increase, if the GPU-Video decoding rate is not increased, the judging result is that the device can perform hardware acceleration encoding, if the judging result is that the device cannot perform hardware acceleration encoding, the device cannot perform hardware acceleration encoding according to the judging result, if the decoding result cannot be converted into the hardware acceleration encoding, the hardware is reduced, and the risk of the device can be converted into the hardware acceleration encoding is reduced by the hardware decoding result, and the hardware decoding is not supported by the device is judged, and the hardware is not supported by the hardware decoding system is judged.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present invention, and are not to be construed as limiting the scope of the invention. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present invention are intended to be included in the scope of the present invention.

Claims (6)

1. The method for detecting the acceleration transcoding of the audio and video hardware is characterized by comprising the following steps of:
acquiring a test video;
sequentially calling each decoding method in a first database to Decode the test Video, judging whether decoding methods capable of decoding the test Video exist, if so, acquiring all decoding methods which are successful in decoding, screening out a decoding method as a hardware acceleration decoding method of equipment according to the GPU-Video decoding rate corresponding to each decoding method which is successful in decoding, determining that a first judging result is that the equipment can perform hardware acceleration decoding, and if not, determining that the first judging result is that the equipment cannot perform hardware acceleration decoding, wherein a plurality of decoding methods are preset in the first database;
sequentially calling each coding method in a second database to code the test Video, judging whether coding methods capable of coding the test Video exist, if so, acquiring all coding methods which are successful in coding, screening out one coding method as a hardware acceleration coding method of the equipment according to the GPU-Video decoding utilization rate corresponding to each coding method which is successful in coding, determining that a second judging result is that the equipment can perform hardware acceleration coding, and if not, determining that the second judging result is that the equipment cannot perform hardware acceleration coding, wherein a plurality of coding methods are preset in the second database;
obtaining a detection result of a device hardware acceleration transcoding method according to the first judgment result and the second judgment result;
the method comprises the steps of sequentially calling each decoding method in a first database to Decode the test Video, judging whether decoding methods capable of decoding the test Video exist, if so, acquiring all decoding methods which are successfully decoded, screening out a decoding method as a hardware acceleration decoding method of equipment according to the GPU-Video decoding rate corresponding to each decoding method which is successfully decoded, and determining that the equipment can perform hardware acceleration decoding according to a first judging result, wherein the method comprises the following steps of:
sequentially calling a decoding method in the first database to decode the test video;
judging whether the current decoding method can Decode the test Video, if the current decoding method can Decode the test Video, detecting whether the GPU-Video decoding rate corresponding to the current decoding method is increased, if not, calling a next decoding method to Decode and judge whether the next decoding method can Decode the test Video, and if so, recording the current decoding method as an equipment hardware accelerated decoding method, and obtaining a first judging result as that the equipment can perform hardware accelerated decoding;
the method comprises the steps of calling each coding method in a second database in sequence to code the test Video, judging whether the coding method capable of coding the test Video exists, acquiring all coding methods which are successful in coding if the coding method capable of coding the test Video exists, screening out one coding method as a hardware acceleration coding method of the equipment according to the GPU-Video decoding utilization rate corresponding to each coding method which is successful in coding, and determining that the equipment can perform hardware acceleration coding according to a second judging result, wherein the method comprises the following specific steps:
sequentially calling an encoding method in the first data to encode the test video;
judging whether the current coding method can code the test Video, if the current coding method can code the test Video, detecting whether the GPU-Video decoding rate corresponding to the current coding method is increased, if not, calling the next coding method to code so as to judge whether the next coding method can code the test Video, and if so, recording the current coding method as a hardware acceleration coding method of the equipment, and obtaining a first judging result as that the equipment can perform hardware acceleration coding.
2. The method for detecting the accelerated transcoding of the audio and video hardware according to claim 1, wherein the detection result of the accelerated transcoding method of the hardware of the device is obtained according to the first determination result and the second determination result, specifically:
if the first judging result is that the equipment can perform hardware acceleration decoding, and the second judging result is that the equipment can perform hardware acceleration encoding, obtaining that the equipment performs hardware acceleration transcoding;
if the first judging result is that the equipment cannot perform hardware acceleration decoding, and the second judging result is that the equipment can perform hardware acceleration encoding, the equipment is obtained without using the hardware acceleration decoding, and the hardware acceleration encoding is used;
if the first judging result is that the equipment can perform hardware acceleration decoding, and the second judging result is that the equipment can perform hardware acceleration encoding, the equipment is obtained to use the hardware acceleration decoding and does not use the hardware acceleration encoding;
if the first judging result is that the equipment cannot perform hardware acceleration decoding, and the second judging result is that the equipment cannot perform hardware acceleration encoding, the equipment cannot perform hardware acceleration transcoding.
3. The method for detecting the acceleration transcoding of audio and video hardware according to claim 1, wherein the decoding method is all hardware decoding methods supported by a third party transcoding program;
the coding method is all hardware coding methods supported by the third party transcoding program.
4. An audio and video hardware accelerated transcoding detection system, comprising:
the acquisition module is used for acquiring the test video;
the first judging module is used for sequentially calling each decoding method in the first database to Decode the test Video, judging whether decoding methods capable of decoding the test Video exist or not, acquiring all decoding methods which are successful in decoding if the decoding methods exist, screening out a decoding method as a hardware acceleration decoding method of equipment according to the GPU-Video decoding rate corresponding to each decoding method which is successful in decoding, determining that the first judging result is that the equipment can perform hardware acceleration decoding, and determining that the first judging result is that the equipment cannot perform hardware acceleration decoding if the decoding method does not exist, wherein a plurality of decoding methods are preset in the first database;
the second judging module is used for sequentially calling each coding method in a second database to code the test Video, judging whether the coding method capable of coding the test Video exists or not, acquiring all coding methods which are successful in coding if the coding method exists, screening out one coding method as a hardware acceleration coding method of the equipment according to the GPU-Video decoding utilization rate corresponding to each coding method which is successful in coding, determining that the second judging result is that the equipment can perform hardware acceleration coding, and determining that the second judging result is that the equipment cannot perform hardware acceleration coding if the coding method does not exist, wherein a plurality of coding methods are preset in the second database;
the third judging module is used for obtaining a detection result of the equipment hardware acceleration transcoding method according to the first judging result and the second judging result;
the first judging module comprises a calling unit and a judging unit,
the calling unit is used for sequentially calling a decoding method in the first data to decode the test video;
the judging unit is used for judging whether the current decoding method can Decode the test Video, if the current decoding method can Decode the test Video, detecting whether the GPU-Video decoding rate corresponding to the current decoding method is increased, if so, calling the next decoding method to Decode and judge whether the next decoding method can Decode the test Video, and if not, recording that the current decoding method is a hardware acceleration decoding method of the equipment, and obtaining a first judging result that the equipment can perform hardware acceleration decoding;
the second judging module comprises a coding method calling unit and a coding method judging unit,
the coding method calling unit is used for sequentially calling a coding method in the first data to code the test video;
the coding method judging unit is used for judging whether the current coding method can code the test Video, if the current coding method can code the test Video, detecting whether the GPU-Video decoding rate corresponding to the current coding method is increased, if not, calling the next coding method to code and judging whether the next coding method can code the test Video, and if so, recording the current coding method as a hardware acceleration coding method of the equipment, and obtaining a first judging result as the hardware acceleration coding of the equipment.
5. A terminal device, comprising: a processor and a memory are provided for the processor,
the memory stores a computer program, and the computer program is configured to be executed by the processor, which when executing the computer program, implements the audio-video hardware accelerated transcoding detection method as claimed in any one of claims 1 to 3.
6. A computer readable storage medium having stored thereon a computer program, wherein the computer program is executed by a processor to implement the audio-video hardware accelerated transcoding detection method of any of claims 1 to 3.
CN202211523508.0A 2022-12-01 2022-12-01 Audio and video hardware acceleration transcoding detection method and system Active CN115546329B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211523508.0A CN115546329B (en) 2022-12-01 2022-12-01 Audio and video hardware acceleration transcoding detection method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211523508.0A CN115546329B (en) 2022-12-01 2022-12-01 Audio and video hardware acceleration transcoding detection method and system

Publications (2)

Publication Number Publication Date
CN115546329A CN115546329A (en) 2022-12-30
CN115546329B true CN115546329B (en) 2023-05-16

Family

ID=84722184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211523508.0A Active CN115546329B (en) 2022-12-01 2022-12-01 Audio and video hardware acceleration transcoding detection method and system

Country Status (1)

Country Link
CN (1) CN115546329B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924471A (en) * 2018-09-13 2018-11-30 福建星网智慧科技股份有限公司 A kind of conference system based on QSV fast video encoding and decoding

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8233527B2 (en) * 2007-05-11 2012-07-31 Advanced Micro Devices, Inc. Software video transcoder with GPU acceleration
CN102970525B (en) * 2011-09-01 2015-06-24 深圳市快播科技有限公司 Optimized decoding processing method, device and system of mobile terminal player
CN103260021B (en) * 2012-02-21 2016-08-03 腾讯科技(深圳)有限公司 A kind of video encoding/decoding method and device
US9106921B2 (en) * 2012-04-24 2015-08-11 Vixs Systems, Inc Configurable transcoder and methods for use therewith
CN105678681A (en) * 2015-12-30 2016-06-15 广东威创视讯科技股份有限公司 GPU data processing method, GPU, PC architecture processor and GPU data processing system
CN106210726A (en) * 2016-08-08 2016-12-07 成都佳发安泰科技股份有限公司 The method that utilization rate according to CPU Yu GPU carries out adaptive decoding to video data
CN106911939A (en) * 2017-01-06 2017-06-30 武汉烽火众智数字技术有限责任公司 A kind of video transcoding method, apparatus and system
CN111510706B (en) * 2020-04-21 2022-03-22 咪咕文化科技有限公司 Hardware encoding and decoding support degree detection method, terminal and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924471A (en) * 2018-09-13 2018-11-30 福建星网智慧科技股份有限公司 A kind of conference system based on QSV fast video encoding and decoding

Also Published As

Publication number Publication date
CN115546329A (en) 2022-12-30

Similar Documents

Publication Publication Date Title
CN103260021B (en) A kind of video encoding/decoding method and device
CN111669577A (en) Hardware decoding detection method and device, electronic equipment and storage medium
CN113542795B (en) Video processing method and device, electronic equipment and computer readable storage medium
CN112087633A (en) Video decoding method, device and storage medium
CN110738657B (en) Video quality evaluation method and device, electronic equipment and storage medium
GB2507554A (en) Encoding diagnostic data in an error message for a computer program
CN112532998B (en) Method, device and equipment for extracting video frame and readable storage medium
CN115546329B (en) Audio and video hardware acceleration transcoding detection method and system
EP3334165A1 (en) Video stream storage method, reading method and device
US20160267624A1 (en) Information terminal and image display system
CN110888791A (en) Log processing method, device, equipment and storage medium
CN107797898B (en) Data acquisition method and device thereof
EP3598738A1 (en) Video synthesis method, apparatus and device, and video playing method, apparatus and device
CN113691834B (en) Video code stream processing method, video coding device and readable storage medium
EP3985989A1 (en) Detection of modification of an item of content
CN113066140A (en) Image encoding method, image encoding device, computer device, and storage medium
CN110730277A (en) Information coding and method and device for acquiring coded information
CN111050179B (en) Video transcoding method and device
CN109769129B (en) Decoding method for preventing analysis failure in automobile liquid crystal instrument
CN111935545B (en) Method, device and equipment for transcoding video data and storage medium
CN110855619A (en) Processing method and device for playing audio and video data, storage medium and terminal equipment
CN110727537A (en) Method and device for uniformly processing response message, computer equipment and storage medium
CN112151069B (en) Voice data processing method, device, computer equipment and storage medium
CN111338932B (en) Picture rendering method and device and electronic equipment
US20080123538A1 (en) System and method for debugging internet protocol phones

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: No. 56 Nanli East Road, Shiqi Town, Panyu District, Guangzhou City, Guangdong Province, 510000

Applicant after: Guangdong Baolun Electronics Co.,Ltd.

Address before: No.19 Chuangyuan Road, Zhongcun street, Panyu District, Guangzhou, Guangdong 510000

Applicant before: GUANGZHOU ITC ELECTRONIC TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant