CN104360909A - Method and device for processing videos - Google Patents

Method and device for processing videos Download PDF

Info

Publication number
CN104360909A
CN104360909A CN201410613938.0A CN201410613938A CN104360909A CN 104360909 A CN104360909 A CN 104360909A CN 201410613938 A CN201410613938 A CN 201410613938A CN 104360909 A CN104360909 A CN 104360909A
Authority
CN
China
Prior art keywords
processor
processing
video
channel
processing tasks
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
CN201410613938.0A
Other languages
Chinese (zh)
Other versions
CN104360909B (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.)
Wuxi Tvmining Juyuan Media Technology Co Ltd
Original Assignee
Wuxi Tvmining Juyuan Media Technology 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 Wuxi Tvmining Juyuan Media Technology Co Ltd filed Critical Wuxi Tvmining Juyuan Media Technology Co Ltd
Priority to CN201410613938.0A priority Critical patent/CN104360909B/en
Publication of CN104360909A publication Critical patent/CN104360909A/en
Application granted granted Critical
Publication of CN104360909B publication Critical patent/CN104360909B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The invention discloses a method and a device for processing videos. The method comprises the following steps of when a new video processing task is added, obtaining property factors of each video processing machine; according to the property factors, selecting a first video processing machine for executing the new video processing task; distributing the new video processing task to the first video processing machine for processing.

Description

