CN115546329A - Audio and video hardware accelerated transcoding detection method and system - Google Patents

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

Info

Publication number
CN115546329A
CN115546329A CN202211523508.0A CN202211523508A CN115546329A CN 115546329 A CN115546329 A CN 115546329A CN 202211523508 A CN202211523508 A CN 202211523508A CN 115546329 A CN115546329 A CN 115546329A
Authority
CN
China
Prior art keywords
decoding
hardware accelerated
coding
video
equipment
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.)
Granted
Application number
CN202211523508.0A
Other languages
Chinese (zh)
Other versions
CN115546329B (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.)
Guangzhou Baolun Electronics Co Ltd
Original Assignee
Guangzhou 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 Guangzhou Baolun Electronics Co Ltd filed Critical Guangzhou 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses an audio and Video hardware accelerated transcoding detection method and system, which are used for decoding and encoding videos by sequentially calling a decoding method in a database and an encoding method in another database so as to judge whether the decoding method and the encoding method exist in the database and can Decode and encode the videos, if so, detecting a hardware accelerated decoding method and a hardware accelerated encoding method of a GPU-Video Decode utilization rate judgment device corresponding to the decoding method and the encoding method, if not, obtaining a hardware accelerated decoding method and a hardware accelerated encoding method which cannot be carried out by the device, and obtaining a device hardware transcoding result according to the decoding judgment result and the encoding judgment result.

Description

