CN109788315A - Video transcoding method, apparatus and system - Google Patents

Video transcoding method, apparatus and system Download PDF

Info

Publication number
CN109788315A
CN109788315A CN201910097058.5A CN201910097058A CN109788315A CN 109788315 A CN109788315 A CN 109788315A CN 201910097058 A CN201910097058 A CN 201910097058A CN 109788315 A CN109788315 A CN 109788315A
Authority
CN
China
Prior art keywords
task
code conversion
video code
transcoding
server
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.)
Pending
Application number
CN201910097058.5A
Other languages
Chinese (zh)
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 CN201910097058.5A priority Critical patent/CN109788315A/en
Publication of CN109788315A publication Critical patent/CN109788315A/en
Pending legal-status Critical Current

Links

Abstract

This application provides video transcoding methods, apparatus and system, when carrying out video code conversion task schedule, according to the computing resource of video code conversion required by task to be processed, determine that idle computing resources are able to satisfy the transcoding server of the computing resource of the video code conversion required by task in the cluster, and the video code conversion task is distributed to the transcoding server, realize distribution according to need resource, video code conversion task is distributed to more reasonable for cluster transit code server, advantageously reduce the case where computing resource in cluster can not be utilized by equilibrium, and then be conducive to improve the computing resource utilization rate of cluster, improve transcoding efficiency.

Description