A kind of method for processing video frequency and device
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of method for processing video frequency and device.
Background technology
At present, in processing system for video, multiple stage processor can be comprised, as the channel processor processed the video of multiple channel, or to the material processor that video material processes.For multiple stage processor, when allocation process task, load balancing can be carried out.
But, for the load balancing of multiple stage processor in correlation technique, be only merely according to every day processor load capacity and loading commissions situation be multi-frame system task, every platform processor balancedly processing video data can not be realized, be easy to occur a wherein processor load too high, or wherein lower and other processor load too high of processor load.
Summary of the invention
For overcoming Problems existing in correlation technique, the embodiment of the present invention provides a kind of method for processing video frequency and device.
A kind of method for processing video frequency, processing system for video comprises at least two vision processors, and described method is applied to each vision processor, and described method comprises:
When new video processing duties adds fashionable, obtain the performance factor of each vision processor;
According to described performance factor, select the first vision processor performing described new video processing duties;
Described new video processing duties is assigned to described first vision processor process.
In the present embodiment, according to the performance factor of vision processor be video processing duties distribute vision processor, make effectively to utilize the processing power of vision processor, avoid a wherein vision processor load too high, or wherein lower and other vision processor load too high of vision processor load.In addition, the treatment effeciency of video task and the processing speed of whole processing system for video can be improved.
Optionally, when described vision processor is channel processor, described video processing duties is channel Processing tasks, and the performance factor of described channel processor at least comprises idle carrying channel number value;
Described according to described performance factor, select the first vision processor performing described new video processing duties, comprising:
Select the first channel processor that described free time carrying channel number value is maximum;
After judging that described new channel Processing tasks is assigned to described first channel processor, whether described first channel processor carrying channel number value exceedes is preset carrying channel number value;
When described first channel processor carrying channel number value does not exceed default carrying channel number value, described first channel processor is selected to perform described new channel Processing tasks.
In possibility, new channel adds fashionable, first will judge the channel carrying quantity of every platform processor, maximum one of idle carrying is selected to distribute, but the channel quantity after distributing may not exceed the maximum bearing value of processor, like this, avoids a wherein vision processor load too high simultaneously.
Optionally, described performance factor also comprises the channel number value that present period is broadcasting;
When there is the maximum channel processor of at least two described free time carrying channel number values in described processing system for video, the channel processor that the channel number value that in the channel processor that at least two described free time carrying channel data values described in selection are maximum, present period is broadcasting is minimum, performs described new channel Processing tasks.
In possibility, for the processor that carrying channel number value is identical, the minimum channel processor of the channel number value selecting present period broadcasting, to process channel task, avoids the load too high of a wherein processor.
Optionally, when described vision processor is material processor, described video processing duties is material Processing tasks, the performance factor of described material processor at least comprises material process consumption figures and the waiting task number of each material Processing tasks, and described material process consumption figures is the consumption figures to described material processor processing power of each material task of process;
Described according to described performance factor, select the first vision processor performing described new video processing duties, comprising:
According to the material process consumption figures of described each material Processing tasks, obtain the residue process consumption figures of the material Processing tasks that each material processor is processing;
According to the residue process consumption figures of the material Processing tasks that the material process consumption figures of described each material Processing tasks, waiting task number and each material processor are processing, calculate the processing load value of every platform material processor, described processing load value is the material process consumption figures of all pending material Processing tasks of every platform material processor and the residue process consumption figures sum of material Processing tasks that processing;
The the first material processor selecting described processing load value minimum performs described new material Processing tasks.
In possibility, when new material task adds fashionable, according to the material task matching processor that the processing load value of every platform material processor is new, need to carry out accurate Calculation to the processing load value of every platform material processor, to be material task matching processor exactly, avoid a wherein vision processor load too high, or wherein lower and other vision processor load too high of vision processor load.In addition, the treatment effeciency of video task and the processing speed of whole processing system for video can be improved.
Optionally, the performance factor of described material processor also comprises rest processing capacity value;
When there is the minimum material processor of at least two processing load values in described processing system for video, or the difference of processing load value that there is at least one material processor and described first material processor is when being less than predetermined threshold value, selects described rest processing capacity to be worth maximum material processor and perform described new material Processing tasks.
In possibility, when the processing load value of two material processors is identical or differ less between the processing load value of two material processors, as differed within 10%, then determine according to the rest processing capacity of processor the processor performing material Processing tasks.Like this, the load too high of a wherein processor is avoided.
Optionally, described method also comprises:
Obtain the video file duration of described material Processing tasks, video image wide, high, the video code rate of video file and audio code rate;
The material process consumption figures of material Processing tasks according to following formulae discovery,
MPC=D×(W×H×VB×a+AB×b),
Wherein, MPC is the material process consumption figures of described material Processing tasks, D is video file duration, W is the wide of video image, H is the height of video image, and VB is the audio code rate of the video code rate of video file, AB video file, a is the Video processing consumption weights of default described material Processing tasks, and b is the audio frequency process consumption weights of default described material Processing tasks.
In possibility, by calculating the material process consumption figures of each material Processing tasks according to the parameters of material task, thus accurately can calculate the processing load value of every platform material processor, and then be material task matching processor exactly, avoid a wherein vision processor load too high, or wherein lower and other vision processor load too high of vision processor load.In addition, the treatment effeciency of video task and the processing speed of whole processing system for video can be improved.
Optionally, described method also comprises:
Obtain the memory size value of described material processor, CPU idleness and internal memory idleness;
The rest processing capacity value of material processor according to following formulae discovery,
RPC=ARPCI×(ARPMI×MC),
Wherein RPC is the rest processing capacity value of described material processor, and ARPCI is the CPU idleness of described material processor, and ARPMI is the internal memory idleness of described material processor, and MC is the memory size value of described material processor.
In possibility, rest processing capacity value is remembered by calculating material process further, can be material task matching processor exactly, avoid a wherein vision processor load too high, or wherein lower and other vision processor load too high of vision processor load.In addition, the treatment effeciency of video task and the processing speed of whole processing system for video can be improved.
A kind of video process apparatus, processing system for video comprises at least two vision processors, and described application of installation is in each vision processor, and described device comprises:
First acquisition module, for adding fashionable when new video processing duties, obtains the performance factor of each vision processor;
Select module, for according to described performance factor, select the first vision processor performing described new video processing duties;
Distribution module, processes for described new video processing duties is assigned to described first vision processor.
Optionally, when described vision processor is channel processor, described video processing duties is channel Processing tasks, and the performance factor of described channel processor at least comprises idle carrying channel number value;
Described selection module comprises:
First chooser module, for the first channel processor selecting described free time carrying channel number value maximum;
Judge submodule, after judging that described new channel Processing tasks is assigned to described first channel processor, whether described first channel processor carrying channel number value exceedes is preset carrying channel number value;
Second chooser module, when presetting carrying channel number value for not exceeding when described first channel processor carrying channel number value, selects described first channel processor to perform described new channel Processing tasks.
Optionally, described performance factor also comprises the channel number value that present period is broadcasting;
Second chooser module, for when there is the maximum channel processor of at least two described free time carrying channel number values in described processing system for video, the channel processor that the channel number value that in the channel processor that at least two described free time carrying channel data values described in selection are maximum, present period is broadcasting is minimum, performs described new channel Processing tasks.
Optionally, when described vision processor is material processor, described video processing duties is material Processing tasks, the performance factor of described material processor at least comprises material process consumption figures and the waiting task number of each material Processing tasks, and described material process consumption figures is the consumption figures to described material processor processing power of each material task of process;
Described selection module comprises:
Obtain submodule, for the material process consumption figures according to described each material Processing tasks, obtain the residue process consumption figures of the material Processing tasks that each material processor is processing;
Calculating sub module, for the residue process consumption figures of the material Processing tasks that the material process consumption figures according to described each material Processing tasks, waiting task number and each material processor are processing, calculate the processing load value of every platform material processor, described processing load value is the material process consumption figures of all pending material Processing tasks of every platform material processor and the residue process consumption figures sum of material Processing tasks that processing;
Chooser module, performs described new material Processing tasks for the first material processor selecting described processing load value minimum.
Optionally, the performance factor of described material processor also comprises rest processing capacity value;
Described chooser module, the minimum material processor of at least two processing load values is there is in described processing system for video for working as, or the difference of processing load value that there is at least one material processor and described first material processor is when being less than predetermined threshold value, selects described rest processing capacity to be worth maximum material processor and perform described new material Processing tasks.
Optionally, described device also comprises:
Second acquisition module, for obtaining the video file duration of described material Processing tasks, video image wide, high, the video code rate of video file and audio code rate;
First computing module, for the material process consumption figures of material Processing tasks according to following formulae discovery,
MPC=D×(W×H×VB×a+AB×b),
Wherein, MPC is the material process consumption figures of described material Processing tasks, D is video file duration, W is the wide of video image, H is the height of video image, and VB is the audio code rate of the video code rate of video file, AB video file, a is the Video processing consumption weights of default described material Processing tasks, and b is the audio frequency process consumption weights of default described material Processing tasks.
Optionally, described device also comprises:
3rd acquisition module, for obtaining the memory size value of described material processor, CPU idleness and internal memory idleness;
Second computing module, for the rest processing capacity value of material processor according to following formulae discovery,
RPC=ARPCI×(ARPMI×MC),
Wherein RPC is the rest processing capacity value of described material processor, and ARPCI is the CPU idleness of described material processor, and ARPMI is the internal memory idleness of described material processor, and MC is the memory size value of described material processor.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for instructions, together with embodiments of the present invention for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of a kind of method for processing video frequency in the embodiment of the present invention;
Fig. 2 is the process flow diagram of a kind of method for processing video frequency in another embodiment of the present invention;
Fig. 3 is the process flow diagram of a kind of method for processing video frequency in another embodiment of the present invention;
Fig. 4 is the block diagram of a kind of video process apparatus in one embodiment of the invention;
Fig. 5 is the block diagram selecting module in one embodiment of the invention;
Fig. 6 is the block diagram selecting module in another embodiment of the present invention;
Fig. 7 is the block diagram of a kind of video process apparatus in another embodiment of the present invention;
Fig. 8 is the block diagram of a kind of video process apparatus in another embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that preferred embodiment described herein is only for instruction and explanation of the present invention, is not intended to limit the present invention.
Fig. 1 is the process flow diagram of a kind of method for processing video frequency in the embodiment of the present invention.Processing system for video comprises at least two vision processors, and the method is applied to each vision processor, and as shown in Figure 1, method for processing video frequency comprises:
Step S11, when new video processing duties adds fashionable, obtains the performance factor of each vision processor;
Step S12, according to performance factor, selects the first vision processor performing new video processing duties;
Step S13, is assigned to the first vision processor by new video processing duties and processes.
In the present embodiment, according to the performance factor of vision processor be video processing duties distribute vision processor, make effectively to utilize the processing power of vision processor, avoid a wherein vision processor load too high, or wherein lower and other vision processor load too high of vision processor load.In addition, the treatment effeciency of video task and the processing speed of whole processing system for video can be improved.
In the present embodiment, different according to the video task of process, the performance factor of vision processor is also different.Below respectively the distribution of channel Processing tasks and material Processing tasks is described in detail.
Fig. 2 is the process flow diagram of a kind of method for processing video frequency in another embodiment of the present invention.Optionally, when vision processor is channel processor, video processing duties is channel Processing tasks, and the performance factor of channel processor at least comprises idle carrying channel number value.As shown in Figure 2, above-mentioned steps S12 comprises:
Step S21, selects the first channel processor that idle carrying channel number value is maximum;
Step S22, after judging that new channel Processing tasks is assigned to the first channel processor, whether the first channel processor carrying channel number value exceedes is preset carrying channel number value;
Step S23, when the first channel processor carrying channel number value does not exceed default carrying channel number value, selects the first channel processor to perform new channel Processing tasks.
In possibility, new channel adds fashionable, first will judge the channel carrying quantity of every platform processor, maximum one of idle carrying is selected to distribute, but the channel quantity after distributing may not exceed the maximum bearing value of processor, like this, avoids a wherein vision processor load too high simultaneously.
Optionally, performance factor also comprises the channel number value that present period is broadcasting;
When there is the maximum channel processor of at least two idle carrying channel number values in processing system for video, the channel processor that the channel number value that in the channel processor selecting at least two idle carrying channel data values maximum, present period is broadcasting is minimum, performs new channel Processing tasks.
In possibility, for the processor that carrying channel number value is identical, the minimum channel processor of the channel number value selecting present period broadcasting, to process channel task, avoids the load too high of a wherein processor.
Such as, the conventional broadcast time (PlayingSection) of program of new channel can be analyzed.The conventional broadcast time of new channel is the 00:00-06:00 of every day, namely belongs to channel at night, and before other existing channels all end at 24:00 every day, or the broadcast channel quantity between 00:00-06:00 is compared minimum, be then allocated in this processor.
Fig. 3 is the process flow diagram of a kind of method for processing video frequency in another embodiment of the present invention.Optionally, when vision processor is material processor, video processing duties is material Processing tasks, the performance factor of material processor at least comprises material process consumption figures and the waiting task number of each material Processing tasks, and material process consumption figures is the consumption figures to material processor processing power processing each material task.As shown in Figure 3, above-mentioned steps S12 comprises:
Step S31, according to the material process consumption figures of each material Processing tasks, obtains the residue process consumption figures of the material Processing tasks that each material processor is processing;
Step S32, according to the residue process consumption figures of the material Processing tasks that the material process consumption figures of each material Processing tasks, waiting task number and each material processor are processing, calculate the processing load value of every platform material processor, processing load value is the material process consumption figures of all pending material Processing tasks of every platform material processor and the residue process consumption figures sum of material Processing tasks that processing;
Step S33, selects the first minimum material processor of processing load value to perform new material Processing tasks.
Such as, the material process consumption figures of each material Processing tasks is MPC; Processing load value PB=WaitingTask [0] .MPC+WaitingTask [1] .MPC+ of residue process consumption figures RCPT=MPC*Percent (of WaitingPart) of the material Processing tasks that each material processor is processing then every platform material processor ... + WaitingTask [length – 1] .MPC+RCPT, wherein, Task [] represents material Processing tasks.
In possibility, when new material task adds fashionable, according to the material task matching processor that the processing load value of every platform material processor is new, need to carry out accurate Calculation to the processing load value of every platform material processor, to be material task matching processor exactly, avoid a wherein vision processor load too high, or wherein lower and other vision processor load too high of vision processor load.In addition, the treatment effeciency of video task and the processing speed of whole processing system for video can be improved.
Optionally, the performance factor of material processor also comprises rest processing capacity value;
When there is the minimum material processor of at least two processing load values in processing system for video, or the difference of processing load value that there is at least one material processor and the first material processor is when being less than predetermined threshold value, selects rest processing capacity to be worth maximum material processor and perform new material Processing tasks.
In possibility, when the processing load value of two material processors is identical or differ less between the processing load value of two material processors, as differed within 10%, then determine according to the rest processing capacity of processor the processor performing material Processing tasks.Like this, the load too high of a wherein processor is avoided.
Optionally, the method also comprises:
Obtain the video file duration of material Processing tasks, video image wide, high, the video code rate of video file and audio code rate;
According to the material process consumption figures of following formulae discovery material Processing tasks,
MPC=D×(W×H×VB×a+AB×b),
Wherein, MPC is the material process consumption figures of material Processing tasks, D is video file duration, W is the wide of video image, H is the height of video image, and VB is the audio code rate of the video code rate of video file, AB video file, a is the Video processing consumption weights of default material Processing tasks, and b is the audio frequency process consumption weights of default material Processing tasks.
In possibility, a can be set to 90%, b and then be set to 10%.By calculating the material process consumption figures of each material Processing tasks according to the parameters of material task, thus accurately can calculate the processing load value of every platform material processor, and then be material task matching processor exactly, avoid a wherein vision processor load too high, or wherein lower and other vision processor load too high of vision processor load.In addition, the treatment effeciency of video task and the processing speed of whole processing system for video can be improved.
Optionally, the method also comprises:
Obtain the memory size value of material processor, CPU idleness and internal memory idleness;
According to the rest processing capacity value of following formulae discovery material processor,
RPC=ARPCI×(ARPMI×MC),
Wherein RPC is the rest processing capacity value of material processor, and ARPCI is the CPU idleness of material processor, and ARPMI is the internal memory idleness of material processor, and MC is the memory size value of material processor.
In possibility, rest processing capacity value is remembered by calculating material process further, can be material task matching processor exactly, avoid a wherein vision processor load too high, or wherein lower and other vision processor load too high of vision processor load.In addition, the treatment effeciency of video task and the processing speed of whole processing system for video can be improved.
Fig. 4 is the block diagram of a kind of video process apparatus in one embodiment of the invention.Processing system for video comprises at least two vision processors, and this application of installation is in each vision processor, and as shown in Figure 4, this device comprises:
First acquisition module 41, for adding fashionable when new video processing duties, obtains the performance factor of each vision processor;
Select module 42, for according to described performance factor, select the first vision processor performing described new video processing duties;
Distribution module 43, processes for described new video processing duties is assigned to described first vision processor.
Fig. 5 is the block diagram selecting module in one embodiment of the invention.Optionally, when described vision processor is channel processor, described video processing duties is channel Processing tasks, and the performance factor of described channel processor at least comprises idle carrying channel number value.As shown in Figure 5, module 42 is selected to comprise:
First chooser module 51, for the first channel processor selecting described free time carrying channel number value maximum;
Judge submodule 52, after judging that described new channel Processing tasks is assigned to described first channel processor, whether described first channel processor carrying channel number value exceedes is preset carrying channel number value;
Second chooser module 53, when presetting carrying channel number value for not exceeding when described first channel processor carrying channel number value, selects described first channel processor to perform described new channel Processing tasks.
Optionally, described performance factor also comprises the channel number value that present period is broadcasting.Second chooser module 53, for when there is the maximum channel processor of at least two described free time carrying channel number values in described processing system for video, the channel processor that the channel number value that in the channel processor that at least two described free time carrying channel data values described in selection are maximum, present period is broadcasting is minimum, performs described new channel Processing tasks.
Fig. 6 is the block diagram selecting module in another embodiment of the present invention.Optionally, when described vision processor is material processor, described video processing duties is material Processing tasks, the performance factor of described material processor at least comprises material process consumption figures and the waiting task number of each material Processing tasks, and described material process consumption figures is the consumption figures to described material processor processing power of each material task of process.As shown in Figure 6, module 42 is selected to comprise:
Obtain submodule 61, for the material process consumption figures according to described each material Processing tasks, obtain the residue process consumption figures of the material Processing tasks that each material processor is processing;
Calculating sub module 62, for the residue process consumption figures of the material Processing tasks that the material process consumption figures according to described each material Processing tasks, waiting task number and each material processor are processing, calculate the processing load value of every platform material processor, described processing load value is the material process consumption figures of all pending material Processing tasks of every platform material processor and the residue process consumption figures sum of material Processing tasks that processing;
Chooser module 63, performs described new material Processing tasks for the first material processor selecting described processing load value minimum.
Optionally, the performance factor of described material processor also comprises rest processing capacity value.Chooser module 63, the minimum material processor of at least two processing load values is there is in described processing system for video for working as, or the difference of processing load value that there is at least one material processor and described first material processor is when being less than predetermined threshold value, selects described rest processing capacity to be worth maximum material processor and perform described new material Processing tasks.
Fig. 7 is the block diagram of a kind of video process apparatus in another embodiment of the present invention.This device also comprises:
Second acquisition module 71, for obtaining the video file duration of described material Processing tasks, video image wide, high, the video code rate of video file and audio code rate;
First computing module 72, for the material process consumption figures of material Processing tasks according to following formulae discovery,
MPC=D×(W×H×VB×a+AB×b),
Wherein, MPC is the material process consumption figures of described material Processing tasks, D is video file duration, W is the wide of video image, H is the height of video image, and VB is the audio code rate of the video code rate of video file, AB video file, a is the Video processing consumption weights of default described material Processing tasks, and b is the audio frequency process consumption weights of default described material Processing tasks.
Fig. 8 is the block diagram of a kind of video process apparatus in another embodiment of the present invention.This device also comprises:
3rd acquisition module 81, for obtaining the memory size value of described material processor, CPU idleness and internal memory idleness;
Second computing module 82, for the rest processing capacity value of material processor according to following formulae discovery,
RPC=ARPCI×(ARPMI×MC),
Wherein RPC is the rest processing capacity value of described material processor, and ARPCI is the CPU idleness of described material processor, and ARPMI is the internal memory idleness of described material processor, and MC is the memory size value of described material processor.
The device of the present embodiment, according to the performance factor of vision processor be video processing duties distribute vision processor, make effectively to utilize the processing power of vision processor, avoid a wherein vision processor load too high, or wherein lower and other vision processor load too high of vision processor load.In addition, the treatment effeciency of video task and the processing speed of whole processing system for video can be improved.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disk memory and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the process flow diagram of the method for the embodiment of the present invention, equipment (system) and computer program and/or block scheme.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or square frame.These computer program instructions can being provided to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computing machine or other programmable data processing device produce device for realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make on computing machine or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computing machine or other programmable devices is provided for the step realizing the function of specifying in process flow diagram flow process or multiple flow process and/or block scheme square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (14)