Audio and video hardware accelerated 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 accelerated transcoding detection method and system.
Background
The video transcoding means that a video code stream which is compressed and encoded is converted into another video code stream so as to adapt to different network bandwidths, different terminal processing capacities and different user requirements.
At present, audio and video transcoding generally needs hardware acceleration, if the audio and video transcoding is used, not only is time consumed, but also the utilization rate of a CPU of a device is increased and the device is blocked, but not all devices can support hardware acceleration transcoding, so that it is important to judge whether the devices support hardware acceleration before transcoding.
At present, whether a device has a video card and the type of the video card is determined mainly by checking a configuration file, calling a system function, checking a registry and the like, so as to determine which hardware is used for audio/video hardware accelerated transcoding, but not all devices on the market can systematically detect the type of the video card, and because of the problems of environment configuration, non-mainstream video cards and the like, the detected type of the video card does not conform to the actual situation, and the situation that a hardware acceleration method cannot accelerate can also occur.
Disclosure of Invention
The invention provides an audio and video hardware accelerated transcoding detection method which can judge whether a device supports hardware accelerated transcoding or not in a system environment with complex devices and reduce transcoding failure risks.
In order to solve the technical problem, an embodiment of the present invention provides an audio/video hardware accelerated transcoding detection method, including:
acquiring a test video;
sequentially calling each decoding method in a first database to Decode a test Video, judging whether a decoding method capable of decoding the test Video exists or not, if so, acquiring all decoding methods which are successfully decoded, screening out a decoding method as a hardware accelerated decoding method of the equipment according to the GPU-Video Decode utilization rate corresponding to each decoding method which is successfully decoded, determining that the equipment can perform hardware accelerated decoding according to a first judgment result, and if not, determining that the equipment cannot perform hardware accelerated decoding according to the first judgment result, 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 a coding method capable of coding the test Video exists, if so, acquiring all coding methods with successful coding, screening out a coding method as a hardware accelerated coding method of the equipment according to the GPU-Video Decode usage rate corresponding to each coding method with successful coding, determining that a second judgment result is that the equipment can perform hardware accelerated coding, and if not, determining that the second judgment result is that the equipment cannot perform hardware accelerated coding, wherein a plurality of coding methods are preset in the second database;
and obtaining a detection result of the equipment hardware accelerated transcoding method according to the first judgment result and the second judgment result.
By implementing 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 method in the database so as to judge whether the decoding method exists in the database for decoding the Video, if the decoding method exists, the usage rate of the GPU-Video Decode corresponding to the decoding method is increased, if the usage rate of the GPU-Video Decode is not increased, the judgment result is that the equipment can perform hardware acceleration decoding, if the decoding method does not exist, the judgment result is that the equipment cannot perform hardware acceleration decoding, the Video is encoded by using the encoding method in another database, whether the encoding method exists in the database for encoding the Video is judged, if the encoding method exists, the usage rate of the encoding method for the GPU-Video Decode is detected, whether the coding method increases the corresponding usage rate of the equipment is judged, if the GPU-Video Decode usage rate does not increase transcoding is judged, the judgment result is that the equipment can perform hardware acceleration encoding, if the coding method does not exist, the judgment result is that the equipment cannot perform hardware acceleration decoding according to the hardware acceleration decoding method, the judgment result is judged that the equipment cannot perform hardware acceleration decoding, and the hardware acceleration decoding method fails, and the judgment result is judged that the equipment can not support the equipment, thereby, the hardware.
As a preferred scheme, 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 encoding methods with successful encoding, screening out one encoding method as a hardware accelerated encoding method of the device according to the GPU-Video Decode usage rate corresponding to each encoding method with successful encoding, and determining that the second judgment result is that the device can perform hardware accelerated encoding, specifically:
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 so, detecting whether the GPU-Video Decode utilization rate corresponding to the current decoding method is increased, if so, calling the next decoding method to Decode to judge whether the next decoding method can Decode the test Video, and if not, recording the current decoding method as an equipment hardware accelerated decoding method to obtain a first judgment result that the equipment can perform hardware accelerated decoding.
As a preferred scheme, sequentially calling each coding method in the second database to code the test Video, judging whether a coding method capable of coding the test Video exists, if so, acquiring all coding methods with successful coding, screening out a coding method as a hardware accelerated coding method of the equipment according to the GPU-Video Decode usage rate corresponding to each coding method with successful coding, and determining that the second judgment result is that the equipment can perform hardware accelerated coding, specifically:
sequentially calling a coding method in the first data to code the test video;
judging whether the current coding method can code the test Video, if so, detecting whether the GPU-Video decoder utilization 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, if not, recording the current coding method as an equipment hardware acceleration coding method, and obtaining a first judgment result that the equipment can perform hardware acceleration coding.
As a preferred scheme, obtaining a detection result of the device hardware accelerated transcoding method according to the first determination result and the second determination result, specifically:
if the first judgment result is that the equipment can perform hardware accelerated decoding, and the second judgment result is that the equipment can perform hardware accelerated coding, the equipment can perform hardware accelerated transcoding;
if the first judgment result is that the equipment can not carry out hardware accelerated decoding, and the second judgment result is that the equipment can carry out hardware accelerated coding, the equipment does not use hardware accelerated decoding, and uses hardware accelerated coding;
if the first judgment result is that the equipment can perform hardware accelerated decoding, and the second judgment result is that the equipment can perform hardware accelerated encoding, the hardware accelerated decoding used by the equipment is obtained, and the hardware accelerated encoding is not used;
and if the first judgment result is that the equipment cannot perform hardware accelerated decoding and the second judgment result is that the equipment cannot perform hardware accelerated encoding, the equipment cannot perform hardware accelerated transcoding.
As a preferred scheme, 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.
In order to solve the same technical problem, the invention also provides an audio and video hardware accelerated transcoding detection system, which comprises:
the acquisition module is used for acquiring a test video;
the first judgment module is used for sequentially calling each decoding method in the first database to Decode the test Video, judging whether the 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 accelerated decoding method of the equipment according to the GPU-Video Decode utilization rate corresponding to each decoding method which is successfully decoded, determining that the first judgment result is that the equipment can perform hardware accelerated decoding, and if not, determining that the first judgment result is that the equipment cannot perform hardware accelerated decoding, wherein a plurality of decoding methods are preset in the first database;
the second judgment module is used for sequentially calling each coding method in the second database to code the test Video, judging whether a coding method capable of coding the test Video exists, if so, acquiring all coding methods which are successfully coded, screening out a coding method as a hardware accelerated coding method of the equipment according to the GPU-Video Decode utilization rate corresponding to each coding method which is successfully coded, determining that the second judgment result is that the equipment can carry out hardware accelerated coding, and if not, determining that the second judgment result is that the equipment cannot carry out hardware accelerated coding, wherein a plurality of coding methods are preset in the second database;
and the third judgment module is used for obtaining a detection result of the equipment hardware accelerated transcoding method according to the first judgment result and the second judgment result.
Preferably, the first judging module comprises a calling unit and a judging unit,
the calling unit is used for calling the decoding method in the first data in sequence to decode the test video;
the judgment 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, whether the GPU-Video Decode usage rate corresponding to the current decoding method is increased is detected, if so, the next decoding method is called to Decode to judge whether the next decoding method can Decode the test Video, if not, the current decoding method is recorded as the equipment hardware accelerated decoding method, and the first judgment result is obtained as that the equipment can perform hardware accelerated decoding.
As a preferred solution, to solve the same technical problem, an embodiment of the present invention further provides a terminal device, including: the detection method comprises a processor and a memory, wherein a computer program is stored in the memory and is configured to be executed by the processor, and when the processor executes the computer program, the detection method for the accelerated transcoding of the audio and video hardware is realized.
As a preferred solution, in order to solve the same technical problem, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for detecting accelerated transcoding of audio and video hardware according to the embodiment of the present invention.
The invention provides an audio and Video hardware accelerated transcoding detection method, which comprises the steps of using a prepared Video as a test material for detecting the hardware accelerated capability of the equipment, decoding the Video by sequentially calling decoding methods in a database so as to judge whether a decoding method exists in the database for decoding the Video, if the decoding method exists, decoding the Video, detecting whether the utilization rate of a GPU-Video Decode corresponding to the decoding method is increased, if the utilization rate of the GPU-Video Decode is not increased, obtaining a judgment result that the equipment can perform hardware accelerated decoding, if the decoding method does not exist, obtaining a judgment result that the equipment cannot perform hardware accelerated decoding, encoding the Video by using an encoding method in another database, judging whether an encoding method exists in the database for encoding the Video, if the encoding method exists, encoding the Video, detecting whether the corresponding GPU-Video Decode of the encoding method increases, if the GPU-Video Decode cannot perform hardware accelerated transcoding, obtaining a judgment result that the hardware accelerated transcoding equipment cannot perform hardware decoding, and obtaining a judgment result that the hardware accelerated transcoding equipment cannot perform encoding according to the hardware accelerated transcoding, and obtaining a hardware supporting judgment result that the encoding method fails, thus obtaining a complicated judgment result that the hardware cannot perform hardware decoding risk can be judged according to the hardware.
Drawings
FIG. 1: the method for detecting the accelerated transcoding of the audio and video hardware provided by the embodiment of the invention is a flow diagram;
FIG. 2: another schematic flow diagram of the method for detecting accelerated transcoding of audio/video hardware provided by an embodiment of the present invention is shown;
FIG. 3: the invention provides a structural schematic diagram of an audio and video hardware accelerated transcoding detection system.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be understood that the step numbers used herein are only for convenience of description and are not used as limitations on the order in which the steps are performed.
It is to be understood that the terminology used in the description of the invention herein 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 the described 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 one
Referring to fig. 1, a method for detecting accelerated transcoding of audio/video hardware provided in an embodiment of the present invention includes:
s1, obtaining a test video.
S2, 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 accelerated decoding method of the equipment according to the GPU-Video Decode utilization rate corresponding to each decoding method which is successfully decoded, determining that the equipment can perform hardware accelerated decoding according to a first judgment result, and if not, determining that the equipment cannot perform hardware accelerated decoding according to the first judgment result, 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 Decode usage rate corresponding to the current decoding method is increased, if so, calling the next decoding method to Decode and judging whether the next decoding method can Decode the test Video, if not, recording the current decoding method as an equipment hardware accelerated decoding method, and obtaining a first judgment result that the equipment can perform hardware accelerated decoding.
And S3, sequentially calling each coding method in the second database to code the test Video, judging whether a coding method capable of coding the test Video exists, if so, acquiring all coding methods with successful coding, screening out a coding method as a hardware accelerated coding method of the equipment according to the GPU-Video Decode usage rate corresponding to each coding method with successful coding, determining that the second judgment result is that the equipment can perform hardware accelerated coding, and if not, determining that the second judgment result is that the equipment cannot perform hardware accelerated coding, wherein a plurality of coding methods are preset in the second database.
Further, step S3 specifically includes:
s301, sequentially calling the coding method in the first data to code the test video;
s302, judging whether the current coding method can code a test Video, if the current coding method can code the test Video, detecting whether the GPU-Video Decode utilization 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, if not, recording the current coding method as an equipment hardware acceleration coding method, and obtaining a first judgment result that the equipment can perform hardware acceleration coding.
And S4, obtaining a detection result of the accelerated transcoding method of the equipment hardware 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 accelerated decoding, and the second judgment result is that the equipment can perform hardware accelerated encoding, the obtained equipment can perform hardware accelerated transcoding;
if the first judgment result is that the equipment cannot perform hardware accelerated decoding and the second judgment result is that the equipment can perform hardware accelerated encoding, the equipment does not use hardware accelerated decoding and uses hardware accelerated encoding;
if the first judgment result is that the equipment can perform hardware accelerated decoding, and the second judgment result is that the equipment can perform hardware accelerated encoding, the hardware accelerated decoding used by the equipment is obtained, and the hardware accelerated encoding is not used;
and if the first judgment result is that the equipment cannot perform hardware accelerated decoding and the second judgment result is that the equipment cannot perform hardware accelerated encoding, the equipment cannot perform hardware accelerated transcoding.
Furthermore, the decoding method is all hardware decoding methods supported by the third-party transcoding program;
the coding method is all hardware coding methods supported by the third-party transcoding program.
Referring to fig. 2, based on the foregoing scheme, in order to better understand the method for detecting accelerated transcoding of audio/video hardware according to the embodiment of the present invention, the following detailed description is provided.
Two databases, namely a scene database and a site information database, are prepared in advance, one database stores the hardware decoding method supported by the third-party transcoding program, and the other database stores the 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, a database prepared in advance is used, all hardware decoding methods supported by a transcoding program are stored in the database, and one decoding method is taken out to decode the video;
judging whether the decoding method obtained in the second step is the last one, if so, recording that the equipment cannot perform hardware accelerated decoding and only can use software for decoding, otherwise, decoding by using the decoding method obtained in the second step and detecting the condition of GPU-Video Decode utilization rate in the performance state of the equipment;
step four, detecting the GPU-Video Decode utilization rate in the performance state of the equipment, if the utilization rate is increased, jumping to the step five, otherwise, jumping to the step two;
fifthly, when detecting that the GPU-Video Decode usage rate is increased 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;
seventhly, judging whether the coding method obtained in the sixth step is the last one, if so, recording that the equipment cannot perform hardware accelerated coding and only can use software accelerated coding, and otherwise, performing coding by using the coding method obtained in the sixth step and detecting the condition of GPU-Video Decode utilization rate in the performance state of the equipment;
eighthly, detecting the GPU-Video Decode utilization rate in the performance state of the equipment, jumping to the ninth step if the utilization rate is increased, and jumping to the sixth step if the utilization rate is not increased;
ninth, when the eighth step detects that the GPU-Video Decode usage rate is increased, recording the decoding method as a decoding hardware acceleration method of the device;
and step ten, obtaining the method needed by transcoding of the equipment through the process.
It should be noted that if a decoding method is detected but no encoding method is detected, hardware accelerated decoding is used, hardware accelerated encoding is not used, and soft encoding is used; on the contrary, if the coding method is detected but the decoding method is not detected, hardware accelerated coding is used, hardware accelerated decoding is not used, soft decoding is used, and if the hardware accelerated transcoding method is not detected, the hardware accelerated transcoding method is failed to obtain.
The method comprises the steps of inputting a Video into a device, sequentially calling decoding methods in a database to Decode the Video, judging whether the decoding method exists in the database to Decode the Video, detecting whether the GPU-Video Decode utilization rate corresponding to the decoding method is increased or not if the decoding method exists to Decode the Video, judging whether the device can perform hardware accelerated decoding or not if the GPU-Video Decode utilization rate does not increase, judging whether the device can perform hardware accelerated decoding or not if the decoding method does not exist, detecting whether the device cannot perform hardware accelerated decoding or not if the decoding method does not exist, coding the Video by using a coding method in another database, judging whether the coding method exists in the database to code the Video or not, detecting whether the GPU-Video Decode utilization rate corresponding to the coding method increases or not if the coding method exists to code the Video, judging whether the device can perform hardware transcoding accelerated coding or not if the coding method does not exist, judging whether the device cannot perform hardware accelerated coding or not according to the GPU-Video Decode utilization rate does not increase, judging whether the device can perform hardware transcoding and the hardware accelerated coding system can judge whether the hardware transcoding system can support the hardware coding method and the hardware coding method can not accurately judge whether the hardware.
Example two
Correspondingly, referring to fig. 3, fig. 3 is a schematic structural diagram of an audio/video hardware accelerated transcoding detection system provided by the present invention, and as shown in fig. 3, the audio/video hardware accelerated transcoding detection system includes:
an obtaining module 301, configured to obtain a test video;
the first judgment module 302 is configured to sequentially call 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 there is a decoding method, obtain all decoding methods that are successfully decoded, and screen out a decoding method as a hardware accelerated decoding method of the device according to a GPU-Video Decode usage rate corresponding to each decoding method that is successfully decoded, determine that the first judgment result is that the device can perform hardware accelerated decoding, and if there is no decoding method, determine that the first judgment result is that the device cannot perform hardware accelerated decoding, where a plurality of decoding methods are preset in the first database;
a second determination module 303, configured to sequentially call each coding method in the second database to code the test Video, determine whether a coding method capable of coding the test Video exists, if yes, obtain all coding methods that are successfully coded, and screen out a coding method as a hardware acceleration coding method of the device according to a GPU-Video Decode usage rate corresponding to each coding method that is successfully coded, determine that the second determination result is that the device can perform hardware acceleration coding, and if not, determine that the second determination result is that the device cannot perform hardware acceleration coding, where a plurality of coding methods are preset in the second database;
the third determining module 304 is configured to obtain a detection result of the device hardware accelerated transcoding method according to the first determining result and the second determining result.
In this embodiment, the first judging module 302 includes a calling unit 3021 and a judging unit 3022,
the calling unit 3021 is configured to sequentially call a decoding method in the first data to decode the test video;
the judging unit 3022 is configured to judge whether the current decoding method can Decode the test Video, detect whether the usage rate of the GPU-Video Decode corresponding to the current decoding method increases if the current decoding method can Decode the test Video, call a next decoding method to Decode if the usage rate increases, judge whether the next decoding method can Decode the test Video, and record the current decoding method as the device hardware accelerated decoding method if the usage rate does not increase, so as to obtain a first judgment result that the device can perform hardware accelerated decoding.
EXAMPLE III
Correspondingly, the audio and video hardware accelerated transcoding detection electronic equipment provided by the invention comprises: the detection method 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 executes the operation corresponding to the audio and video hardware accelerated transcoding detection method as shown in the first embodiment of the application.
Example four
Accordingly, the present invention provides a computer-readable storage medium, on which a computer-executable program is stored, where the program, when executed by a processor, implements the method for detecting accelerated transcoding of audio/video hardware shown in the present application.
Compared with the prior art, the method comprises the steps of inputting a Video into a device, sequentially calling decoding methods in a database to Decode the Video, judging whether the decoding method exists in the database to Decode the Video, detecting whether the GPU-Video Decode utilization rate corresponding to the decoding method is increased or not if the decoding method exists to Decode the Video, judging whether the device can perform hardware accelerated decoding or not if the GPU-Video Decode utilization rate does not increase, detecting whether the device cannot perform hardware accelerated decoding or not if the decoding method does not exist, coding the Video by using a coding method in another database, judging whether the coding method exists in the database to code the Video or not, detecting whether the GPU-Video Decode utilization rate corresponding to the coding method is increased or not if the coding method exists to code the Video, judging whether the transcoding device can perform hardware accelerated coding or not if the coding method does not exist, judging whether the device cannot perform hardware accelerated coding or not according to the coding method and the hardware accelerated decoding result cannot be increased or not, judging whether the transcoding device can perform hardware accelerated coding according to the hardware decoding result and the hardware accelerated decoding result can not support the hardware.
The above-mentioned embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, and it should be understood that the above-mentioned embodiments are only examples of the present invention and are not intended to limit the scope of the present invention. It should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. An audio and video hardware accelerated transcoding detection method is characterized by comprising the following steps:
acquiring a test video;
sequentially calling each decoding method in a 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 accelerated decoding method of the equipment according to the GPU-Video Decode utilization rate corresponding to each decoding method which is successfully decoded, determining that the equipment can perform hardware accelerated decoding according to a first judgment result, and if not, determining that the equipment cannot perform hardware accelerated decoding according to the first judgment result, 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 a coding method capable of coding the test Video exists, if so, acquiring all coding methods with successful coding, screening out a coding method as a hardware accelerated coding method of the equipment according to the GPU-Video Decode usage rate corresponding to each coding method with successful coding, determining that a second judgment result is that the equipment can perform hardware accelerated coding, and if not, determining that the second judgment result is that the equipment cannot perform hardware accelerated coding, wherein a plurality of coding methods are preset in the second database;
and obtaining a detection result of the equipment hardware accelerated transcoding method according to the first judgment result and the second judgment result.
2. The method for detecting hardware accelerated transcoding of audio/Video according to claim 1, wherein the method sequentially calls each decoding method in the first database to Decode the test Video, determines whether a decoding method capable of decoding the test Video exists, if so, obtains all encoding methods that are successfully encoded, and screens out an encoding method as the hardware accelerated encoding method of the device according to a GPU-Video Decode usage rate corresponding to each encoding method that is successfully encoded, and determines that the second determination result is that the device can perform hardware accelerated encoding, specifically:
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 Decode usage rate corresponding to the current decoding method is increased, if not, calling the next decoding method to Decode and judging whether the next decoding method can Decode the test Video, if so, recording the current decoding method as an equipment hardware accelerated decoding method, and obtaining a first judgment result that the equipment can perform hardware accelerated decoding.
3. The method for detecting hardware accelerated transcoding of audio and Video according to claim 1, wherein the method sequentially calls each encoding method in a second database to encode the test Video, determines whether an encoding method capable of encoding the test Video exists, if yes, obtains all encoding methods that are successfully encoded, screens out an encoding method as the hardware accelerated encoding method of the device according to a GPU-Video Decode usage rate corresponding to each encoding method that is successfully encoded, and determines that a second determination result is that the device can perform hardware accelerated encoding, specifically:
sequentially calling coding methods in the first data to code the test video;
judging whether the current coding method can code the test Video, if so, detecting whether the GPU-Video Decode usage 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, if so, recording the current coding method as an equipment hardware accelerated coding method, and obtaining a first judgment result as that the equipment can perform hardware accelerated coding.
4. The audio/video hardware accelerated transcoding detection method according to claim 1, wherein the obtaining of the detection result of the device hardware accelerated transcoding method according to the first determination result and the second determination result specifically includes:
if the first judgment result is that the equipment can perform hardware accelerated decoding, and the second judgment result is that the equipment can perform hardware accelerated coding, the equipment can perform hardware accelerated transcoding;
if the first judgment result is that the equipment cannot perform hardware accelerated decoding, and the second judgment result is that the equipment can perform hardware accelerated coding, the equipment does not use hardware accelerated decoding, and uses hardware accelerated coding;
if the first judgment result is that the equipment can perform hardware accelerated decoding, and the second judgment result is that the equipment can perform hardware accelerated coding, acquiring that the equipment uses hardware accelerated decoding and does not use hardware accelerated coding;
and if the first judgment result is that the equipment cannot perform hardware accelerated decoding, and the second judgment result is that the equipment cannot perform hardware accelerated coding, the equipment cannot perform hardware accelerated transcoding.
5. The audio and video hardware accelerated transcoding detection method of 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 a third party transcoding program.
6. An audio and video hardware accelerated transcoding detection system, comprising:
the acquisition module is used for acquiring a test video;
the first judgment module is used for 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 accelerated decoding method of the equipment according to the GPU-Video Decode utilization rate corresponding to each decoding method which is successfully decoded, determining that the equipment can perform hardware accelerated decoding according to a first judgment result, and if not, determining that the equipment cannot perform hardware accelerated decoding according to the first judgment result, wherein a plurality of decoding methods are preset in the first database;
the second judgment module is used for sequentially calling each coding method in a second database to code the test Video, judging whether a coding method capable of coding the test Video exists, if so, acquiring all coding methods which are successfully coded, screening out a coding method as a hardware accelerated coding method of the equipment according to the GPU-Video Decode utilization rate corresponding to each coding method which is successfully coded, determining that the equipment can carry out hardware accelerated coding according to a second judgment result, and if not, determining that the equipment cannot carry out hardware accelerated coding according to the second judgment result, wherein a plurality of coding methods are preset in the second database;
and the third judging module is used for obtaining a detection result of the equipment hardware accelerated transcoding method according to the first judging result and the second judging result.
7. The audio/video hardware accelerated transcoding detection system of claim 6, wherein the first determination module comprises a call unit and a determination unit,
the calling unit is used for calling the decoding method in the first data in sequence to decode the test video;
the judgment 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 Decode utilization 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 an equipment hardware accelerated decoding method to obtain a first judgment result that the equipment can perform hardware accelerated decoding.
8. A terminal device, comprising: a processor and a memory, and a control unit,
the memory has a computer program stored therein and configured to be executed by the processor, the processor implementing the audio/video hardware accelerated transcoding detection method as claimed in any of claims 1 to 5 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored, the computer program being executable by a processor to implement the method for audio video hardware accelerated transcoding detection as claimed in any of claims 1 to 5.
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 true CN115546329A (en) 2022-12-30
CN115546329B 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 (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090060032A1 (en) * 2007-05-11 2009-03-05 Advanced Micro Devices, Inc. Software Video Transcoder with GPU Acceleration
CN102970525A (en) * 2011-09-01 2013-03-13 深圳市快播科技有限公司 Optimized decoding processing method, device and system of mobile terminal player
CN103260021A (en) * 2012-02-21 2013-08-21 腾讯科技(深圳)有限公司 Method and device for decoding videos
US20130279602A1 (en) * 2012-04-24 2013-10-24 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
CN108924471A (en) * 2018-09-13 2018-11-30 福建星网智慧科技股份有限公司 A kind of conference system based on QSV fast video encoding and decoding
CN111510706A (en) * 2020-04-21 2020-08-07 咪咕文化科技有限公司 Hardware encoding and decoding support degree detection method, terminal and storage medium
US20200329250A1 (en) * 2016-06-29 2020-10-15 Intel Corporation Encoding and Decoding Video

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090060032A1 (en) * 2007-05-11 2009-03-05 Advanced Micro Devices, Inc. Software Video Transcoder with GPU Acceleration
CN102970525A (en) * 2011-09-01 2013-03-13 深圳市快播科技有限公司 Optimized decoding processing method, device and system of mobile terminal player
CN103260021A (en) * 2012-02-21 2013-08-21 腾讯科技(深圳)有限公司 Method and device for decoding videos
US20130279602A1 (en) * 2012-04-24 2013-10-24 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
US20200329250A1 (en) * 2016-06-29 2020-10-15 Intel Corporation Encoding and Decoding Video
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
CN108924471A (en) * 2018-09-13 2018-11-30 福建星网智慧科技股份有限公司 A kind of conference system based on QSV fast video encoding and decoding
CN111510706A (en) * 2020-04-21 2020-08-07 咪咕文化科技有限公司 Hardware encoding and decoding support degree detection method, terminal and storage medium

Also Published As

Publication number Publication date
CN115546329B (en) 2023-05-16

Similar Documents

Publication Publication Date Title
CN109885256B (en) Data storage method, device and medium based on data slicing
CN112087633B (en) Video decoding method, device and storage medium
CN110740313B (en) Hardware coding capability detection method and device
CN105740088B (en) Flash memory data error correction method and device
CN111669577A (en) Hardware decoding detection method and device, electronic equipment and storage medium
CN106201783B (en) A kind of data reconstruction method and device
CN110198427B (en) Video call method and device
CN111327913A (en) Message processing method and device and electronic equipment
CN107103632B (en) Image compression method and device
CN103618786A (en) Playing error processing method and server
CN113064751B (en) Encoding and decoding method, device, equipment and storage medium based on erasure correction pool
CN115546329A (en) Audio and video hardware accelerated transcoding detection method and system
CN113066140A (en) Image encoding method, image encoding device, computer device, and storage medium
CN112416735B (en) Application program detection method and device, terminal equipment and storage medium
CN113314128B (en) Delayed access method, device and system for voice service and related products
CN113691834B (en) Video code stream processing method, video coding device and readable storage medium
CN112151069B (en) Voice data processing method, device, computer equipment and storage medium
CN112446191B (en) Text processing method, device, equipment and storage medium
CN109769129B (en) Decoding method for preventing analysis failure in automobile liquid crystal instrument
CN110704157B (en) Application starting method, related device and medium
CN113553566A (en) Account locking method and device, electronic equipment and computer readable storage medium
CN114363609B (en) Decoding control method, device, decoding equipment and storage medium
CN114827640B (en) Secure real-time encoding and transcoding method and apparatus, device and storage medium
KR20070020965A (en) Module for decerning received message using animation icon and Mobile communication terminal having the module, and for displaying the message using the them
CN111935545B (en) Method, device and equipment for transcoding video data and storage medium

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