Video transcoding method, apparatus and system
Technical field
This application involves technical field of video processing more particularly to video transcoding methods, apparatus and system.
Background technique
Video code conversion refers to that the video code flow by compressed encoding is converted into another video code flow, different to adapt to Network bandwidth, different terminal processing capacities and different user demands.
The video transcoding method of mainstream is the distributed trans-coding based on Hadoop at present.Hadoop is a kind of distribution of open source Formula handles frame, a large amount of cheap hardware devices can be formed distributed type assemblies, and storing data and operation journey on cluster Sequence.In the distributed trans-coding scheme based on Hadoop, first to Video segmentation, then for segmentation after video slicing creation with The corresponding transcoding task of each video slicing, transcoding task schedule is run on suitable transcoding server into cluster, is realized Distributed trans-coding.
In transcoding process, the computing resource of each transcoding required by task is not identical, if high definition video is in transcoding The computing resource needed is more, and the computing resource that low definition video is needed in transcoding is few.However, Hadoop is building cluster When, user is needed according to the computing resource of each transcoding server, configures the transcoding number of tasks executed on each transcoding server Amount, so that each occupied computing resource of transcoding task is distributed in advance, will not redistribute again in transcoding process. The computing resource that this may will lead to part transcoding server in cluster is idle, and the calculating of another part transcoding server provides Source is nervous, prevent the computing resource of cluster is from being used appropriately, transcoding efficiency is not high.
Summary of the invention
In view of this, the application's is designed to provide a kind of video transcoding method, apparatus and system, to improve transcoding effect Rate.
To achieve the above object, on the one hand, this application provides a kind of video transcoding methods, comprising:
Video code conversion task to be processed is determined from least one video code conversion task;
Determine the computing resource of the video code conversion required by task;
The idle computing resources of each transcoding server in cluster are determined respectively;
Determine that idle computing resources can satisfy the computing resource of the video code conversion required by task from the cluster Target transcoding server;
The video code conversion task is distributed into the target transcoding server, so that the target transcoding server is held The row video code conversion task.
Preferably, described to determine that idle computing resources can satisfy the video code conversion required by task from the cluster The target transcoding server of computing resource, comprising:
Judge the calculating that can satisfy the video code conversion required by task in the cluster with the presence or absence of idle computing resources At least one transcoding server of resource;
If there is at least one described transcoding server, target transcoding is determined from least one described transcoding server Server;
If it does not exist, then returning when meeting preset condition and executing each transcoding service in the cluster determining respectively The operation of the idle computing resources of device, to determine target transcoding server.
Preferably, the idle of each transcoding server calculates money in the cluster for determining the video code conversion task respectively Source, comprising:
The idle of each transcoding server in the cluster of the resource management server transmission of the cluster is obtained to calculate Resource information;Wherein the resource management server receives and stores the idle meter that each transcoding server in the cluster reports Calculate resource information.
It is preferably, described that the video code conversion task is distributed into the target transcoding server, comprising:
Task distribution instruction is sent to the resource management server, the task distribution instruction is used to indicate the resource The video code conversion task is distributed to the target transcoding server by management server.
It is preferably, described that target transcoding server is determined from least one described transcoding server, comprising:
In the case where there is the transcoding server for being not carried out transcoding task at least one described transcoding server, from institute It states and determines target transcoding server in the transcoding server for being not carried out transcoding task;
In the case where the transcoding server for being not carried out transcoding task is not present at least one described transcoding server, then Target transcoding server is determined in the transcoding server most from idle computing resources at least one described transcoding server.
It is preferably, described that video code conversion task to be processed is determined from least one video code conversion task, comprising:
Obtain at least one video code conversion task, each corresponding video to be transcoded of the video code conversion task;
Determine the video length of the corresponding video of each video code conversion task;
The corresponding video code conversion task of video that video length is less than preset duration is determined as video code conversion to be processed Task.
It is preferably, described that video code conversion task to be processed is determined from least one video code conversion task, comprising:
Determine the priority of at least one video code conversion task;
The video code conversion task of highest priority is determined as to video code conversion task to be processed.
Another aspect, present invention also provides a kind of video code conversion devices, comprising:
Transcoding task determination unit, for determining that video code conversion to be processed is appointed from least one video code conversion task Business;
Required resource determination unit, for determining the video code conversion required by task determined in the transcoding task determination unit Computing resource;
Idling-resource determination unit, for determining the idle computing resources of each transcoding server in cluster respectively;
Target transcoding server determination unit, for determining what the idling-resource determination unit determined from the cluster The idle computing resources can satisfy the calculating for the video code conversion required by task that the required resource determination unit determines The target transcoding server of resource;
Transcoding task allocation unit determines list for the video code conversion task to be distributed to the target transcoding server The target transcoding server that member is determined, so that the target transcoding server executes the video code conversion task.
Preferably, the target transcoding server determination unit is specifically used for:
Judge the computing resource that can satisfy the video code conversion required by task in cluster with the presence or absence of idle computing resources At least one transcoding server;
If there is at least one described transcoding server, target transcoding is determined from least one described transcoding server Server;
If it does not exist, then the operation of the idling-resource determination unit is executed, to determine when meeting preset condition Target transcoding server.
Another aspect, present invention also provides a kind of video code conversion systems, comprising: cluster;
The cluster includes resource management server, dispatch server and at least one transcoding server;
The resource management server, the idle computing resources letter reported for receiving and storing the transcoding server Breath, and the idle computing resources information of at least one transcoding server is sent to dispatch server;
The dispatch server, for distributing video code conversion task to be processed to mesh according to such as above-mentioned video transcoding method Transcoding server is marked, so that the target transcoding server executes the video code conversion task;
The transcoding server, for executing the video code conversion task;And it is reported certainly to the resource management server The idle computing resources information of body.
As it can be seen from the above scheme in the embodiment of the present application, when carrying out video code conversion task schedule, according to view to be processed The computing resource of frequency transcoding required by task determines that idle computing resources are able to satisfy the meter of the video code conversion required by task in the cluster The transcoding server of resource is calculated, and the video code conversion task is distributed to the transcoding server, realizes distribution according to need resource, from And it is more reasonable for cluster transit code server distribute video code conversion task, the computing resource advantageously reduced in cluster can not The case where being utilized by equilibrium, and then be conducive to improve the computing resource utilization rate of cluster, improve transcoding efficiency.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of structure composed schematic diagram of the system of the video code conversion of the embodiment of the present application;
Fig. 2 is a kind of flow diagram of the video transcoding method of the embodiment of the present application;
Fig. 3 is another flow diagram of the video transcoding method of the embodiment of the present application;
Fig. 4 is a kind of composition schematic diagram of the video code conversion device of the embodiment of the present application.
Specific embodiment
Relational language is explained:
Computing resource: refer generally to cpu resource, memory source, hard disk resources and network required when computer program operation Resource.
Mesos: open source distributed resource management frame, the granularity resource that can run business into particular one to distributed type assemblies distribution, fine granularity Resource allocation refers to and directly distributes resource according to task actual demand, this distribution mechanism is greatly improved resource utilization. Mesos is master/slave structure, wherein host node, it is all from node for coordinating, and determine the available resources of each node, then Resource is issued to the Computational frame for being registered to host node to invite.From node, oneself idling-resource and task are reported to host node State is responsible for managing each task on this node, Computational frame success to after host node application resource, receive message from Node will start the actuator of corresponding Computational frame.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
In order to make it easy to understand, the system being applicable in first the video transcoding method in the embodiment of the present application is introduced. Video transcoding method in the embodiment of the present application can be applied in system as shown in Figure 1, which includes: by least one turn The cluster that code server 101 and dispatch server 102 are constituted.
It wherein, include executing program on transcoding server 101, for executing specific video code conversion task.Transcoding service Device can report itself idle computing resources information and task status.Wherein, transcoding server reports the idle of itself to calculate The mode of resource information can e.g. be reported in the form of list of available resources there are many form, such as<2CPU, and 8GB memory>.Its In, transcoding server can report the idle computing resources information of itself according to a variety of strategies, such as terminate in task, receive it is new Task dispatching task status reports when changing;For another example reported according to predetermined period.
It include scheduler program on dispatch server 102, for the idle computing resources information according to each transcoding server Execute the scheduling of video code conversion task.Wherein, the idle computing resources information of each transcoding server can be taken by each transcoding Business device is directly reported to dispatch server.
In order to reduce the resource consumption on dispatch server, in a kind of possible realization, money can also be added in cluster Source control server 103.Include resource manager on resource management server 103, is carried out for the computing resource to cluster Management.Itself idle computing resources information and task status are reported to resource management server by each transcoding server, It is carried out being sent to dispatch server after information summarizes by resource management server.
In specific implementation, cluster can be built based on various distributed resource management frames.Such as, which can be based on Mesos is built.In the cluster built based on Mesos, resource management server is as host node, using Mesos as resource pipe Program is managed, the computing resource of cluster is managed.Dispatch server and at least one transcoding server are used as from node, are realized Distributed trans-coding.
The video transcoding method in the embodiment of the present application is introduced below with reference to flow chart.Such as, referring to fig. 2, show A kind of flow diagram of video transcoding method in the embodiment of the present application is gone out, this method is held by above mentioned dispatch server Row, comprising:
S201 determines video code conversion task to be processed from least one video code conversion task.
Wherein, dispatch server can obtain at least one video code conversion task.One video code conversion task is one corresponding Need to be implemented the video of video code conversion.The video can be the video slicing obtained after Video segmentation, be also possible to one section Complete video.Such as, for the short-sighted frequency relatively short for duration, since the video may be considered a video slicing, One video code conversion task of short video creation can be then directed to;For the long video relatively long for duration, the long video It can be split as multiple video slicings, create a video code conversion task for each video slicing.
Wherein, dispatch server determines that the mode of currently pending video code conversion task can be there are many implementation. Such as, it in a kind of possible realization, can be determined according to the video length of the corresponding video of video code conversion task currently pending Video code conversion task.Specific implementation may is that after dispatch server obtains at least one video code conversion task, determine every The video length of the corresponding video of a video code conversion task;Video length is less than to the corresponding video code conversion of video of preset duration Task is determined as video code conversion task to be processed.Wherein, preset duration can be set according to transcoding demand, and preferably 5 minutes. In this realization, currently pending video code conversion task is determined with short-movie priority principle, realizes the short-sighted frequency of priority processing, it can To reduce the waiting time.
For another example, it in alternatively possible realization, can also determine according to the priority of video code conversion task currently wait locate The video code conversion task of reason.Specific implementation may is that the priority for determining at least one video code conversion task;By highest priority Video code conversion task be determined as video code conversion task to be processed.In this realization, determined according to priority currently pending Video code conversion task, the high video code conversion task of priority processing priority, meet cluster it is fully loaded when priority processing it is urgent The demand of task.
Wherein, can be from highest priority in the case where the video code conversion task of highest priority is more than one, and regard Frequency duration is less than in the corresponding video code conversion task of video of preset duration, determines currently pending video code conversion task.
For another example, in alternatively possible realization, the chronological order of video can also be obtained according to dispatch server Determine currently pending video code conversion task.
S202 determines the computing resource of the video code conversion required by task to be processed.
Wherein, dispatch server can specify transcoding parameter when creating video code conversion task, such as the video code conversion task pair Format, resolution ratio, code rate information etc. after the video file information answered, transcoding.The different video code conversion task institute of transcoding parameter The computing resource needed is different.The computing resource of video code conversion required by task can be determined according to specified transcoding parameter.
S203 determines the idle computing resources of each transcoding server in cluster respectively.
Wherein, dispatch server can determine the idle computing resources of each transcoding server in cluster.Such as, each Transcoding server by the idle computing resources information reporting of itself to resource management server in the case where, resource management server The idle computing resources information that each transcoding server reports is received and stored, dispatch server can be by obtaining resource management The information that server is sent determines the idle computing resources of each transcoding server in cluster.
For another example, it in the case where each transcoding server directly reports idle computing resources information to dispatch server, adjusts Degree server can determine each transcoding server in cluster by receiving the information that each transcoding server is sent in cluster Idle computing resources.
S204 determines that idle computing resources can satisfy the mesh of the computing resource of the video code conversion required by task from cluster Mark transcoding server.
Wherein, target transcoding server is the meter that idle computing resources can satisfy the video code conversion required by task in cluster Calculate the transcoding server of resource.Each transcoding in the computing resource and cluster for determining video code conversion required by task to be processed After the idle computing resources of server, target transcoding server can be determined from cluster.
The video code conversion task is distributed to target transcoding server by S205, so that the target transcoding server executes The video code conversion task.
Wherein, after target transcoding server has been determined, can be generated the video code conversion task is distributed to it is determining The task allocation plan of target transcoding server executes task distribution according to the task allocation plan.
In the cluster such as built based on mesos, the mode that dispatch server executes task distribution be may is that resource pipe It manages server and sends task distribution instruction, to indicate resource management server according to the task allocation plan of generation by video code conversion Task distributes to target transcoding server.
In the embodiment of the present application, when carrying out video code conversion task schedule, according to video code conversion required by task to be processed Computing resource, in the cluster determine idle computing resources be able to satisfy the video code conversion required by task computing resource transcoding clothes Business device, and the video code conversion task is distributed to the transcoding server, distribution according to need resource is realized, so that more reasonable be Cluster transit code server distributes video code conversion task, advantageously reduces the feelings that the computing resource in cluster can not be utilized by equilibrium Condition, and then be conducive to improve the computing resource utilization rate of cluster, improve transcoding efficiency.
In order to make it easy to understand, the concrete mode of determining target transcoding server is introduced below.Such as referring to Fig. 3, Another flow diagram of the video transcoding method of the embodiment of the present application is shown, this method is applied to above mentioned scheduling Scheduler program in server, comprising:
S301 determines video code conversion task to be processed from least one video code conversion task.
S302 determines the computing resource of the video code conversion required by task to be processed.
S303 determines the idle computing resources of each transcoding server in cluster respectively.
S304 judges the computing resource that can satisfy video code conversion required by task in cluster with the presence or absence of idle computing resources At least one transcoding server, if it does, execute step S305.If it does not exist, then being returned when meeting preset condition It is executed to step S303.
It is understood that there may be the calculating that idle computing resources can satisfy video code conversion required by task in cluster The transcoding server of resource, it is also possible to be not present.It can satisfy video code conversion task there is no idle computing resources in the cluster When the transcoding server of required computing resource, the transcoding task for needing to wait for being carrying out in cluster is exited, on transcoding server When idle computing resources increase, the idle computing resources of each transcoding server in cluster are determined again and determine target transcoding clothes Business device.
S305 determines target transcoding server from least one transcoding server.
Wherein, the transcoding server that idle computing resources can satisfy the computing resource of the video code conversion required by task may There is at least one.Target transcoding server can be determined from this at least one transcoding server.Determine target transcoding service The mode of device can there are many, as at least one transcoding server exist be not carried out the transcoding server of transcoding task In the case of, it is not carried out in the transcoding server of transcoding task and determines target transcoding server, if being not carried out transcoding task Transcoding server have it is multiple, can therefrom randomly choose one be used as target transcoding server;In at least one transcoding service There is no in the case where the transcoding server for being not carried out transcoding task in device, then the free time counts from least one transcoding server It calculates and determines target transcoding server in the most transcoding server of resource, if the most transcoding server of idle computing resources has It is multiple, it can therefrom randomly choose one and be used as target transcoding server.
Wherein, preset condition may is that each transcoding service in the cluster for whether receiving resource management server transmission The idle computing resources information of device.It is taken when the state for the task that transcoding server can execute on it changes to resource management Business thinks highly of and newly reports idle computing resources information, and when the state of executing on transcoding server for task changes, the transcoding Idle computing resources on server can also change.By whether receive resource management server transmission cluster in it is each The idle computing resources of transcoding server are as preset condition, each turn in the cluster for receiving resource management server transmission When the idle computing resources information of code server, step S303 and S304 are executed again, determining target transcoding service can be improved The hit rate of device reduces the resource consumption of dispatch server.
Preset condition can also be that waiting time is more than preset duration, and e.g., current time distance is the last to execute step The duration of S305 meets preset condition when reaching preset duration.
The video code conversion task is distributed to target transcoding server by S306, so that the target transcoding server executes The video code conversion task.
Wherein, step S301~S303, S306 may refer to the related introduction of front, and details are not described herein again.
Corresponding to the video transcoding method in the embodiment of the present application, present invention also provides a kind of video code conversion devices.Ginseng See Fig. 4, it illustrates a kind of composition schematic diagrams of the video code conversion device of the embodiment of the present application, are applied to above mentioned scheduling Server, comprising:
Transcoding task determination unit 401, for determining video code conversion to be processed from least one video code conversion task Task;
Required resource determination unit 402, for determining the video code conversion task institute determined in transcoding task determination unit 401 The computing resource needed;
Idling-resource determination unit 403, for determining the idle computing resources of each transcoding server in cluster respectively;
Target transcoding server determination unit 404, the sky determined for determining idling-resource determination unit 403 from cluster The target that not busy computing resource can satisfy the computing resource for the video code conversion required by task that required resource determination unit 402 determines turns Code server;
Transcoding task allocation unit 405, for video code conversion task to be distributed to target transcoding server determination unit 404 The target transcoding server determined, so that the target transcoding server executes the video code conversion task.
In a kind of possible realization, target transcoding server determination unit 404 is specifically used for:
Judge to can satisfy the computing resource of video code conversion required by task extremely with the presence or absence of idle computing resources in cluster A few transcoding server;
If it does, determining target transcoding server from least one transcoding server;
Wherein, determine that target transcoding server includes: idle in the cluster calculates from least one transcoding server Resource, which can satisfy to exist at least one transcoding server of the computing resource of video code conversion required by task, is not carried out transcoding times In the case where the transcoding server of business, it is not carried out in the transcoding server of transcoding task and determines target transcoding server;Collecting It is not deposited at least one transcoding server for the computing resource that idle computing resources can satisfy video code conversion required by task in group In the case where being not carried out the transcoding server of transcoding task, then idle computing resources are most from least one transcoding server Transcoding server in determine target transcoding server;
If it does not exist, then the operation of idling-resource determination unit is executed, to determine target when meeting preset condition Transcoding server.
In a kind of possible realization, idling-resource determination unit 403 is specifically used for:
Obtain the idle computing resources information of each transcoding server in the cluster that resource management server is sent;Wherein provide Source control server receives and stores the idle computing resources information that each transcoding server in cluster reports.
In a kind of possible realization, transcoding task allocation unit 405 is specifically used for:
Generate the allocation plan that video code conversion task is distributed to target transcoding server;
Task distribution instruction is sent to the resource management server, the task distribution instruction is used to indicate the resource The video code conversion task is distributed to the target transcoding server by management server.
In a kind of possible realization, transcoding task determination unit 405 includes:
Video length determines subelement, and for obtaining at least one video code conversion task, each video code conversion task is corresponding One video to be transcoded;And determine the video length of the corresponding video of each video code conversion task;
First transcoding task determines subelement, for video length to be less than to the corresponding video code conversion of video of preset duration Task is determined as video code conversion task to be processed.
In a kind of possible realization, transcoding task determination unit 405 includes:
Priority determines subelement, for determining the priority of at least one video code conversion task;
Second transcoding task determines subelement, for the video code conversion task of highest priority to be determined as view to be processed Frequency transcoding task.
Another aspect, present invention also provides a kind of video code conversion system, which includes: to be made of multiple servers Cluster;
Cluster includes resource management server, dispatch server and at least one transcoding server;
Resource management server, the idle computing resources reported for receiving and storing transcoding server, and will at least one The idle computing resources of a transcoding server are sent to dispatch server;
Dispatch server, for distributing video code conversion task to be processed according to the video transcoding method in above-described embodiment To target transcoding server, so that target transcoding server executes video code conversion task;
Transcoding server, for executing video code conversion task;And the idle of itself is reported to calculate to resource management server Resource.
For the video code conversion device of the embodiment of the present application, video code conversion system, due to its in above example Video transcoding method it is corresponding, so being described relatively simple, related similarity refers to part in above example Explanation, and will not be described here in detail.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For convenience of description, it describes to be divided into various modules when system above or device with function or unit describes respectively. Certainly, the function of each unit can be realized in the same or multiple software and or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can It realizes by means of software and necessary general hardware platform.Based on this understanding, the technical solution essence of the application On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes the certain of each embodiment of the application or embodiment Method described in part.
Finally, it is to be noted that, herein, such as first, second, third and fourth or the like relational terms It is only used to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying these There are any actual relationship or orders between entity or operation.Moreover, the terms "include", "comprise" or its is any Other variants are intended to non-exclusive inclusion, so that including the process, method, article or equipment of a series of elements Include not only those elements, but also including other elements that are not explicitly listed, or further includes for this process, side Method, article or the intrinsic element of equipment.In the absence of more restrictions, limited by sentence "including a ..." Element, it is not excluded that there is also other identical elements in the process, method, article or apparatus that includes the element.
The above is only the preferred embodiment of the application, it is noted that for the ordinary skill people of the art For member, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications are also answered It is considered as the protection scope of the application.