1. a method for processing video frequency, is characterized in that, processing system for video comprises at least two vision processors, and described method is applied to each vision processor, and described method comprises:
When new video processing duties adds fashionable, obtain the performance factor of each vision processor;
According to described performance factor, select the first vision processor performing described new video processing duties;
Described new video processing duties is assigned to described first vision processor process.
2. method according to claim 1, is characterized in that, when described vision processor is channel processor, described video processing duties is channel Processing tasks, and the performance factor of described channel processor at least comprises idle carrying channel number value;
Described according to described performance factor, select the first vision processor performing described new video processing duties, comprising:
Select the first channel processor that described free time carrying channel number value is maximum;
After judging that described new channel Processing tasks is assigned to described first channel processor, whether described first channel processor carrying channel number value exceedes is preset carrying channel number value;
When described first channel processor carrying channel number value does not exceed default carrying channel number value, described first channel processor is selected to perform described new channel Processing tasks.
3. method according to claim 2, is characterized in that, described performance factor also comprises the channel number value that present period is broadcasting;
When there is the maximum channel processor of at least two described free time carrying channel number values in described processing system for video, the channel processor that the channel number value that in the channel processor that at least two described free time carrying channel data values described in selection are maximum, present period is broadcasting is minimum, performs described new channel Processing tasks.
4. method according to claim 1, it is characterized in that, when described vision processor is material processor, described video processing duties is material Processing tasks, the performance factor of described material processor at least comprises material process consumption figures and the waiting task number of each material Processing tasks, and described material process consumption figures is the consumption figures to described material processor processing power of each material task of process;
Described according to described performance factor, select the first vision processor performing described new video processing duties, comprising:
According to the material process consumption figures of described each material Processing tasks, obtain the residue process consumption figures of the material Processing tasks that each material processor is processing;
According to the residue process consumption figures of the material Processing tasks that the material process consumption figures of described each material Processing tasks, waiting task number and each material processor are processing, calculate the processing load value of every platform material processor, described processing load value is the material process consumption figures of all pending material Processing tasks of every platform material processor and the residue process consumption figures sum of material Processing tasks that processing;
The the first material processor selecting described processing load value minimum performs described new material Processing tasks.
5. method according to claim 4, is characterized in that, the performance factor of described material processor also comprises rest processing capacity value;
When there is the minimum material processor of at least two processing load values in described processing system for video, or the difference of processing load value that there is at least one material processor and described first material processor is when being less than predetermined threshold value, selects described rest processing capacity to be worth maximum material processor and perform described new material Processing tasks.
6. the method according to claim 4 or 5, is characterized in that, described method also comprises:
Obtain the video file duration of described material Processing tasks, video image wide, high, the video code rate of video file and audio code rate;
The material process consumption figures of material Processing tasks according to following formulae discovery,
MPC=D×(W×H×VB×a+AB×b),
Wherein, MPC is the material process consumption figures of described material Processing tasks, D is video file duration, W is the wide of video image, H is the height of video image, and VB is the audio code rate of the video code rate of video file, AB video file, a is the Video processing consumption weights of default described material Processing tasks, and b is the audio frequency process consumption weights of default described material Processing tasks.
7. method according to claim 5, is characterized in that, described method also comprises:
Obtain the memory size value of described material processor, CPU idleness and internal memory idleness;
The rest processing capacity value of material processor according to following formulae discovery,
RPC=ARPCI×(ARPMI×MC),
Wherein RPC is the rest processing capacity value of described material processor, and ARPCI is the CPU idleness of described material processor, and ARPMI is the internal memory idleness of described material processor, and MC is the memory size value of described material processor.
8. a video process apparatus, is characterized in that, processing system for video comprises at least two vision processors, and described application of installation is in each vision processor, and described device comprises:
First acquisition module, for adding fashionable when new video processing duties, obtains the performance factor of each vision processor;
Select module, for according to described performance factor, select the first vision processor performing described new video processing duties;
Distribution module, processes for described new video processing duties is assigned to described first vision processor.
9. device according to claim 8, is characterized in that, when described vision processor is channel processor, described video processing duties is channel Processing tasks, and the performance factor of described channel processor at least comprises idle carrying channel number value;
Described selection module comprises:
First chooser module, for the first channel processor selecting described free time carrying channel number value maximum;
Judge submodule, after judging that described new channel Processing tasks is assigned to described first channel processor, whether described first channel processor carrying channel number value exceedes is preset carrying channel number value;
Second chooser module, when presetting carrying channel number value for not exceeding when described first channel processor carrying channel number value, selects described first channel processor to perform described new channel Processing tasks.
10. device according to claim 9, is characterized in that, described performance factor also comprises the channel number value that present period is broadcasting;
Second chooser module, for when there is the maximum channel processor of at least two described free time carrying channel number values in described processing system for video, the channel processor that the channel number value that in the channel processor that at least two described free time carrying channel data values described in selection are maximum, present period is broadcasting is minimum, performs described new channel Processing tasks.
11. devices according to claim 8, it is characterized in that, when described vision processor is material processor, described video processing duties is material Processing tasks, the performance factor of described material processor at least comprises material process consumption figures and the waiting task number of each material Processing tasks, and described material process consumption figures is the consumption figures to described material processor processing power of each material task of process;
Described selection module comprises:
Obtain submodule, for the material process consumption figures according to described each material Processing tasks, obtain the residue process consumption figures of the material Processing tasks that each material processor is processing;
Calculating sub module, for the residue process consumption figures of the material Processing tasks that the material process consumption figures according to described each material Processing tasks, waiting task number and each material processor are processing, calculate the processing load value of every platform material processor, described processing load value is the material process consumption figures of all pending material Processing tasks of every platform material processor and the residue process consumption figures sum of material Processing tasks that processing;
Chooser module, performs described new material Processing tasks for the first material processor selecting described processing load value minimum.
12. devices according to claim 11, is characterized in that, the performance factor of described material processor also comprises rest processing capacity value;
Described chooser module, the minimum material processor of at least two processing load values is there is in described processing system for video for working as, or the difference of processing load value that there is at least one material processor and described first material processor is when being less than predetermined threshold value, selects described rest processing capacity to be worth maximum material processor and perform described new material Processing tasks.
13. devices according to claim 11 or 12, it is characterized in that, described device also comprises:
Second acquisition module, for obtaining the video file duration of described material Processing tasks, video image wide, high, the video code rate of video file and audio code rate;
First computing module, for the material process consumption figures of material Processing tasks according to following formulae discovery,
MPC=D×(W×H×VB×a+AB×b),
Wherein, MPC is the material process consumption figures of described material Processing tasks, D is video file duration, W is the wide of video image, H is the height of video image, and VB is the audio code rate of the video code rate of video file, AB video file, a is the Video processing consumption weights of default described material Processing tasks, and b is the audio frequency process consumption weights of default described material Processing tasks.
14. devices according to claim 12, is characterized in that, described device also comprises:
3rd acquisition module, for obtaining the memory size value of described material processor, CPU idleness and internal memory idleness;
Second computing module, for the rest processing capacity value of material processor according to following formulae discovery,
RPC=ARPCI×(ARPMI×MC),
Wherein RPC is the rest processing capacity value of described material processor, and ARPCI is the CPU idleness of described material processor, and ARPMI is the internal memory idleness of described material processor, and MC is the memory size value of described material processor.
CN201410613938.0A 2014-11-04 2014-11-04 A kind of method for processing video frequency and device Expired - Fee Related CN104360909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410613938.0A CN104360909B (en) 2014-11-04 2014-11-04 A kind of method for processing video frequency and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410613938.0A CN104360909B (en) 2014-11-04 2014-11-04 A kind of method for processing video frequency and device

