CN114697299A - Audio and video transcoding priority determination method, system, device and storage medium - Google Patents

Audio and video transcoding priority determination method, system, device and storage medium Download PDF

Info

Publication number
CN114697299A
CN114697299A CN202210422138.5A CN202210422138A CN114697299A CN 114697299 A CN114697299 A CN 114697299A CN 202210422138 A CN202210422138 A CN 202210422138A CN 114697299 A CN114697299 A CN 114697299A
Authority
CN
China
Prior art keywords
transcoding
definition
video
audio
priority
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
CN202210422138.5A
Other languages
Chinese (zh)
Other versions
CN114697299B (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.)
Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Original Assignee
Hunan Happly Sunshine Interactive Entertainment Media 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 Hunan Happly Sunshine Interactive Entertainment Media Co Ltd filed Critical Hunan Happly Sunshine Interactive Entertainment Media Co Ltd
Priority to CN202210422138.5A priority Critical patent/CN114697299B/en
Publication of CN114697299A publication Critical patent/CN114697299A/en
Application granted granted Critical
Publication of CN114697299B publication Critical patent/CN114697299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/6215Individual queue per QOS, rate or priority

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The embodiment of the invention provides a method, a system, a device and a storage medium for determining audio and video transcoding priority, wherein the method comprises the following steps: the method comprises the steps of obtaining basic information of a task to be transcoded, obtaining attribute parameters of the audio and the video according to a source address, determining an initial definition mark of the audio and the video indicated by the source address based on a code rate, a resolution and a quality grade, determining a target definition coding format of the audio and the video indicated by the source address based on a program grade and the initial definition mark, and determining the transcoding priority of the task to be transcoded based on an initial priority, a time length, the target definition coding format and coding parameters. The method and the device determine the transcoding priority based on the parameters such as the target definition encoding format, the time length and the like, can improve the accuracy of the determined transcoding priority, and can improve the distribution accuracy of the transcoding resources by allocating the transcoding resources according to the transcoding priority and regulating the execution sequence of the tasks to be transcoded, thereby improving the transcoding efficiency. Therefore, the invention improves the transcoding efficiency of the audio and video.

Description