Claims (10)

1. a kind of video transcoding method characterized by comprising
Video code conversion task to be processed is determined from least one video code conversion task;
Determine the computing resource of the video code conversion required by task;
The idle computing resources of each transcoding server in cluster are determined respectively;
Determine that idle computing resources can satisfy the target of the computing resource of the video code conversion required by task from the cluster Transcoding server;
The video code conversion task is distributed into the target transcoding server, so that the target transcoding server executes institute State video code conversion task.
2. the method as described in claim 1, which is characterized in that described to determine that idle computing resources expire from the cluster The target transcoding server of the computing resource of the foot video code conversion required by task, comprising:
Judge the computing resource that can satisfy the video code conversion required by task in the cluster with the presence or absence of idle computing resources At least one transcoding server;
If there is at least one described transcoding server, the service of target transcoding is determined from least one described transcoding server Device;
If it does not exist, then returning when meeting preset condition and executing each transcoding server in the cluster determining respectively The operation of idle computing resources, to determine target transcoding server.
3. method according to claim 2, which is characterized in that described to determine target from least one described transcoding server Transcoding server, comprising:
In at least one described transcoding server exist be not carried out transcoding task transcoding server in the case where, from it is described not It executes and determines target transcoding server in the transcoding server of transcoding task;
In the case where the transcoding server for being not carried out transcoding task is not present at least one described transcoding server, then from institute It states and determines target transcoding server in the transcoding server that idle computing resources are most at least one transcoding server.
4. method according to claim 1 or 2, which is characterized in that the cluster for determining the video code conversion task respectively In each transcoding server idle computing resources, comprising:
Obtain the idle computing resources of each transcoding server in the cluster of the resource management server transmission of the cluster Information;Idle calculate that wherein resource management server receives and stores that each transcoding server in the cluster reports provides Source information.
5. method as claimed in claim 4, which is characterized in that described that the video code conversion task is distributed to the target turn Code server, comprising:
Task distribution instruction is sent to the resource management server, the task distribution instruction is used to indicate the resource management The video code conversion task is distributed to the target transcoding server by server.
6. the method as described in claim 1, which is characterized in that the determination from least one video code conversion task is to be processed Video code conversion task, comprising:
Obtain at least one video code conversion task, each corresponding video to be transcoded of the video code conversion task;
Determine the video length of the corresponding video of each video code conversion task;
The corresponding video code conversion task of video that video length is less than preset duration is determined as video code conversion task to be processed.
7. the method as described in claim 1, which is characterized in that the determination from least one video code conversion task is to be processed Video code conversion task, comprising:
Determine the priority of at least one video code conversion task;
The video code conversion task of highest priority is determined as to video code conversion task to be processed.
8. a kind of video code conversion device characterized by comprising
Transcoding task determination unit, for determining video code conversion task to be processed from least one video code conversion task;
Required resource determination unit, by determining based on the video code conversion required by task determined in the transcoding task determination unit Calculate resource;
Idling-resource determination unit, for determining the idle computing resources of each transcoding server in cluster respectively;
Target transcoding server determination unit, described in the determination idling-resource determination unit determines from the cluster Idle computing resources can satisfy the computing resource for the video code conversion required by task that the required resource determination unit determines Target transcoding server;
Transcoding task allocation unit, it is true for the video code conversion task to be distributed to the target transcoding server determination unit The target transcoding server made, so that the target transcoding server executes the video code conversion task.
9. device as claimed in claim 8, which is characterized in that the target transcoding server determination unit is specifically used for:
Judge to can satisfy the computing resource of the video code conversion required by task extremely with the presence or absence of idle computing resources in cluster A few transcoding server;
If there is at least one described transcoding server, the service of target transcoding is determined from least one described transcoding server Device;
If it does not exist, then the operation of the idling-resource determination unit is executed, to determine target when meeting preset condition Transcoding server.
10. a kind of video code conversion system, comprising: cluster;
The cluster includes resource management server, dispatch server and at least one transcoding server;
The resource management server, the idle computing resources information reported for receiving and storing the transcoding server, and The idle computing resources information of at least one transcoding server is sent to dispatch server;
The dispatch server, it is to be processed for being distributed according to video transcoding method as described in any one of claims 1 to 7 Video code conversion task is to target transcoding server, so that the target transcoding server executes the video code conversion task;
The transcoding server, for executing the video code conversion task;And itself is reported to the resource management server Idle computing resources information.
CN201910097058.5A 2019-01-31 2019-01-31 Video transcoding method, apparatus and system Pending CN109788315A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910097058.5A CN109788315A (en) 2019-01-31 2019-01-31 Video transcoding method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910097058.5A CN109788315A (en) 2019-01-31 2019-01-31 Video transcoding method, apparatus and system