Publications (2)

Publication Number Publication Date
CN104360909A true CN104360909A (en) 2015-02-18
CN104360909B CN104360909B (en) 2017-10-03

Family

ID=52528173

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410613938.0A Expired - Fee Related CN104360909B (en) 2014-11-04 2014-11-04 A kind of method for processing video frequency and device

Country Status (1)

Country Link
CN (1) CN104360909B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516620A (en) * 2015-12-10 2016-04-20 阔地教育科技有限公司 Distribution control device, image processing device and live and recorded broadcast interaction system
CN105872595A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Transcoding task distribution method and device
CN106250010A (en) * 2016-07-06 2016-12-21 北京元心科技有限公司 A kind of picture display control method and system
CN110708505A (en) * 2019-09-18 2020-01-17 上海依图网络科技有限公司 Video alarm method, device, electronic equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060059494A1 (en) * 2004-09-16 2006-03-16 Nvidia Corporation Load balancing
CN101126992A (en) * 2006-08-15 2008-02-20 国际商业机器公司 Method and system for dispensing multiple tasks at multiple node of network
CN102073546A (en) * 2010-12-13 2011-05-25 北京航空航天大学 Task-dynamic dispatching method under distributed computation mode in cloud computing environment
CN102866920A (en) * 2012-08-02 2013-01-09 杭州海康威视系统技术有限公司 Master-slave structure distributed video processing system and scheduling method thereof
CN103699445A (en) * 2013-12-19 2014-04-02 北京奇艺世纪科技有限公司 Task scheduling method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060059494A1 (en) * 2004-09-16 2006-03-16 Nvidia Corporation Load balancing
CN101126992A (en) * 2006-08-15 2008-02-20 国际商业机器公司 Method and system for dispensing multiple tasks at multiple node of network
CN102073546A (en) * 2010-12-13 2011-05-25 北京航空航天大学 Task-dynamic dispatching method under distributed computation mode in cloud computing environment
CN102866920A (en) * 2012-08-02 2013-01-09 杭州海康威视系统技术有限公司 Master-slave structure distributed video processing system and scheduling method thereof
CN103699445A (en) * 2013-12-19 2014-04-02 北京奇艺世纪科技有限公司 Task scheduling method, device and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516620A (en) * 2015-12-10 2016-04-20 阔地教育科技有限公司 Distribution control device, image processing device and live and recorded broadcast interaction system
CN105872595A (en) * 2016-03-31 2016-08-17 乐视控股(北京)有限公司 Transcoding task distribution method and device
WO2017166501A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Method and device for assigning transcoding task
CN106250010A (en) * 2016-07-06 2016-12-21 北京元心科技有限公司 A kind of picture display control method and system
CN106250010B (en) * 2016-07-06 2020-01-07 北京元心科技有限公司 Picture display control method and system
CN110708505A (en) * 2019-09-18 2020-01-17 上海依图网络科技有限公司 Video alarm method, device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN104360909B (en) 2017-10-03