Audio and video transcoding priority determination method, system, device and storage medium
Technical Field
The invention relates to the technical field of audio and video transcoding, in particular to a method, a system and a device for determining audio and video transcoding priority and a storage medium.
Background
Transcoding refers to an operation of encoding and outputting the content of the original audio and video into a uniform format. In the prior art, when a large number of tasks to be transcoded are faced, the tasks to be transcoded are usually executed in sequence according to a priority order (high priority is processed first, and peers execute first-in first-out) set by a superior system. However, when the task to be transcoded is executed, a large amount of computing resources need to be allocated to the task, and a long transcoding time is occupied due to problems of an excessively large encoding format or data amount and the like. The priority assigned by the prior art does not consider the problems of resource allocation and transcoding time generated when the task to be transcoded is executed. Therefore, in the prior art, under the working condition of high concurrent transcoding, the task accumulation phenomenon is easy to generate, and the transcoding efficiency is low.
Disclosure of Invention
The embodiment of the invention aims to provide a method, a system, a device and a storage medium for determining audio and video transcoding priority, so as to achieve the purpose of improving the transcoding efficiency by adjusting the transcoding priority of a task to be transcoded. The specific technical scheme is as follows:
an audio and video transcoding priority determination method, the method comprising:
acquiring basic information of a task to be transcoded, wherein the basic information comprises: the source address carried by the task to be transcoded, the initial priority of the task to be transcoded and the program grade. The source address is a storage address of the audio and video.
Obtaining attribute parameters of the audio and video according to the source address, wherein the attribute parameters comprise: and the time length, code rate, resolution and quality grade of the audio and video.
And determining the initial definition identification of the audio and video indicated by the source address based on the code rate, the resolution and the quality level.
And determining the target definition coding format of the audio and video indicated by the source address based on the program grade and the initial definition identification.
And determining the transcoding priority of the task to be transcoded based on the initial priority, the time length, the target definition coding format and the coding parameters, wherein the coding parameters and the initial definition identification have corresponding relations.
Optionally, the determining, based on the code rate, the resolution, and the quality level, the initial definition identifier of the audio and video indicated by the source address includes:
and taking the numerical value of the code rate, the numerical value of the resolution ratio and the numerical value of the quality grade as a first query sample, searching a definition identification group matched with the first query sample from a preset definition identification table by utilizing a first preset table look-up algorithm, and determining definition identifications in the definition identification group as the initial definition identifications, wherein the initial definition identification group comprises at least one type of definition identifications.
Optionally, the determining, based on the program level and the initial definition identifier, a target definition encoding format of the audio and video indicated by the source address includes:
and determining a definition coding format group corresponding to the program level, and determining definition coding formats in the definition coding format group as the target definition coding format, wherein the definition coding format group comprises not less than one type of definition coding formats.
Optionally, the determining the transcoding priority of the task to be transcoded based on the initial priority, the duration, the target definition encoding format, and the encoding parameter includes:
and taking the numerical value of the initial priority, the numerical value of the time length, the target definition coding format and the numerical value of the coding parameter as a second query sample, searching a transcoding priority matched with the second query sample from a preset transcoding priority table by utilizing a second preset table look-up algorithm, and determining the transcoding priority as the transcoding priority of the task to be transcoded.
Optionally, the method further includes:
and transferring the task to be transcoded to a transcoding task queue corresponding to the transcoding priority according to the transcoding priority and a preset transcoding task scheduling rule so as to transcode the audio and video indicated by the source address carried by the task to be transcoded.
An audio-video transcoding prioritization system, the system comprising:
the first data acquisition module is used for acquiring basic information of a task to be transcoded, wherein the basic information comprises: the source address carried by the task to be transcoded, the initial priority of the task to be transcoded and the program grade. The source address is a storage address of the audio and video.
A second data obtaining module, configured to obtain attribute parameters of the audio and video according to the source address, where the attribute parameters include: and the time length, code rate, resolution and quality grade of the audio and video.
And the first parameter determining module is used for determining the initial definition identifier of the audio and video indicated by the source address based on the code rate, the resolution and the quality level.
And the second parameter determining module is used for determining the target definition coding format of the audio and video indicated by the source address based on the program grade and the initial definition identification.
And the priority determining module is used for determining the transcoding priority of the task to be transcoded based on the initial priority, the time length, the target definition coding format and the coding parameters, wherein the coding parameters and the initial definition mark have a corresponding relation.
Optionally, the first parameter determining module is configured to:
and taking the numerical value of the code rate, the numerical value of the resolution ratio and the numerical value of the quality grade as a first query sample, searching a definition identification group matched with the first query sample from a preset definition identification table by utilizing a first preset table look-up algorithm, and determining definition identifications in the definition identification group as the initial definition identifications, wherein the initial definition identification group comprises at least one type of definition identifications.
Optionally, the second parameter determining module is configured to:
and determining a definition coding format group corresponding to the program level, and determining definition coding formats in the definition coding format group as the target definition coding format, wherein the definition coding format group comprises not less than one type of definition coding formats.
Optionally, the priority determination module is configured to:
and taking the numerical value of the initial priority, the numerical value of the time length, the target definition coding format and the numerical value of the coding parameter as a second query sample, searching a transcoding priority matched with the second query sample from a preset transcoding priority table by utilizing a second preset table look-up algorithm, and determining the transcoding priority as the transcoding priority of the task to be transcoded.
Optionally, the system further includes:
and the audio and video transcoding module is used for transferring the task to be transcoded to a transcoding task queue corresponding to the transcoding priority according to the transcoding priority and a preset transcoding task scheduling rule so as to transcode the audio and video indicated by the source address carried by the task to be transcoded.
A video transcoding prioritization apparatus, the apparatus comprising:
a processor;
a memory for storing the processor-executable instructions.
Wherein the processor is configured to execute the instructions to implement the video transcoding prioritization method of any of the above.
A computer readable storage medium having instructions which, when executed by a processor of a video transcoding prioritization apparatus, enable the video transcoding prioritization apparatus to perform a video transcoding prioritization method as claimed in any one of the above.
According to the method, the system, the device and the storage medium for determining the audio and video transcoding priority, the target definition encoding format of the audio and video is determined according to the initial definition identification and the program level, and the target definition encoding format is used as one of the parameters for determining the transcoding priority, so that when a transcoding system executes the task to be transcoded according to the transcoding priority, transcoding resources can be allocated according to different transcoding priorities, the execution sequence of the task to be transcoded is regulated, and the transcoding efficiency is improved. Meanwhile, the time length of the audio and video is used as another parameter for determining the transcoding priority, and the audio and video are classified according to the time length, so that the accuracy of the determined transcoding priority can be improved, the distribution accuracy of transcoding resources during the execution of the task to be transcoded is improved, and the transcoding efficiency is improved. Therefore, the invention can achieve the purpose of improving the audio and video transcoding efficiency.
Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for determining audio/video transcoding priority according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a preset transcoding priority table according to an alternative embodiment of the present invention;
fig. 3 is a flowchart of executing a task to be transcoded according to an alternative embodiment of the present invention;
fig. 4 is a block diagram of an audio/video transcoding priority determining system according to an embodiment of the present invention;
fig. 5 is a block diagram of an apparatus for determining audio/video transcoding priority according to an embodiment of the present invention.
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.
The embodiment of the invention provides a method for determining audio and video transcoding priority, which comprises the following steps of:
s101, obtaining basic information of a task to be transcoded, wherein the basic information comprises: the source address carried by the task to be transcoded, the initial priority of the task to be transcoded and the program grade. The source address is the storage address of the audio and video.
Optionally, in an optional embodiment of the present invention, the source address may be a storage path of an audio/video, or an access path of an audio/video. The initial priority and the program rating may be priorities set by an upstream system of the transcoding system when generating the task to be transcoded. For example, when the upstream system detects that the historical audience rating of the audio/video to be transcoded is greater than a preset threshold, the initial priority and the program level of the task to be transcoded corresponding to the audio/video are respectively set to be the levels corresponding to the preset threshold.
Optionally, in another optional embodiment of the present invention, the basic information may further include a task identifier of a task to be transcoded, where the task identifier may be used to distinguish different tasks to be transcoded when interacting between systems.
S102, obtaining attribute parameters of the audio and video according to the source address, wherein the attribute parameters comprise: duration, code rate, resolution and quality level of the audio and video.
Optionally, in an optional embodiment of the present invention, the code rate of the audio/video is a number of data bits transmitted in unit time when the audio/video data is transmitted. The code rate of the audio and video is positively correlated with the playing quality of the audio and video, and the code rate of the audio and video is positively correlated with the file size of the audio and video. The resolution of the audio and video can be a parameter for measuring the image or audio definition. The quality grade of the audio and video can be a parameter determined by an upstream system by searching a preset quality grade table according to the code rate and the resolution of the audio and video.
S103, determining the initial definition identification of the audio and video indicated by the source address based on the code rate, the resolution and the quality level.
Optionally, in an alternative embodiment of the present invention, the types of the initial sharpness identifier include, but are not limited to: blue light, ultra-clear, high-definition, standard-definition, smooth, lossless and the like.
And S104, determining the target definition coding format of the audio and video indicated by the source address based on the program grade and the initial definition identification.
Optionally, in an optional embodiment of the present invention, the target definition encoding format may be used to transcode the audio and video indicated by the source address into an audio and video file with the target definition and the target encoding format. Types of the target encoding format include, but are not limited to: high Efficiency Video Coding (HEVC), Advanced Video Coding (AVC), and Advanced Audio Coding (AAC).
Optionally, when the audio and video is transcoded, the number of the transcoding resources occupied by different definitions and different coding formats is different, for example, the compression ratio of the HEVC coding format is higher than that of the AVC format, but the transcoding efficiency of the HEVC format is lower than that of the AVC format, so that when the audio and video with the coding format of the HEVC format is transcoded, a large number of transcoding resources need to be allocated to the audio and video, and the transcoding time length of the audio and video is longer than that of the AVC format. Under the high concurrent transcoding working condition, if the head file of the transcoding queue occupies too many transcoding resources and transcoding duration, the transcoding queue has the risk of queue accumulation, and the transcoding efficiency is reduced. Therefore, the target definition encoding format is determined according to different program grades and different initial definition marks, and the transcoding priority is determined based on the target definition encoding format, so that the transcoding system can allocate different transcoding resources to tasks to be transcoded with different transcoding priorities, and the transcoding efficiency is improved.
For example, in the case that the initial definition of the video indicated by the source address is identified as blue light, super definition, high definition, standard definition, and smooth, and the program level of the video is the highest level, then the target definition encoding format of the video is: blue-light HEVC, super-definition HEVC, high-definition HEVC, standard-definition HEVC, smooth HEVC, blue-light AVC, super-definition AVC, high-definition AVC, standard-definition AVC and smooth AVC. If the initial definition of the video indicated by the source address is marked as standard definition and smooth, and the program level of the video is the lowest level, then the target definition format of the video is: standard definition AVC and smooth AVC. The transcoding system can allocate the transcoding resources saved by the task to be transcoded with the program grade of the lowest grade to the task to be transcoded with the program grade of the highest grade, so that the transcoding efficiency of the task to be transcoded with the program grade of the highest grade is improved.
And S105, determining the transcoding priority of the task to be transcoded based on the initial priority, the duration, the target definition coding format and the coding parameters, wherein the coding parameters and the initial definition identification have a corresponding relation.
Optionally, in an optional embodiment of the present invention, the duration may be used to distinguish a type of audio/video indicated by the source address. The type of the audio-video may be long video or short video. For example, a movie with a duration of two hours is determined as a long video, and a small video with a duration of one minute is determined as a short video. The transcoding resources and the transcoding duration occupied by the long video and the short video are different. Therefore, the accuracy of the finally determined transcoding priority can be improved by taking the time length as the parameter for determining the transcoding priority, so that the allocation accuracy of transcoding resources is improved when the transcoding system executes the task to be transcoded according to the transcoding priority, and the transcoding efficiency is improved.
Optionally, in another optional embodiment of the present invention, the initial priority may be used to check the determined transcoding priority. For example, assume that the initial priority of the task to be transcoded is the highest priority, but the transcoding priority that is finally determined is the lowest priority. At this time, in order to avoid the risk of misalignment of the transcoding priority due to parameter errors, an abnormal event report may be generated based on the initial priority and the transcoding priority, and the abnormal event report may be sent to the upstream system, so that the worker may perform a verification on the related data according to the abnormal event report. According to the invention, the initial priority is used as the parameter for determining the transcoding priority, so that the accuracy of the transcoding priority can be verified, the accuracy of the determined transcoding priority is improved, and the transcoding efficiency is improved.
It should be noted that the encoding parameters may be internal control parameters of an audio/video encoder in the transcoding system. The specific numerical value and type of the coding parameter can be set by self according to the actual application scene, and the invention does not limit and describe the specific numerical value and type.
According to the method, the system, the device and the storage medium for determining the audio and video transcoding priority, the target definition encoding format of the audio and video is determined according to the initial definition identification and the program level, and the target definition encoding format is used as one of the parameters for determining the transcoding priority, so that when a transcoding system executes the task to be transcoded according to the transcoding priority, transcoding resources can be allocated according to different transcoding priorities, the execution sequence of the task to be transcoded is regulated, and the transcoding efficiency is improved. Meanwhile, the audio and video time length is used as another parameter for determining the transcoding priority, and the audio and video are classified according to the time length, so that the accuracy of the determined transcoding priority can be improved, the distribution accuracy of transcoding resources during the execution of the task to be transcoded is improved, and the transcoding efficiency is improved. Therefore, the invention can achieve the purpose of improving the audio and video transcoding efficiency.
Optionally, determining the initial definition identifier of the audio/video indicated by the source address based on the code rate, the resolution and the quality level includes:
the method comprises the steps of taking a numerical value of a code rate, a numerical value of resolution and a numerical value of a quality grade as a first query sample, searching a definition identification group matched with the first query sample from a preset definition identification table by utilizing a first preset table look-up algorithm, and determining definition identifications in the definition identification group as initial definition identifications, wherein the initial definition identification group comprises at least one type of definition identifications.
The preset definition identification table may be a data table constructed according to historical transcoding data.
Optionally, determining a target definition encoding format of the audio/video indicated by the source address based on the program level and the initial definition identifier includes:
determining a definition coding format group corresponding to the program level, and determining definition coding formats in the definition coding format group as target definition coding formats, wherein the definition coding format group comprises not less than one type of definition coding formats.
Optionally, determining the transcoding priority of the task to be transcoded based on the initial priority, the duration, the target definition encoding format, and the encoding parameters includes:
and taking the numerical value of the initial priority, the numerical value of the duration, the numerical value of the target definition coding format and the numerical value of the coding parameter as a second query sample, searching the transcoding priority matched with the second query sample from a preset transcoding priority table by utilizing a second preset table look-up algorithm, and determining the transcoding priority as the transcoding priority of the task to be transcoded.
Optionally, in an optional embodiment of the present invention, the first preset table lookup algorithm and the second preset table lookup algorithm may be the same type of algorithm, or may be different types of algorithms. Types of such algorithms include, but are not limited to: interpolation lookup algorithm, fibonacci lookup algorithm, ordered table lookup algorithm, and the like. The invention is not so limited.
It should be noted that, in practical applications, the above-mentioned searching for the transcoding priority matching the second query sample from the preset transcoding priority table by using the second preset table lookup algorithm, and determining the transcoding priority as the transcoding priority of the task to be transcoded has various embodiments, and an exemplary method herein provides one of:
the table shown in fig. 2 is a schematic diagram of the preset transcoding priority table. The line headings in the figure are initial priority, short video, long video, and transcoding priority, respectively. The columns in the figure are headed by the respective type of sharpness coding format.
Assume that, in the table shown in fig. 2, the initial priority ranges from 1 to 5, and the duration threshold is 5. Assume that there are currently two tasks to be transcoded: a task a and a task b. The initial priority of the first task is 3, the duration is 3 minutes, the target definition coding format is high-definition AVC, and the coding parameter is 1. The initial priority of the task B is 5, the duration is 20 minutes, the target definition coding format is blue-light HEVC, and the coding parameter is 1.
For the first task: since the duration of the first task is less than the duration threshold, the audio and video corresponding to the first task is determined as a short video, and the corresponding position in the table shown in fig. 2 is represented by 1. And determining the transcoding priority of the first task from the preset transcoding priority table according to a second query sample of the first task by using a second preset table look-up algorithm, wherein the transcoding priority of the first task is 53.
For the task B: since the time length of the task B is greater than the time length threshold, the audio and video corresponding to the task B is determined as a long video, and the corresponding position in the table shown in FIG. 2 is represented by 1. And determining the transcoding priority of the task B from the preset transcoding priority table according to a second query sample of the task B by using a second preset table look-up algorithm, wherein the transcoding priority of the task B is 57.
Optionally, in this example, since the encoding parameters of the task a and the task b are consistent, for convenience of description, the encoding parameters are listed in the preset transcoding priority table shown in fig. 2.
Optionally, the method shown in fig. 1 further includes:
and transferring the task to be transcoded to a transcoding task queue corresponding to the transcoding priority according to the transcoding priority and a preset transcoding task scheduling rule so as to transcode the audio and video indicated by the source address carried by the task to be transcoded.
It should be noted that, in practical application, in accordance with the transcoding priority and the preset transcoding task scheduling rule, the task to be transcoded is transferred to the transcoding task queue corresponding to the transcoding priority, so as to transcode the audio and video indicated by the source address carried by the task to be transcoded, there may be a plurality of implementation manners, and an exemplary embodiment herein provides one of:
for convenience of description, the transcoding system is configured with a first transcoding task queue and a second transcoding task queue. And adding all the tasks to be transcoded with the determined transcoding priority into the first transcoding queue. The specific implementation of executing the task to be transcoded is shown in fig. 3:
step S301, the transcoding system executes each task to be transcoded in the first transcoding task queue according to a first preset transcoding rule. And triggers step S302.
Optionally, the first preset transcoding rule may be: and sequentially executing the tasks to be transcoded according to the first-in first-out sequence for the tasks to be transcoded with the transcoding priority not greater than the first preset threshold. And when the tasks to be transcoded with the transcoding priority being greater than the first preset threshold do not exist in the first transcoding task queue, executing the tasks to be transcoded in sequence according to the transcoding priority from low to high.
And step S302, judging whether the second transcoding task queue is empty or not. If so, step S303 is triggered, otherwise, step S307 is triggered.
Step S303, traversing the first transcoding task queue, and acquiring the to-be-transcoded task with the transcoding priority greater than a second preset threshold and the time length greater than a third preset threshold. And triggers step S304.
And step S304, splitting the audio and the video corresponding to the task to be transcoded according to a preset audio and video splitting rule and a numerical value of a third preset threshold. And obtaining a plurality of subtasks to be transcoded. And triggers step S305.
Optionally, the implementation of step S304 shown in fig. 3 may be: assume that the third preset threshold is 5 in minutes. And the time length of the audio and video corresponding to the task to be transcoded is 13 minutes. After the audio and video are split according to the preset audio and video splitting rule, two sub tasks to be transcoded with the audio and video duration of 5 and one sub task to be transcoded with the audio and video duration of 3 can be obtained.
Optionally, the transcoding priority of each sub task to be transcoded, obtained in step S304 shown in fig. 3, is the same as the transcoding priority of the task to be transcoded before splitting.
And S305, adding each subtask to be transcoded into a second transcoding task queue, and sequentially executing each subtask to be transcoded in the second transcoding task queue according to a second preset transcoding rule. And triggers step S306.
And S306, after all the subtasks to be transcoded are executed, merging operation is executed on the audio and video corresponding to all the code subtasks, and the audio and video file obtained after merging operation is sent to an upstream system. Triggering step S302.
And step S307, judging whether idle transcoding resources exist in the transcoding system. If yes, step S308 is triggered. If not, step S309 is triggered.
And step S308, calling the idle transcoding resources, and sequentially executing the tasks to be transcoded in the second transcoding task queue according to a second preset transcoding rule. And triggers step S302.
Step S309 waits for the start of timing. Triggering step S310.
Step S310, determining whether the waiting time is equal to a preset time threshold, if yes, triggering step S307, and if no, triggering step S309.
Alternatively, an alternative embodiment of the present invention as shown in fig. 3 and described above may be implemented by a transcoding system or transcoding cluster.
Corresponding to the above method embodiment, the present invention further provides an audio/video transcoding priority determining system, as shown in fig. 4, the system includes:
the first data obtaining module 401 is configured to obtain basic information of a task to be transcoded, where the basic information includes: the source address carried by the task to be transcoded, the initial priority of the task to be transcoded and the program grade. The source address is the storage address of the audio and video.
A second data obtaining module 402, configured to obtain attribute parameters of the audio and video according to the source address, where the attribute parameters include: duration, code rate, resolution and quality grade of the audio and video.
The first parameter determining module 403 determines the initial definition identifier of the audio/video indicated by the source address based on the code rate, the resolution and the quality level.
And the second parameter determining module 404 determines the target definition encoding format of the audio/video indicated by the source address based on the program grade and the initial definition identifier.
The priority determination module 405 determines a transcoding priority of the task to be transcoded based on the initial priority, the duration, the target definition encoding format, and the encoding parameters, where the encoding parameters and the initial definition identifier have a corresponding relationship.
Optionally, the first parameter determining module 403 is configured to:
the method comprises the steps of taking a numerical value of a code rate, a numerical value of resolution and a numerical value of a quality grade as a first query sample, searching a definition identification group matched with the first query sample from a preset definition identification table by utilizing a first preset table look-up algorithm, and determining definition identifications in the definition identification group as initial definition identifications, wherein the initial definition identification group comprises at least one type of definition identifications.
Optionally, the second parameter determining module 404 is configured to:
determining a definition coding format group corresponding to the program level, and determining definition coding formats in the definition coding format group as target definition coding formats, wherein the definition coding format group comprises not less than one type of definition coding formats.
Optionally, the priority determining module 405 is configured to:
and taking the numerical value of the initial priority, the numerical value of the duration, the numerical value of the target definition coding format and the numerical value of the coding parameter as a second query sample, searching the transcoding priority matched with the second query sample from a preset transcoding priority table by utilizing a second preset table look-up algorithm, and determining the transcoding priority as the transcoding priority of the task to be transcoded.
Optionally, the above system for determining audio/video transcoding priority as shown in fig. 4 further includes:
and the audio and video transcoding module is used for transferring the task to be transcoded to a transcoding task queue corresponding to the transcoding priority according to the transcoding priority and a preset transcoding task scheduling rule so as to transcode the audio and video indicated by the source address carried by the task to be transcoded.
An embodiment of the present invention provides a video transcoding priority determining apparatus, as shown in fig. 5, the apparatus includes:
a processor 501;
a memory 502 for storing instructions executable by the processor 501.
Wherein the processor 501 is configured to execute instructions to implement the video transcoding prioritization method of any one of the above.
Embodiments of the present invention provide a computer-readable storage medium, wherein instructions that, when executed by a processor of a video transcoding prioritization apparatus, enable the video transcoding prioritization apparatus to perform a video transcoding prioritization method as described in any one of the above.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. An audio and video transcoding priority determination method, characterized in that the method comprises:
acquiring basic information of a task to be transcoded, wherein the basic information comprises: the source address carried by the task to be transcoded, the initial priority and the program grade of the task to be transcoded; the source address is a storage address of the audio and video;
obtaining attribute parameters of the audio and video according to the source address, wherein the attribute parameters comprise: the duration, code rate, resolution and quality grade of the audio and video;
determining an initial definition identifier of the audio and video indicated by the source address based on the code rate, the resolution and the quality level;
determining a target definition encoding format of the audio and video indicated by the source address based on the program grade and the initial definition identification;
and determining the transcoding priority of the task to be transcoded based on the initial priority, the time length, the target definition coding format and the coding parameters, wherein the coding parameters and the initial definition identification have corresponding relations.
2. The method of claim 1, wherein the determining an initial sharpness indicator of the audio/video indicated by the source address based on the code rate, the resolution, and the quality level comprises:
and taking the numerical value of the code rate, the numerical value of the resolution ratio and the numerical value of the quality grade as a first query sample, searching a definition identification group matched with the first query sample from a preset definition identification table by utilizing a first preset table look-up algorithm, and determining definition identifications in the definition identification group as the initial definition identifications, wherein the initial definition identification group comprises at least one type of definition identifications.
3. The method of claim 2, wherein determining the target definition encoding format of the audio/video indicated by the source address based on the program rating and the initial definition identification comprises:
and determining a definition coding format group corresponding to the program level, and determining definition coding formats in the definition coding format group as the target definition coding format, wherein the definition coding format group comprises not less than one type of definition coding formats.
4. The method of claim 1, wherein determining the transcoding priority of the task to be transcoded based on the initial priority, the duration, the target-definition encoding format, and encoding parameters comprises:
and taking the numerical value of the initial priority, the numerical value of the time length, the target definition coding format and the numerical value of the coding parameter as a second query sample, searching a transcoding priority matched with the second query sample from a preset transcoding priority table by utilizing a second preset table look-up algorithm, and determining the transcoding priority as the transcoding priority of the task to be transcoded.
5. The method of claim 1, further comprising:
and transferring the task to be transcoded to a transcoding task queue corresponding to the transcoding priority according to the transcoding priority and a preset transcoding task scheduling rule so as to transcode the audio and video indicated by the source address carried by the task to be transcoded.
6. An audio-video transcoding prioritization system, the system comprising:
the first data acquisition module is used for acquiring basic information of a task to be transcoded, wherein the basic information comprises: the source address carried by the task to be transcoded, the initial priority and the program grade of the task to be transcoded; the source address is a storage address of the audio and video;
a second data obtaining module, configured to obtain attribute parameters of the audio and video according to the source address, where the attribute parameters include: the duration, code rate, resolution and quality grade of the audio and video;
the first parameter determining module is used for determining the initial definition identifier of the audio and video indicated by the source address based on the code rate, the resolution and the quality level;
the second parameter determining module is used for determining the target definition coding format of the audio and video indicated by the source address based on the program grade and the initial definition identification;
and the priority determining module is used for determining the transcoding priority of the task to be transcoded based on the initial priority, the time length, the target definition coding format and the coding parameters, wherein the coding parameters and the initial definition mark have a corresponding relation.
7. The system of claim 6, wherein the first parameter determination module is configured to:
and taking the numerical value of the code rate, the numerical value of the resolution ratio and the numerical value of the quality grade as a first query sample, searching a definition identification group matched with the first query sample from a preset definition identification table by utilizing a first preset table look-up algorithm, and determining definition identifications in the definition identification group as the initial definition identifications, wherein the initial definition identification group comprises at least one type of definition identifications.
8. The system of claim 6, further comprising:
and the audio and video transcoding module is used for transferring the task to be transcoded to a transcoding task queue corresponding to the transcoding priority according to the transcoding priority and a preset transcoding task scheduling rule so as to transcode the audio and video indicated by the source address carried by the task to be transcoded.
9. A video transcoding prioritization apparatus, the apparatus comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the video transcoding prioritization method of any of claims 1-5.
10. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of a video transcoding prioritization apparatus, enable the video transcoding prioritization apparatus to perform the video transcoding prioritization method of any of claims 1-5.
CN202210422138.5A 2022-04-21 2022-04-21 Audio and video transcoding priority determining method, system and device and storage medium Active CN114697299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210422138.5A CN114697299B (en) 2022-04-21 2022-04-21 Audio and video transcoding priority determining method, system and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210422138.5A CN114697299B (en) 2022-04-21 2022-04-21 Audio and video transcoding priority determining method, system and device and storage medium