Publications (1)

Publication Number Publication Date
CN109788315A true CN109788315A (en) 2019-05-21

Family

ID=66502957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910097058.5A Pending CN109788315A (en) 2019-01-31 2019-01-31 Video transcoding method, apparatus and system

Country Status (1)

Country Link
CN (1) CN109788315A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769278A (en) * 2019-10-29 2020-02-07 鹏城实验室 Distributed video transcoding method and system
CN110856018A (en) * 2019-11-14 2020-02-28 武汉珞佳伟业科技有限公司 Rapid transcoding method and system in monitoring system based on cloud computing
CN112203057A (en) * 2020-10-10 2021-01-08 重庆紫光华山智安科技有限公司 Analysis task creating method, device, server and computer-readable storage medium
CN112565774A (en) * 2020-11-26 2021-03-26 北京达佳互联信息技术有限公司 Video transcoding resource scheduling method and device
CN112911386A (en) * 2021-01-29 2021-06-04 北京奇艺世纪科技有限公司 Material processing method and device, electronic equipment and readable storage medium
CN112988374A (en) * 2019-12-16 2021-06-18 阿里巴巴集团控股有限公司 Data processing method, device, system and storage medium
CN113347430A (en) * 2021-05-13 2021-09-03 北京睿芯高通量科技有限公司 Distributed scheduling device of hardware transcoding acceleration equipment and use method thereof
CN113992493A (en) * 2020-07-08 2022-01-28 阿里巴巴集团控股有限公司 Video processing method, system, device and storage medium
CN114024973A (en) * 2021-11-01 2022-02-08 上海绚显科技有限公司 Resource scheduling method, device, server and system for live cloud transcoding
CN114598927A (en) * 2022-03-03 2022-06-07 京东科技信息技术有限公司 Method and system for scheduling transcoding resources and scheduling device
CN114679604A (en) * 2022-04-11 2022-06-28 上海哔哩哔哩科技有限公司 Resource processing method and device
CN115277579A (en) * 2022-07-25 2022-11-01 广州品唯软件有限公司 Warehouse video calling method and cloud platform
CN115641497A (en) * 2022-12-23 2023-01-24 中电信数字城市科技有限公司 Multi-channel video processing system and method
CN117745514A (en) * 2024-02-20 2024-03-22 浙江宇视科技有限公司 Image distribution method, device, equipment and medium of intelligent server cluster

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070067390A1 (en) * 2002-02-15 2007-03-22 Agnoli Giovanni M System, Method, and computer program product for media publishing request processing
CN101917385A (en) * 2009-11-17 2010-12-15 新奥特(北京)视频技术有限公司 Dispatch server and distributed system for multimedia trans-coding
CN101917326A (en) * 2009-11-17 2010-12-15 新奥特(北京)视频技术有限公司 Distributed trans-coding system and task scheduling method thereof
CN105657449A (en) * 2014-12-03 2016-06-08 中国移动通信集团公司 Video transcode allocation method and device and video transcode system
CN105992020A (en) * 2015-07-24 2016-10-05 乐视云计算有限公司 Video conversion resource distribution method and system
CN107885594A (en) * 2016-09-30 2018-04-06 腾讯科技(深圳)有限公司 Distributed resource scheduling method, scheduling node and access node

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070067390A1 (en) * 2002-02-15 2007-03-22 Agnoli Giovanni M System, Method, and computer program product for media publishing request processing
CN101917385A (en) * 2009-11-17 2010-12-15 新奥特(北京)视频技术有限公司 Dispatch server and distributed system for multimedia trans-coding
CN101917326A (en) * 2009-11-17 2010-12-15 新奥特(北京)视频技术有限公司 Distributed trans-coding system and task scheduling method thereof
CN105657449A (en) * 2014-12-03 2016-06-08 中国移动通信集团公司 Video transcode allocation method and device and video transcode system
CN105992020A (en) * 2015-07-24 2016-10-05 乐视云计算有限公司 Video conversion resource distribution method and system
CN107885594A (en) * 2016-09-30 2018-04-06 腾讯科技(深圳)有限公司 Distributed resource scheduling method, scheduling node and access node

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110769278A (en) * 2019-10-29 2020-02-07 鹏城实验室 Distributed video transcoding method and system
CN110769278B (en) * 2019-10-29 2022-02-08 鹏城实验室 Distributed video transcoding method and system
CN110856018A (en) * 2019-11-14 2020-02-28 武汉珞佳伟业科技有限公司 Rapid transcoding method and system in monitoring system based on cloud computing
CN112988374A (en) * 2019-12-16 2021-06-18 阿里巴巴集团控股有限公司 Data processing method, device, system and storage medium
CN113992493A (en) * 2020-07-08 2022-01-28 阿里巴巴集团控股有限公司 Video processing method, system, device and storage medium
CN112203057B (en) * 2020-10-10 2022-06-03 重庆紫光华山智安科技有限公司 Analysis task creating method, device, server and computer-readable storage medium
CN112203057A (en) * 2020-10-10 2021-01-08 重庆紫光华山智安科技有限公司 Analysis task creating method, device, server and computer-readable storage medium
CN112565774B (en) * 2020-11-26 2023-05-02 北京达佳互联信息技术有限公司 Video transcoding resource scheduling method and device
CN112565774A (en) * 2020-11-26 2021-03-26 北京达佳互联信息技术有限公司 Video transcoding resource scheduling method and device
CN112911386A (en) * 2021-01-29 2021-06-04 北京奇艺世纪科技有限公司 Material processing method and device, electronic equipment and readable storage medium
CN113347430A (en) * 2021-05-13 2021-09-03 北京睿芯高通量科技有限公司 Distributed scheduling device of hardware transcoding acceleration equipment and use method thereof
CN113347430B (en) * 2021-05-13 2023-01-24 北京睿芯高通量科技有限公司 Distributed scheduling device of hardware transcoding acceleration equipment and use method thereof
CN114024973A (en) * 2021-11-01 2022-02-08 上海绚显科技有限公司 Resource scheduling method, device, server and system for live cloud transcoding
CN114024973B (en) * 2021-11-01 2023-11-24 上海绚显科技有限公司 Resource scheduling method, device, server and system for direct broadcast cloud transcoding
CN114598927A (en) * 2022-03-03 2022-06-07 京东科技信息技术有限公司 Method and system for scheduling transcoding resources and scheduling device
CN114679604A (en) * 2022-04-11 2022-06-28 上海哔哩哔哩科技有限公司 Resource processing method and device
CN114679604B (en) * 2022-04-11 2023-12-19 上海哔哩哔哩科技有限公司 Resource processing method and device
CN115277579A (en) * 2022-07-25 2022-11-01 广州品唯软件有限公司 Warehouse video calling method and cloud platform
CN115277579B (en) * 2022-07-25 2024-03-19 广州品唯软件有限公司 Warehouse video calling method and cloud platform
CN115641497A (en) * 2022-12-23 2023-01-24 中电信数字城市科技有限公司 Multi-channel video processing system and method
CN117745514A (en) * 2024-02-20 2024-03-22 浙江宇视科技有限公司 Image distribution method, device, equipment and medium of intelligent server cluster