Similar Documents

Publication Publication Date Title
CN109005125B (en) Dynamic current limiting method, device and system
US10911373B2 (en) Smart autoscaling of a cluster for processing a work queue in a distributed system
CN104360909A (en) Method and device for processing videos
CN104767809B (en) A kind of download control method and system
US10652360B2 (en) Access scheduling method and apparatus for terminal, and computer storage medium
CN104391749A (en) Resource allocation method and device
US10218777B2 (en) System, method and apparatus for ad-hoc utilization of available resources across mobile devices
JP2019518258A (en) Time-based adjustable load balancing
CN105516281A (en) Low energy consumption and load balance transfer calculating method and device based on mobile cloud environment
CN102523422B (en) Multi-party communication control system, multi-party communication system and multi-party communication processing method
CN106681745A (en) Picture loading method and terminal
CN104363463A (en) Video processing method, device and system
CN102346690A (en) Resource allocation method and device
CN106095047A (en) A kind of control method and electronic equipment
CN103984594A (en) Task scheduling method and system based on distributed configurable weighting algorithm
Thai et al. Executing bag of distributed tasks on the cloud: Investigating the trade-offs between performance and cost
CN104702534A (en) Method and device for processing data of multi-process sharing port
CN104954286A (en) Bandwidth allocation method and device
CN106034210A (en) Image editing method and image editing device
CN104968051A (en) Cell broadband up link resource distribution method and apparatus
GB2582513A (en) Automatic diagonal scaling of workloads in a distributed computing environment
CN103294551A (en) Interface call management method and server
CN105607924B (en) A kind of downloading management method and device
CN105392000A (en) Alignment method and device of video frame rate conversion
CN107066336B (en) Task processing method, electronic equipment and resource management device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A video processing method and device

Effective date of registration: 20210104

Granted publication date: 20171003

Pledgee: Inner Mongolia Huipu Energy Co.,Ltd.

Pledgor: WUXI TVMINING MEDIA SCIENCE & TECHNOLOGY Co.,Ltd.

Registration number: Y2020990001517

PE01 Entry into force of the registration of the contract for pledge of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171003

Termination date: 20211104

CF01 Termination of patent right due to non-payment of annual fee