CN104360909B - A kind of method for processing video frequency and device - Google Patents
A kind of method for processing video frequency and device Download PDFInfo
- Publication number
- CN104360909B CN104360909B CN201410613938.0A CN201410613938A CN104360909B CN 104360909 B CN104360909 B CN 104360909B CN 201410613938 A CN201410613938 A CN 201410613938A CN 104360909 B CN104360909 B CN 104360909B
- Authority
- CN
- China
- Prior art keywords
- processor
- processing
- task
- video
- channel
- 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.)
- Expired - Fee Related
Links
Landscapes
- Image Processing (AREA)
Abstract
The invention discloses a kind of method for processing video frequency and device.Methods described includes:When new video processing duties are added, the performance factor of each vision processor is obtained;According to the performance factor, selection performs the first vision processor of the new video processing duties;The new video processing duties are assigned into first vision processor to be handled.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method for processing video frequency and device.
Background technology
At present, in processing system for video, many processors, the channel such as handled the video of multiple channels can be included
Processor, or the material processor handled video material.For many processors, when distributing processing task, it can enter
Row load balancing.
But, only it is the simple load according to daily processor for the load balancing of many processors in correlation technique
Ability and loading commissions situation are multi-frame system task, can not realize that every processor balancedly handles video data, very
Easily occur in which a processor load too high, or wherein one processor load is relatively low and other processor load too high.
The content of the invention
To overcome problem present 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 includes at least two vision processors, and methods described is applied to every
Individual vision processor, methods described includes:
When new video processing duties are added, the performance factor of each vision processor is obtained;
According to the performance factor, selection performs the first vision processor of the new video processing duties;
The new video processing duties are assigned into first vision processor to be handled.
It is that video processing duties distribute vision processor according to the performance factor of vision processor in the present embodiment so that
Disposal ability to vision processor is effectively utilized, it is to avoid wherein one vision processor load too high, or wherein one
Relatively low and other vision processor load too high of vision processor load.In addition, it is possible to increase the treatment effeciency of video task and
The processing speed of whole processing system for video.
Optionally, when the vision processor is channel processor, the video processing duties are that channel handles task,
The performance factor of the channel processor at least includes idle carrying channel number value;
It is described that first vision processor of the execution new video processing duties is selected according to the performance factor, wrap
Include:
The first maximum channel processor of the selection idle carrying channel number value;
Judge the new channel processing task being assigned to after the first channel processor, the first channel processing
Whether machine carrying channel number value exceedes default carrying channel number value;
When the first channel processor carrying channel number value is not less than default carrying channel number value, selection is described
First channel processor performs the new channel processing task.
In alternative, when new channel is added, first have to judge the channel carrying quantity of every processor, selection is idle
One of carrying maximum is allocated, but the channel quantity after distribution may not exceed the maximum bearing value of processor simultaneously, so,
Avoid wherein one vision processor load too high.
Optionally, the performance factor also includes the channel number value that present period is being broadcasted;
Handled when there is the maximum channel of idle carrying channel number value described at least two in the processing system for video
During machine, present period is broadcasted in the maximum channel processor of idle carrying channel data value described in selection described at least two
The minimum channel processor of channel number value, handle task to perform the new channel.
In alternative, for carrying channel number value identical processor, the frequency that selection present period is being broadcasted
Road quantitative value minimum channel processor handles channel task, it is to avoid the load too high of wherein one processor.
Optionally, when the vision processor is material processor, the video processing duties are that material handles task,
The performance factor of the material processor at least includes the material processing consumption figures and waiting task that each material handles task
Number, the material processing consumption figures is the consumption figures to the material processor disposal ability for handling each material task;
It is described that first vision processor of the execution new video processing duties is selected according to the performance factor, wrap
Include:
Consumption figures is handled according to the material of each material processing task, obtains what each material processor was being handled
The remaining processing consumption figures of material processing task;
According to material processing consumption figures, waiting task number and each material processor of each material processing task
The remaining processing consumption figures of the material processing task handled, calculates the processing load value of every material processor, the place
Reason burden value handles consumption figures for the material of institute's pending processing material processing task of every material processor and handled
Material processing task remaining processing consumption figures sum;
The first minimum material processor of the processing load value is selected to perform the new material processing task.
It is new according to the processing load value of every material processor when new material task is added in alternative
Material task distribute processor, it is necessary to which the processing load value to every material processor is accurately calculated, to be exactly
Material task distributes processor, it is to avoid wherein one vision processor load too high, or the load of wherein one vision processor compared with
Low and other vision processor load too high.In addition, it is possible to increase the treatment effeciency of video task and whole processing system for video
Processing speed.
Optionally, the performance factor of the material processor also includes rest processing capacity value;
When the material processor that there is at least two processing load values minimum in the processing system for video, or exist at least
When one material processor and the difference of the processing load value of the first material processor are less than predetermined threshold value, select described surplus
The maximum material processor of remaining processing ability value performs the new material processing task.
In alternative, when the processing load value of two material processors is identical or processing of two material processors is born
Differ smaller between load value, within such as difference 10%, then determine that performing material processing appoints according to the rest processing capacity of processor
The processor of business.So, it is to avoid the load too high of wherein one processor.
Optionally, methods described also includes:
Obtain the video file duration that the material handles task, the width of video image, high, the video code rate of video file
And audio code rate;
Consumption figures is handled according to the material that below equation calculates the material processing task,
MPC=D × (W × H × VB × a+AB × b),
Wherein, MPC is the material processing consumption figures that the material handles task, and D is video file duration, and W is video figure
The width of picture, H is the height of video image, and VB is the video code rate of video file, and the audio code rate of AB video files, a is default
The Video processing consumption weights of the material processing task, b consumes power for the audio frequency process of the default material processing task
Value.
In alternative, by calculating the material processing that each material handles task according to the parameters of material task
Consumption figures, so as to accurately calculate the processing load value of every material processor, and then exactly at material task distribution
Reason machine, it is to avoid wherein one vision processor load too high, or the load of wherein one vision processor it is relatively low and at other videos
Reason machine load too high.In addition, it is possible to increase the processing speed of the treatment effeciency of video task and whole processing system for video.
Optionally, methods described also includes:
Obtain memory size value, CPU idleness and the internal memory idleness of the material processor;
The rest processing capacity value of the material processor is calculated according to below equation,
RPC=ARPCI × (ARPMI × MC),
Wherein RPC is the rest processing capacity value of the material processor, and ARPCI is empty for the CPU of the material processor
Not busy rate, ARPMI is the internal memory idleness of the material processor, and MC is the memory size value of the material processor.
In alternative, rest processing capacity value is remembered by further calculating material processing, can be exactly element
Material task distributes processor, it is to avoid wherein one vision processor load too high, or wherein one vision processor load is relatively low
And other vision processor load too high.In addition, it is possible to increase the treatment effeciency of video task and whole processing system for video
Processing speed.
A kind of video process apparatus, processing system for video includes at least two vision processors, and described device is applied to every
Individual vision processor, described device includes:
First acquisition module, for when new video processing duties addition, obtain the performance of each vision processor because
Son;
Selecting module, for according to the performance factor, selection to perform the first video of the new video processing duties
Processor;
Distribute module, is handled for the new video processing duties to be assigned into first vision processor.
Optionally, when the vision processor is channel processor, the video processing duties are that channel handles task,
The performance factor of the channel processor at least includes idle carrying channel number value;
The selecting module includes:
First choice submodule, for selecting the first maximum channel processor of the idle carrying channel number value;
Judging submodule, for judging the new channel processing task being assigned to after the first channel processor,
Whether the first channel processor carrying channel number value exceedes default carrying channel number value;
Second selection submodule, for when the first channel processor carrying channel number value is not less than default carrying frequency
During road quantitative value, the first channel processor is selected to perform the new channel processing task.
Optionally, the performance factor also includes the channel number value that present period is being broadcasted;
Second selection submodule, for when there is idle carrying channel number described at least two in the processing system for video
During the channel processor of value maximum, the maximum channel processor of idle carrying channel data value described in selection described at least two
The minimum channel processor of channel number value that middle present period is being broadcasted, task is handled to perform the new channel.
Optionally, when the vision processor is material processor, the video processing duties are that material handles task,
The performance factor of the material processor at least includes the material processing consumption figures and waiting task that each material handles task
Number, the material processing consumption figures is the consumption figures to the material processor disposal ability for handling each material task;
The selecting module includes:
Acquisition submodule, the material for handling task according to each material handles consumption figures, obtains each material
The remaining processing consumption figures for the material processing task that processor is being handled;
Calculating sub module, the material for handling task according to each material handles consumption figures, waiting task number
And the remaining of material processing task that each material processor is being handled handles consumption figures, the place of every material processor of calculating
Burden value is managed, the processing load value disappears for the material processing of institute's pending processing material processing task of every material processor
The remaining processing consumption figures sum of consumption value and the material processing task handled;
Submodule is selected, for selecting the first minimum material processor of the processing load value to perform the new material
Processing task.
Optionally, the performance factor of the material processor also includes rest processing capacity value;
The selection submodule, for when the element that there is at least two processing load values minimum in the processing system for video
Material processor, or there is at least one material processor with the difference of the processing load value of the first material processor less than pre-
If during threshold value, selecting the maximum material processor of the rest processing capacity value to perform the new material processing task.
Optionally, described device also includes:
Second acquisition module, the video file duration for obtaining the material processing task, width, the height of video image,
The video code rate and audio code rate of video file;
First computing module, for calculating the material processing consumption figures that the material handles task according to below equation,
MPC=D × (W × H × VB × a+AB × b),
Wherein, MPC is the material processing consumption figures that the material handles task, and D is video file duration, and W is video figure
The width of picture, H is the height of video image, and VB is the video code rate of video file, and the audio code rate of AB video files, a is default
The Video processing consumption weights of the material processing task, b consumes power for the audio frequency process of the default material processing task
Value.
Optionally, described device also includes:
3rd acquisition module, memory size value, CPU idleness and the internal memory for obtaining the material processor is idle
Rate;
Second computing module, the rest processing capacity value for calculating the material processor according to below equation,
RPC=ARPCI × (ARPMI × MC),
Wherein RPC is the rest processing capacity value of the material processor, and ARPCI is empty for the CPU of the material processor
Not busy rate, ARPMI is the internal memory idleness of the material processor, and MC is the memory size value of the material processor.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not
The disclosure can be limited.
Brief description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, the reality with the present invention
Applying example is used to explain the present invention together, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of method for processing video frequency in the embodiment of the present invention;
Fig. 2 is a kind of flow chart of method for processing video frequency in another embodiment of the present invention;
Fig. 3 is a kind of flow chart of method for processing video frequency in another embodiment of the present invention;
Fig. 4 is a kind of block diagram of video process apparatus in one embodiment of the invention;
Fig. 5 is the block diagram of selecting module in one embodiment of the invention;
Fig. 6 is the block diagram of selecting module in another embodiment of the present invention;
Fig. 7 is a kind of block diagram of video process apparatus in another embodiment of the present invention;
Fig. 8 is a kind of block diagram of video process apparatus in another embodiment of the present invention.
Embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein
Apply example to be merely to illustrate and explain the present invention, be not intended to limit the present invention.
Fig. 1 is a kind of flow chart of method for processing video frequency in the embodiment of the present invention.Processing system for video includes at least two
Vision processor, this method is applied to each vision processor, as shown in figure 1, method for processing video frequency includes:
Step S11, when new video processing duties are added, obtains the performance factor of each vision processor;
Step S12, according to performance factor, selection performs the first vision processor of new video processing duties;
New video processing duties are assigned to the first vision processor and handled by step S13.
It is that video processing duties distribute vision processor according to the performance factor of vision processor in the present embodiment so that
Disposal ability to vision processor is effectively utilized, it is to avoid wherein one vision processor load too high, or wherein one
Relatively low and other vision processor load too high of vision processor load.In addition, it is possible to increase the treatment effeciency of video task and
The processing speed of whole processing system for video.
Different according to the video task of processing in the present embodiment, the performance factor of vision processor is also different.Individually below
The distribution for handling channel task and material processing task is described in detail.
Fig. 2 is a kind of flow chart of method for processing video frequency in another embodiment of the present invention.Optionally, when vision processor is
During channel processor, video processing duties are that channel handles task, and the performance factor of channel processor at least includes idle carrying
Channel number value.As shown in Fig. 2 above-mentioned steps S12 includes:
Step S21, the first maximum channel processor of the idle carrying channel number value of selection;
Step S22, judges new channel processing task being assigned to after the first channel processor, the first channel processor is held
Whether carrier frequency road quantitative value exceedes default carrying channel number value;
Step S23, when the first channel processor carrying channel number value is not less than default carrying channel number value, selection
First channel processor performs new channel processing task.
In alternative, when new channel is added, first have to judge the channel carrying quantity of every processor, selection is idle
One of carrying maximum is allocated, but the channel quantity after distribution may not exceed the maximum bearing value of processor simultaneously, so,
Avoid wherein one vision processor load too high.
Optionally, performance factor also includes the channel number value that present period is being broadcasted;
When there is the channel processor of at least two idle carrying channel number values maximums in processing system for video, selection
The channel number value that present period is being broadcasted in the maximum channel processor of at least two idle carrying channel data values is minimum
Channel processor, handle task to perform new channel.
In alternative, for carrying channel number value identical processor, the frequency that selection present period is being broadcasted
Road quantitative value minimum channel processor handles channel task, it is to avoid the load too high of wherein one processor.
For example, the conventional broadcast time (PlayingSection) of the program that new channel can be analyzed.The routine of new channel is broadcast
It is daily 00 to go out the time:00-06:00, that is, belong to night channel, and other existing channels end at daily 24:Before 00, or
00:00-06:Channel quantity is broadcasted compared to minimum between 00, then is allocated in this processor.
Fig. 3 is a kind of flow chart of method for processing video frequency in another embodiment of the present invention.Optionally, when vision processor is
During material processor, video processing duties are that material handles task, and the performance factor of material processor at least includes each material
The material processing consumption figures and waiting task number of processing task, material processing consumption figures are each material task of processing to element
The consumption figures of material processor disposal ability.As shown in figure 3, above-mentioned steps S12 includes:
Step S31, consumption figures is handled according to the material that each material handles task, is obtained each material processor and is located
The remaining processing consumption figures of the material processing task of reason;
Step S32, is handled at consumption figures, waiting task number and each material according to the material that each material handles task
The remaining processing consumption figures for the material processing task that reason machine is being handled, calculates the processing load value of every material processor, place
Reason burden value handles consumption figures for the material of institute's pending processing material processing task of every material processor and handled
Material processing task remaining processing consumption figures sum;
Step S33, the first minimum material processor of selection processing load value performs new material processing task.
For example, the material processing consumption figures of each material processing task is MPC;The element that each material processor is being handled
The remaining of material processing task handles consumption figures RCPT=MPC*Percent (of Waiting Part) then every material processor
Processing load value PB=WaitingTask [0] .MPC+WaitingTask [1] .MPC+ ...+WaitingTask
[length -1] .MPC+RCPT, wherein, Task [] represents material processing task.
It is new according to the processing load value of every material processor when new material task is added in alternative
Material task distribute processor, it is necessary to which the processing load value to every material processor is accurately calculated, to be exactly
Material task distributes processor, it is to avoid wherein one vision processor load too high, or the load of wherein one vision processor compared with
Low and other vision processor load too high.In addition, it is possible to increase the treatment effeciency of video task and whole processing system for video
Processing speed.
Optionally, the performance factor of material processor also includes rest processing capacity value;
When the material processor that there is at least two processing load values minimum in processing system for video, or there is at least one
When the difference of the processing load value of material processor and the first material processor is less than predetermined threshold value, rest processing capacity value is selected
Maximum material processor performs new material processing task.
In alternative, when the processing load value of two material processors is identical or processing of two material processors is born
Differ smaller between load value, within such as difference 10%, then determine that performing material processing appoints according to the rest processing capacity of processor
The processor of business.So, it is to avoid the load too high of wherein one processor.
Optionally, this method also includes:
Obtain the video file duration that material handles task, the width of video image, high, the video code rate and sound of video file
Frequency code rate;
Consumption figures is handled according to the material that below equation calculates material processing task,
MPC=D × (W × H × VB × a+AB × b),
Wherein, MPC is the material processing consumption figures that material handles task, and D is video file duration, and W is video image
Width, H is the height of video image, and VB is the video code rate of video file, and the audio code rate of AB video files, a is default material
The Video processing consumption weights of processing task, b is the audio frequency process consumption weights that default material handles task.
In alternative, a can be set to 90%, b and then be set to 10%.By being calculated according to the parameters of material task
The material processing consumption figures of each material processing task, so as to accurately calculate the processing load value of every material processor,
And then distribute processor exactly for material task, it is to avoid wherein one vision processor load too high, or wherein one video
Relatively low and other vision processor load too high of processor load.In addition, it is possible to increase the treatment effeciency of video task and whole
The processing speed of processing system for video.
Optionally, this method also includes:
Obtain memory size value, CPU idleness and the internal memory idleness of material processor;
The rest processing capacity value of material processor is calculated according to below equation,
RPC=ARPCI × (ARPMI × MC),
Wherein RPC is the rest processing capacity value of material processor, and ARPCI is the CPU idleness of material processor,
ARPMI is the internal memory idleness of material processor, and MC is the memory size value of material processor.
In alternative, rest processing capacity value is remembered by further calculating material processing, can be exactly element
Material task distributes processor, it is to avoid wherein one vision processor load too high, or wherein one vision processor load is relatively low
And other vision processor load too high.In addition, it is possible to increase the treatment effeciency of video task and whole processing system for video
Processing speed.
Fig. 4 is a kind of block diagram of video process apparatus in one embodiment of the invention.Processing system for video includes at least two
Vision processor, the device is applied to each vision processor, as shown in figure 4, the device includes:
First acquisition module 41, for when new video processing duties addition, obtaining the performance of each vision processor
The factor;
Selecting module 42, for being regarded according to the performance factor, the first of the selection execution new video processing duties
Frequency processor;
Distribute module 43, for the new video processing duties to be assigned at first vision processor
Reason.
Fig. 5 is the block diagram of selecting module in one embodiment of the invention.Optionally, when the vision processor is channel processing
During machine, the video processing duties are that channel handles task, and the performance factor of the channel processor at least includes idle carrying
Channel number value.As shown in figure 5, selecting module 42 includes:
First choice submodule 51, for selecting the first maximum channel processor of the idle carrying channel number value;
Judging submodule 52, for judging the new channel processing task being assigned to the first channel processor
Afterwards, whether the first channel processor carrying channel number value exceedes default carrying channel number value;
Second selection submodule 53, for carrying channel number value not less than default carrying when the first channel processor
During channel number value, the first channel processor is selected to perform the new channel processing task.
Optionally, the performance factor also includes the channel number value that present period is being broadcasted.Second selection submodule
53, for when the channel processor that there is idle carrying channel number value maximum described at least two in the processing system for video
When, the free time described in selection described at least two carries what present period in the maximum channel processor of channel data value was being broadcasted
The minimum channel processor of channel number value, task is handled to perform the new channel.
Fig. 6 is the block diagram of selecting module in another embodiment of the present invention.Optionally, when the vision processor is at material
During reason machine, the video processing duties are that material handles task, and the performance factor of the material processor at least includes each element
The material processing consumption figures and waiting task number of material processing task, the material processing consumption figures is each material task of processing
The consumption figures to the material processor disposal ability.As shown in fig. 6, selecting module 42 includes:
Acquisition submodule 61, the material for handling task according to each material handles consumption figures, obtains each element
The remaining processing consumption figures for the material processing task that material processor is being handled;
Calculating sub module 62, the material for handling task according to each material handles consumption figures, waiting task
The remaining processing consumption figures for the material processing task that number and each material processor are being handled, calculates every material processor
Processing load value, the processing load value is handled for the material of institute's pending processing material processing task of every material processor
The remaining processing consumption figures sum of consumption figures and the material processing task handled;
Submodule 63 is selected, for selecting the first minimum material processor of the processing load value to perform the new element
Material handles task.
Optionally, the performance factor of the material processor also includes rest processing capacity value.Submodule 63 is selected, is used for
When the material processor that there is at least two processing load values minimum in the processing system for video, or there is at least one material
When processor and the difference of the processing load value of the first material processor are less than predetermined threshold value, the remaining processing energy is selected
The maximum material processor of force value performs the new material processing task.
Fig. 7 is a kind of block diagram of video process apparatus in another embodiment of the present invention.The device also includes:
Second acquisition module 71, the video file duration for obtaining the material processing task, the width of video image,
Height, the video code rate and audio code rate of video file;
First computing module 72, for calculating the material processing consumption figures that the material handles task according to below equation,
MPC=D × (W × H × VB × a+AB × b),
Wherein, MPC is the material processing consumption figures that the material handles task, and D is video file duration, and W is video figure
The width of picture, H is the height of video image, and VB is the video code rate of video file, and the audio code rate of AB video files, a is default
The Video processing consumption weights of the material processing task, b consumes power for the audio frequency process of the default material processing task
Value.
Fig. 8 is a kind of block diagram of video process apparatus in another embodiment of the present invention.The device also includes:
3rd acquisition module 81, memory size value, CPU idleness and the internal memory for obtaining the material processor is idle
Rate;
Second computing module 82, the rest processing capacity value for calculating the material processor according to below equation,
RPC=ARPCI × (ARPMI × MC),
Wherein RPC is the rest processing capacity value of the material processor, and ARPCI is empty for the CPU of the material processor
Not busy rate, ARPMI is the internal memory idleness of the material processor, and MC is the memory size value of the material processor.
The device of the present embodiment, is that video processing duties distribute vision processor according to the performance factor of vision processor,
So that the disposal ability to vision processor is effectively utilized, it is to avoid wherein one vision processor load too high, or wherein
The load of one vision processor is relatively low and other vision processor load too high.In addition, it is possible to increase the processing effect of video task
The processing speed of rate and whole processing system for video.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware
Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code
The shape for the computer program product that usable storage medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to
Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or
The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention
God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to comprising including these changes and modification.
Claims (8)
1. a kind of method for processing video frequency, it is characterised in that processing system for video includes at least two vision processors, methods described
Applied to each vision processor, methods described includes:
When new video processing duties are added, the performance factor of each vision processor is obtained;
According to the performance factor, selection performs the first vision processor of the new video processing duties;
The new video processing duties are assigned into first vision processor to be handled;
When the vision processor is channel processor, the video processing duties are that channel is handled at task, the channel
The performance factor of reason machine at least includes idle carrying channel number value;
It is described that according to the performance factor, selection performs the first vision processor of the new video processing duties, including:
The first maximum channel processor of the selection idle carrying channel number value;
Judge the new channel processing task being assigned to after the first channel processor, the first channel processor is held
Whether carrier frequency road quantitative value exceedes default carrying channel number value;
When the first channel processor carrying channel number value is not less than default carrying channel number value, selection described first
Channel processor performs the new channel processing task;
The performance factor also includes the channel number value that present period is being broadcasted;
When there is the channel processor of idle carrying channel number value maximum described at least two in the processing system for video,
Select the frequency that present period is being broadcasted in the maximum channel processor of idle carrying channel number value described in described at least two
The minimum channel processor of road quantitative value, task is handled to perform the new channel;
When the vision processor is material processor, the video processing duties are that material is handled at task, the material
The performance factor of reason machine at least includes the material processing consumption figures and waiting task number that each material handles task, the material
Consumption figures is handled to handle the consumption figures to the material processor disposal ability of each material task;
It is described that according to the performance factor, selection performs the first vision processor of the new video processing duties, including:
Consumption figures is handled according to the material of each material processing task, the material that each material processor is being handled is obtained
The remaining processing consumption figures of processing task;
According to material processing consumption figures, waiting task number and each material processor of each material processing task
The remaining processing consumption figures of the material processing task of processing, calculates the processing load value of every material processor, the processing is born
Load value handles consumption figures and the element handled for the material of institute's pending processing material processing task of every material processor
The remaining processing consumption figures sum of material processing task;
The first minimum material processor of the processing load value is selected to perform the new material processing task.
2. according to the method described in claim 1, it is characterised in that the performance factor of the material processor also includes at residue
Manage ability value;
When the material processor that there is at least two processing load values minimum in the processing system for video, or there is at least one
When material processor and the difference of the processing load value of the first material processor are less than predetermined threshold value, select at the residue
Manage the maximum material processor of ability value and perform the new material processing task.
3. method according to claim 1 or 2, it is characterised in that methods described also includes:
Obtain the video file duration that the material handles task, the width of video image, high, the video code rate and sound of video file
Frequency code rate;
Consumption figures is handled according to the material that below equation calculates the material processing task,
MPC=D × (W × H × VB × a+AB × b),
Wherein, MPC is the material processing consumption figures that the material handles task, and D is video file duration, and W is video image
Width, H is the height of video image, and VB is the video code rate of video file, and the audio code rate of AB video files, a is default described
The Video processing consumption weights of material processing task, b consumes weights for the audio frequency process of the default material processing task.
4. method according to claim 2, it is characterised in that methods described also includes:
Obtain memory size value, CPU idleness and the internal memory idleness of the material processor;
The rest processing capacity value of the material processor is calculated according to below equation,
RPC=ARPCI × (ARPMI × MC),
Wherein RPC is the rest processing capacity value of the material processor, and ARPCI is the CPU idleness of the material processor,
ARPMI is the internal memory idleness of the material processor, and MC is the memory size value of the material processor.
5. a kind of video process apparatus, it is characterised in that processing system for video includes at least two vision processors, described device
Applied to each vision processor, described device includes:
First acquisition module, for when new video processing duties addition, obtaining the performance factor of each vision processor;
Selecting module, for according to the performance factor, selection to perform the first Video processing of the new video processing duties
Machine;
Distribute module, is handled for the new video processing duties to be assigned into first vision processor;
When the vision processor is channel processor, the video processing duties are that channel is handled at task, the channel
The performance factor of reason machine at least includes idle carrying channel number value;
The selecting module includes:
First choice submodule, for selecting the first maximum channel processor of the idle carrying channel number value;
Judging submodule, it is described for judging the new channel processing task being assigned to after the first channel processor
Whether the first channel processor carrying channel number value exceedes default carrying channel number value;
Second selection submodule, for carrying channel number value not less than default carrying channel number when the first channel processor
During value, the first channel processor is selected to perform the new channel processing task;
The performance factor also includes the channel number value that present period is being broadcasted;
Second selection submodule, for when there is idle carrying channel number value described at least two in the processing system for video
During maximum channel processor, in the maximum channel processor of idle carrying channel number value described in selection described at least two when
The minimum channel processor of channel number value that the preceding period is broadcasting, task is handled to perform the new channel;
When the vision processor is material processor, the video processing duties are that material is handled at task, the material
The performance factor of reason machine at least includes the material processing consumption figures and waiting task number that each material handles task, the material
Consumption figures is handled to handle the consumption figures to the material processor disposal ability of each material task;
The selecting module includes:
Acquisition submodule, the material for handling task according to each material handles consumption figures, obtains each material processing
The remaining processing consumption figures for the material processing task that machine is being handled;
Calculating sub module, consumption figures, waiting task number and every are handled for handling the material of task according to each material
The remaining processing consumption figures for the material processing task that individual material processor is being handled, the processing for calculating every material processor is born
Load value, the processing load value handles consumption figures for the material of institute's pending processing material processing task of every material processor
And the remaining processing consumption figures sum of the material processing task handled;
Submodule is selected, for selecting the first minimum material processor of the processing load value to perform the new material processing
Task.
6. device according to claim 5, it is characterised in that the performance factor of the material processor also includes at residue
Manage ability value;
The selection submodule, at the material that there is at least two processing load values minimum in the processing system for video
Reason machine, or there is at least one material processor with the difference of the processing load value of the first material processor less than default threshold
During value, the maximum material processor of the rest processing capacity value is selected to perform the new material processing task.
7. the device according to claim 5 or 6, it is characterised in that described device also includes:
Second acquisition module, the video file duration of task, the width of video image, high, video are handled for obtaining the material
The video code rate and audio code rate of file;
First computing module, for calculating the material processing consumption figures that the material handles task according to below equation,
MPC=D × (W × H × VB × a+AB × b),
Wherein, MPC is the material processing consumption figures that the material handles task, and D is video file duration, and W is video image
Width, H is the height of video image, and VB is the video code rate of video file, and the audio code rate of AB video files, a is default described
The Video processing consumption weights of material processing task, b consumes weights for the audio frequency process of the default material processing task.
8. device according to claim 6, it is characterised in that described device also includes:
3rd acquisition module, memory size value, CPU idleness and internal memory idleness for obtaining the material processor;
Second computing module, the rest processing capacity value for calculating the material processor according to below equation,
RPC=ARPCI × (ARPMI × MC),
Wherein RPC is the rest processing capacity value of the material processor, and ARPCI is the CPU idleness of the material processor,
ARPMI is the internal memory idleness of the material processor, and MC is the memory size value of the material processor.
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 CN104360909A (en) | 2015-02-18 |
CN104360909B true 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) |
Families Citing this family (4)
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 |
CN106250010B (en) * | 2016-07-06 | 2020-01-07 | 北京元心科技有限公司 | Picture display control method and system |
CN110708505B (en) * | 2019-09-18 | 2021-06-11 | 上海依图网络科技有限公司 | Video alarm method, device, electronic equipment and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101091175B (en) * | 2004-09-16 | 2012-03-14 | 辉达公司 | Load balancing |
-
2014
- 2014-11-04 CN CN201410613938.0A patent/CN104360909B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104360909A (en) | 2015-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104360909B (en) | A kind of method for processing video frequency and device | |
CN109857546B (en) | Multi-server mobile edge computing unloading method and device based on Lyapunov optimization | |
CN106201661B (en) | Method and apparatus for elastic telescopic cluster virtual machine | |
CN105828105A (en) | Distributed environment-based video transcoding system and video transcoding method | |
CN111552565A (en) | Multithreading screen projection method and device | |
CN109918201B (en) | Task unloading control method and system | |
US20190222857A1 (en) | Scheduler of Processes Having Timed Predictions of Computing Loads | |
CN107026900B (en) | Shooting task allocation method and device | |
CN105979007A (en) | Acceleration resource processing method and device and network function virtualization system | |
US9955620B2 (en) | Formation of equipment families on fitting lines | |
CN105389206B (en) | A kind of cloud computation data center resources of virtual machine quickly configuration method | |
US20130046808A1 (en) | Methods and systems for distributed processing on consumer devices | |
CN109525500A (en) | A kind of information processing method and information processing unit of self-adjusting threshold value | |
CN106454402A (en) | Transcoding task scheduling method and device | |
CN103503412A (en) | Method and device for scheduling resources | |
CN102860026A (en) | Display device, display system, displaying method, and program | |
US9591067B2 (en) | Methods and apparatus for allocating cloud-based media resources | |
CN109284229A (en) | A kind of dynamic adjusting method and relevant device based on QPS | |
CN109684077A (en) | Resource dynamic allocation and feedback method and device for spark streaming | |
CN104951368B (en) | Resource dynamic allocation device and method | |
CN106791648B (en) | Monitoring video analysis method and device | |
CN104348886A (en) | Information processing method and electronic equipment | |
CN109842665B (en) | Task processing method and device for task allocation server | |
CN109508911A (en) | Row's vehicle method and system of car rental | |
Badri et al. | Multi-stage stochastic programming for service placement in edge computing systems: Poster |
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 |