Similar Documents

Publication Publication Date Title
CN109788315A (en) Video transcoding method, apparatus and system
Bhattacharjee et al. Barista: Efficient and scalable serverless serving system for deep learning prediction services
CN110769278B (en) Distributed video transcoding method and system
CN103309946B (en) Multimedia file processing method, Apparatus and system
CN105338061B (en) A kind of implementation method and system of lightweight messages middleware
Jiang et al. Optimal cloud resource auto-scaling for web applications
US20170329643A1 (en) Distributed node intra-group task scheduling method and system
CN104378665A (en) Distributed transcoding system and method based on digital television
CN104038392A (en) Method for evaluating service quality of cloud computing resources
Nan et al. Optimal resource allocation for multimedia cloud in priority service scheme
CN102223419A (en) Virtual resource dynamic feedback balanced allocation mechanism for network operation system
CN105718479A (en) Execution strategy generation method and device under cross-IDC (Internet Data Center) big data processing architecture
CN103761146B (en) A kind of method that MapReduce dynamically sets slots quantity
CN104243405A (en) Request processing method, device and system
CN108491255B (en) Self-service MapReduce data optimal distribution method and system
CN102508717B (en) Memory scheduling method and memory scheduling device for multi-core processor
Kanwal et al. Multiphase fault tolerance genetic algorithm for vm and task scheduling in datacenter
CN108574645A (en) A kind of array dispatching method and device
CN109388501B (en) Communication matching method, device, equipment and medium based on face recognition request
CN113014649B (en) Cloud Internet of things load balancing method, device and equipment based on deep learning
CN107203256A (en) Energy-conservation distribution method and device under a kind of network function virtualization scene
CN102420758A (en) Method and device for scheduling queue
CN112416568A (en) Duration estimation method and duration estimation device for audio and video transcoding task
CN109933433A (en) A kind of GPU resource scheduling system and its dispatching method
CN115168042A (en) Management method and device of monitoring cluster, computer storage medium and electronic equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190521