Publications (2)

Publication Number Publication Date
CN114697299A true CN114697299A (en) 2022-07-01
CN114697299B CN114697299B (en) 2024-05-10

Family

ID=82145646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210422138.5A Active CN114697299B (en) 2022-04-21 2022-04-21 Audio and video transcoding priority determining method, system and device and storage medium

Country Status (1)

Country Link
CN (1) CN114697299B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5684714A (en) * 1995-05-08 1997-11-04 Kabushiki Kaisha Toshiba Method and system for a user to manually alter the quality of a previously encoded video sequence
CN101119483A (en) * 2006-07-31 2008-02-06 联想(北京)有限公司 Source quality based video stream transmission velocity regulation means
CN101917384A (en) * 2009-11-17 2010-12-15 新奥特(北京)视频技术有限公司 Task distribution method and device for distributed transcoding system
CN102802053A (en) * 2012-07-23 2012-11-28 深圳市融创天下科技股份有限公司 Audio and video file transcoding cluster dispatching method and device
CN103702138A (en) * 2013-11-29 2014-04-02 乐视网信息技术(北京)股份有限公司 Method and system for self-adaptive appointed transcoding
US20150312294A1 (en) * 2014-04-29 2015-10-29 Cisco Technology, Inc. Content Message for Video Conferencing
CN105721901A (en) * 2014-12-31 2016-06-29 乐视云计算有限公司 Video transcoder adaption method, device and system
CN105992020A (en) * 2015-07-24 2016-10-05 乐视云计算有限公司 Video conversion resource distribution method and system
US20170026311A1 (en) * 2015-07-24 2017-01-26 Le Holdings (Beijing) Co., Ltd. Method and system for allocating video transcoding resources
US20170048533A1 (en) * 2015-08-12 2017-02-16 Le Holdings (Beijing) Co., Ltd. Video transcoding method and device
WO2017166630A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Task priority correctingon method and device
US20180295372A1 (en) * 2015-12-08 2018-10-11 Alibaba Group Holding Limited Method and Apparatus for Transcoding
CN109788315A (en) * 2019-01-31 2019-05-21 湖南快乐阳光互动娱乐传媒有限公司 Video transcoding method, apparatus and system
US20190320002A1 (en) * 2017-08-03 2019-10-17 Tencent Technology (Shenzhen) Company Limited Video transcoding method and apparatus, a server system, and storage medium
CN111093094A (en) * 2019-12-03 2020-05-01 深圳市万佳安物联科技股份有限公司 Video transcoding method, device and system, electronic equipment and readable storage medium
CN112416568A (en) * 2020-09-01 2021-02-26 上海哔哩哔哩科技有限公司 Duration estimation method and duration estimation device for audio and video transcoding task
CN113766230A (en) * 2021-11-04 2021-12-07 广州易方信息科技股份有限公司 Media file encoding method and device, computer equipment and storage medium

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5684714A (en) * 1995-05-08 1997-11-04 Kabushiki Kaisha Toshiba Method and system for a user to manually alter the quality of a previously encoded video sequence
CN101119483A (en) * 2006-07-31 2008-02-06 联想(北京)有限公司 Source quality based video stream transmission velocity regulation means
CN101917384A (en) * 2009-11-17 2010-12-15 新奥特(北京)视频技术有限公司 Task distribution method and device for distributed transcoding system
CN102802053A (en) * 2012-07-23 2012-11-28 深圳市融创天下科技股份有限公司 Audio and video file transcoding cluster dispatching method and device
CN103702138A (en) * 2013-11-29 2014-04-02 乐视网信息技术(北京)股份有限公司 Method and system for self-adaptive appointed transcoding
US20150312294A1 (en) * 2014-04-29 2015-10-29 Cisco Technology, Inc. Content Message for Video Conferencing
CN105721901A (en) * 2014-12-31 2016-06-29 乐视云计算有限公司 Video transcoder adaption method, device and system
US20170026311A1 (en) * 2015-07-24 2017-01-26 Le Holdings (Beijing) Co., Ltd. Method and system for allocating video transcoding resources
CN105992020A (en) * 2015-07-24 2016-10-05 乐视云计算有限公司 Video conversion resource distribution method and system
US20170048533A1 (en) * 2015-08-12 2017-02-16 Le Holdings (Beijing) Co., Ltd. Video transcoding method and device
US20180295372A1 (en) * 2015-12-08 2018-10-11 Alibaba Group Holding Limited Method and Apparatus for Transcoding
WO2017166630A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Task priority correctingon method and device
US20190320002A1 (en) * 2017-08-03 2019-10-17 Tencent Technology (Shenzhen) Company Limited Video transcoding method and apparatus, a server system, and storage medium
CN109788315A (en) * 2019-01-31 2019-05-21 湖南快乐阳光互动娱乐传媒有限公司 Video transcoding method, apparatus and system
CN111093094A (en) * 2019-12-03 2020-05-01 深圳市万佳安物联科技股份有限公司 Video transcoding method, device and system, electronic equipment and readable storage medium
CN112416568A (en) * 2020-09-01 2021-02-26 上海哔哩哔哩科技有限公司 Duration estimation method and duration estimation device for audio and video transcoding task
CN113766230A (en) * 2021-11-04 2021-12-07 广州易方信息科技股份有限公司 Media file encoding method and device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
刘志飞;: "MPEG-2高标清节目联合统计复用关键技术研究", 广播与电视技术, 15 February 2017 (2017-02-15) *
龙腾: "云计算环境下Web服务性能保障技术研究", 中国优秀硕士论文全文数据库 信息科技辑, 15 March 2017 (2017-03-15) *

Also Published As

Publication number Publication date
CN114697299B (en) 2024-05-10

Similar Documents

Publication Publication Date Title
CN112346829B (en) Method and equipment for task scheduling
CN109669776B (en) Detection task processing method, device and system
CN106407830B (en) Cloud-based database detection method and device
US10250657B2 (en) Streaming media optimization
US20150304227A1 (en) Queue Management Method and Apparatus
CN114697299B (en) Audio and video transcoding priority determining method, system and device and storage medium
CN109257244A (en) Transfer control method, the apparatus and system of user behavior data
CN110109751B (en) Distribution method and device of distributed graph cutting tasks and distributed graph cutting system
CN116775759A (en) Multi-platform big data synchronization method, equipment and medium based on message queue
CN113691879B (en) Video data processing method, electronic device, and computer-readable storage medium
US20230412855A1 (en) Processing of video operations as subtasks for video fragments
CN111343404B (en) Imaging data processing method and device
CN114090409A (en) Message processing method and device
CN113553193B (en) Mirror image data auditing and distributing processing method and system
CN108287793A (en) The way to play for time and server of response message
CN110874268A (en) Data processing method, device and equipment
CN110874267A (en) Polling scheduling method, device, storage medium and equipment
CN113784176B (en) Intelligent processing method and system for cloud video platform
CN110704489A (en) Database query method, device, equipment and computer storage medium
CN111885198B (en) Message processing method, system and device and electronic setting
CN111404709B (en) Method and device for operating policy rules under network function virtualization
KR102445589B1 (en) Systems, methods, and devices for managing segmented media content
CN114925026B (en) Electronic file utilization method and device, storage medium and electronic equipment
CN111479134A (en) Distributed cloud transcoding method, system and server
CN109302484B (en) User request processing method and device

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
GR01 Patent grant
GR01 Patent grant