Embodiment
The embodiment of the invention provides a kind of implementation method and relevant device and system that reduces code check.Below be elaborated respectively.
Embodiment one,
See also Fig. 1, an embodiment who reduces the implementation method of code check in the embodiment of the invention comprises:
101, obtain the first video recording data rate that the business monitoring platform receives from headend equipment, and the maximum of memory device support writes data rate;
Step 101 can be carried out by the business monitoring platform, also can be carried out by other newly added equipment.
The business monitoring platform can connect at least one device front end PU, the first video recording data rate is the video recording data rate sum that the business monitoring platform receives from all headend equipments, for example, if have 3 PU, the business monitoring platform is respectively 2Mbps, 4Mbps, 6Mbps from the video recording data rate that each PU receives, so, the first video recording data rate is three speed sums, i.e. 12Mbps.
It is that the per second maximum that storage device performance is supported writes data volume that the maximum of memory device support writes data rate.During by business monitoring platform execution in step 101, can write data rate by the maximum that memory device obtains the memory device support and report to the business monitoring platform.
Obtain the first video recording data rate and can adopt existing known technology with the maximum specific implementation that writes data rate, do not give unnecessary details herein.
102, whether the maximum of judging the memory device support writes data rate less than the first video recording data rate, if then execution in step 103, otherwise end operation;
The performance of memory device just often, the maximum of memory device support write data rate should greater than the business monitoring platform from headend equipment receive first the video recording data rate, when memory device when former thereby performance seriously descends because of disk failures or power failure etc., the maximum of its support writes data rate can be less than the first video recording data rate.Therefore, in the present embodiment, when the maximum of memory device support writes data rate less than the first video recording data rate, send the request that reduces code check to PU, make the video flowing after headend equipment reduces the concurrent sending bit rate reduction of video code rate, to reduce the performance requirement to memory device, when reducing storage device performance and descending to the professional influence of recording a video.
Step 102 can be carried out by the business monitoring platform, also can be carried out by other newly added equipment.
Need to prove herein, when storage device performance continues slowly to descend, the maximum of its support writes data rate not necessarily can be less than the first video recording data rate, but can cause the business monitoring platform to send to the second video recording data rate of memory device less than the first video recording data rate, in the business monitoring platform, record a video data buffer zone accumulation of the data that cause recording a video, thereby cause the data of this buffering area accumulation to account for the total magnitude proportion of buffering area, namely utilization rate surpasses normal value.Therefore, further, present embodiment can also comprise:
Write data rate greater than the first video recording data rate if judge maximum, then obtain the utilization rate of video recording data buffer zone in the business monitoring platform, judge whether this utilization rate surpasses the threshold value that presets, if surpass, then forward end equipment sends the request that reduces code check, continues slow decline to find storage device performance, and in time impels headend equipment to reduce code check, to reduce the performance requirement to memory device, when reducing storage device performance and descending to the professional influence of recording a video.
103, forward end equipment sends the request that reduces code check, to reduce the performance requirement to memory device.
Step 103 can be carried out by the business monitoring platform, also can be carried out by other newly added equipment.
Headend equipment can reduce video code rate according to local policy after receiving the request that reduces code check, and sends the video flowing that reduces behind the code check to the business monitoring platform, thereby reduces the performance requirement to memory device.For example, can preserve a difference that presets at headend equipment, after headend equipment receives the request that reduces code check, directly video code rate be reduced this difference.
From as can be known above, because the performance of memory device just often, the maximum of memory device support writes data rate should be greater than the first video recording data rate, therefore, in the present embodiment, when maximum write data rate less than the first video recording data rate, forward end equipment sent the request that reduces code check, so that headend equipment reduces video code rate, thereby reduce the performance requirement to memory device.Compared with prior art, present embodiment can detect storage device performance and descend, and can reduce performance requirement to memory device adaptively, so that memory device improves the satisfaction that the video recording performance of services requires, can the random drop packet thereby the business monitoring platform is reduced not even, reduce even avoided influence to the video quality.
Embodiment two,
See also Fig. 2, another embodiment that reduces the implementation method of code check in the embodiment of the invention comprises:
201, obtain the first video recording data rate that the business monitoring platform receives from headend equipment, and the maximum of memory device support writes data rate;
Step 201 please refer to the explanation to step 101.
202, whether the maximum of judging the memory device support writes data rate less than the first video recording data rate, if then execution in step 203, otherwise end operation;
Step 202 please refer to the explanation to step 102.
203, the maximum with the first video recording data rate and memory device support writes the poor of data rate, obtains code check divided by the first video recording data rate and reduces percentage, and this code check reduction percentage is used to indicate headend equipment and reduces video code rate by it;
Step 203 can be carried out by the business monitoring platform, also can be carried out by other newly added equipment.
It is the percentage that headend equipment need reduce former video code rate that code check reduces percentage, as 5%.
For instance, if the first video recording data rate is 600Mbps, it is 500Mbps that the maximum of memory device support writes data rate, and so, it is (600-500)/600=16.7% that code check reduces percentage.
204, forward end equipment sends the request that reduces code check, carries code check in this request and reduces percentage, to reduce the performance requirement to memory device;
Step 204 please refer to the explanation to step 103.
205, headend equipment obtains code check and reduces percentage after receiving the request that reduces code check from this request;
Be understandable that also can preserve a code check that presets at headend equipment and reduce percentage, headend equipment receives after the request that reduces code check, obtains this code check that presets and reduces percentage.
206, reduce video code rate, the video code rate size after the reduction is long-pending with difference and the former video code rate size of code check reduction percentage smaller or equal to 1;
Getting access to after code check reduces percentage, calculate earlier 1 with code check to reduce the difference of percentage long-pending with former video code rate size, this is long-pending as the value that needs at least the video code rate size is reduced to, i.e. the maximum of the video code rate size after the reduction.For example, former video code rate size is 2Mbps, and it is 10% that code check reduces percentage, and the maximum of the video code rate size after reducing so is 2 * (1-10%)=1.8Mbps.
Calculate after the maximum of the video code rate size after the reduction, headend equipment can reduce video code rate by reducing frame per second, resolution, makes its size be no more than this maximum, and concrete executive mode is not given unnecessary details for existing known technology herein.
207, send to reduce video flowing behind the code check to the business monitoring platform.
Headend equipment send to reduce video flowing behind the code check to the business monitoring platform, thereby has reduced by the first video recording data rate that the business monitoring platform receives from headend equipment, thereby has reduced the performance requirement to memory device.
Need to prove herein, no matter what reduce, as long as headend equipment has reduced video code rate, just can reduce the performance requirement to memory device.Therefore, also can adopt the video code rate size after alternate manner is reduced, for example, reduce a difference that presets.For example, the former video code rate size of headend equipment is 2Mbps, the difference that presets is 0.5Mbps, so, headend equipment is after receiving the request that reduces code check, can not obtain code check and reduce percentage, and reduce video code rate according to the difference that presets, make the video code rate size after the reduction be 1.5Mbps.
From as can be known above, in the present embodiment, maximum according to the first video recording data rate and memory device support writes data rate acquisition code check reduction percentage, headend equipment reduces percentage according to this code check and reduces video code rate, after making the reduction code check, the first video recording data rate writes data rate less than the maximum of memory device support, namely make memory device still can satisfy the requirement of video recording performance of services, thereby make the business monitoring platform can the random drop packet, avoid the influence to the video quality.
Embodiment three,
Embodiment illustrated in fig. 1 can the execution by the business monitoring platform is to cooperate the business monitoring platform, can obtain maximum by memory device and write data rate and send to the business monitoring platform.With this situation the implementation method that reduces code check in the embodiment of the invention is set forth below.
See also Fig. 3, another embodiment that reduces the implementation method of code check in the embodiment of the invention comprises:
301, the memory device maximum of periodically obtaining the memory device support writes data rate, judge that maximum that this cycle obtains writes the mean value that maximum that data rate obtains than a preceding predetermined quantity cycle writes data rate and descends whether surpass predetermined threshold value, if then execution in step 302;
If judge when maximum that this cycle obtains writes mean value decline that maximum that data rate obtains than a preceding predetermined quantity cycle writes data rate and is no more than predetermined threshold value, can be not do not send the maximum that this cycle obtains to the business monitoring platform and write data rate, end operation.
For instance, suppose that the maximum of being gathered a memory device support by per 1 second of memory device writes data rate, and predetermined quantity is 5, predetermined threshold value is 5%, the maximum of gathering in preceding 5 seconds writes data rate and is respectively 54Mbps, 52Mbps, 53Mbps, 55Mbps, 51Mbps, can obtain:
The mean value that the maximum obtained of preceding 5 cycles writes data rate is 53Mbps, if it is 55Mbps that the maximum of gathering in the 6th second writes data rate, so, the maximum of gathering in the 6th second writes data rate 55Mbps than this mean value 53Mbps decline (55-53)/53=3.8%, be lower than threshold value 5%, end operation; If it is 57Mbps that the maximum of gathering in the 6th second writes data rate, so, the maximum of gathering in the 6th second writes data rate 57Mbps than this mean value 53Mbps (57-53)/53=7.5% that descends, and is higher than threshold value 5%, and need send the maximum of obtaining in the 6th second to the business monitoring platform and write data rate.As can be seen, the maximum that this cycle is obtained writes data rate and compares with the mean value that maximum that a preceding predetermined quantity cycle obtains writes data rate, rather than the maximum with cycle last time obtains that this cycle is obtained writes data rate and compares, not only can in time find the problem that storage device performance descends, can prevent the frequent maximum ping-pong phenomenon that writes data rate that sends again.
Memory device also can be when maximum writes data rate and satisfies other condition, for example, when the decrease speed that maximum writes data rate reaches predetermined threshold value, sends maximum to the business monitoring platform and writes data rate.Be understandable that, memory device also regularly (as 5 seconds) obtain maximum and write data rate and send to the business monitoring platform.
302, memory device sends the maximum that this cycle obtains to the business monitoring platform and writes data rate;
303, the business monitoring platform obtains the first video recording data rate that receives from device front end PU, judges that whether maximum writes data rate less than this first video recording data rate, if be not less than, then execution in step 304, otherwise execution in step 305;
Step 303 please refer to the explanation to step 102.
304, the business monitoring platform obtains the utilization rate of video recording data buffer zone in the business monitoring platform, judges whether this utilization rate surpasses the threshold value that presets, if surpass, then execution in step 305, otherwise end operation;
Herein, the threshold value that presets can find that the sensitivity requirement of storage device performance decline is more high according to finding that the sensitivity that storage device performance descends requires to arrange, and threshold value is more little.
305, the business monitoring platform obtains the second video recording data rate that the business monitoring platform sends to memory device, with the first video recording data rate and second the poor of data rate of recording a video, obtain code check divided by the first video recording data rate and reduce percentage, this code check reduction percentage is used to indicate headend equipment and reduces video code rate by it;
For instance, if the business monitoring platform is 600Mbps from the first video recording data rate that PU receives, the second video recording data rate that the business monitoring platform sends to memory device is 500Mbps, so, it is (600-500)/600=16.7% that code check reduces percentage, can add certain weighted value, as 5%, so, it is 21.7% that code check reduces percentage, adds that certain weighted value can prevent that the adjustment of PU code check is too frequent.
Be understandable that, in step 403, judge maximum writing under the situation of data rate less than the first video recording data rate of memory device support, also the first video recording data rate and this maximum can be write the poor of data rate, obtain code check divided by the first video recording data rate and reduce percentage.
306, business monitoring platform forward end equipment sends the request that reduces code check, carries code check in this request and reduces percentage;
Further, before execution in step 306, the business monitoring platform can also be judged the scheduled time, and in 8 seconds, whether forward end equipment sent the request that reduces code check, and if not, then execution in step 306, and is too frequent to prevent that headend equipment from adjusting code check.
307, headend equipment obtains code check reduction percentage from the request that reduces code check, and reduces video code rate, and the video code rate size after the reduction is long-pending with difference and the former video code rate size of code check reduction percentage smaller or equal to 1;
If a plurality of headend equipments are arranged, for example, so, the maximum that each headend equipment all multiply by 1 difference that reduces percentage (as 21.7%) with code check the video code rate size after local former video code rate size (as 2Mbps) is reduced is 1.57Mbps.
Calculate after the maximum V1 of the video code rate size after the reduction, headend equipment can reduce video code rate in the following way, and (suppose that current frame rate is Fc, current resolution is Ec, and current video code check size is Vc to make its size be no more than V1; Standard frame per second Fmax is 25, and resolution E is from small to large: 1:176*144 pixel (pixels), 2:352*288pixels, 3:704*288pixels, 4:704*576pixels, 5:1280*720pixels, 6:1920*1080pixels):
(1), whether judge current frame rate Fc less than 10fps, if be not less than, execution in step (2) then, otherwise execution in step (4);
(2), adjust current frame rate Fc=Fc-5;
(3), judge V1 whether less than current video code check size Vc, if, execution in step (1) then, otherwise with Vc as the video code rate size after reducing, end operation;
(4), adjust current resolution Ec=Ec-1, and adjust current frame rate Fc=Fmax, and execution in step (3).
308, headend equipment send to reduce video flowing behind the code check to the business monitoring platform;
Under the normal situation of network status transmission, if the video code rate of headend equipment is 1.57Mbps, so, headend equipment also is 1.57Mbps to the speed that the business monitoring platform send to reduce the video flowing behind the code check, therefore, reduce the video code rate of headend equipment, also just reduced by the first video recording data rate that the business monitoring platform receives from headend equipment, thereby reduced the performance requirement to memory device.
309, the business monitoring platform send to reduce video flowing behind the code check to memory device.
As known from the above, in the present embodiment, when the business monitoring platform writes data rate less than the first video recording data rate in the maximum of memory device support, perhaps, when the utilization rate of video recording data buffer zone surpasses the threshold value that presets in the business monitoring platform, determine that storage device performance descends, and obtain code check reduction percentage according to the first video recording data rate and the second video recording request of data, the request headend equipment reduces percentage by this code check and lowers video code rate; Headend equipment reduces percentage according to this code check and reduces after video code rate, sends the video flowing that reduces behind the code check to the business monitoring platform, thereby has reduced the performance requirement to memory device.Compared with prior art, present embodiment can detect storage device performance and descend, and can reduce performance requirement to memory device adaptively, so that memory device still can satisfy the requirement of video recording performance of services, thereby make the business monitoring platform can the random drop packet, avoided the influence to the video quality.
Below the relevant device in the embodiment of the invention and system are elaborated.
Embodiment four,
See also Fig. 4, the business monitoring platform embodiment comprises in the embodiment of the invention:
First acquisition module 401 be used for obtaining the first video recording data rate that the business monitoring platform receives from headend equipment, and the maximum of memory device support writes data rate;
First judge module 402 is used for judging that whether maximum writes data rate less than the first video recording data rate, if then trigger sending module 403 and carry out associative operation;
Sending module 403 is used for forward end equipment and sends the request that reduces code check, so that headend equipment reduces video code rate.
Further, reduce the request of code check and can carry code check reduction percentage, this code check reduction percentage is used to indicate headend equipment and reduces video code rate by it, and in this case, the business monitoring platform can also comprise:
The first percentage acquisition module, be used for first judge module 402 judge maximums write data rate less than the first video recording data rate after, before sending module 403 is carried out associative operation, the first video recording data rate and maximum are write the poor of data rate, obtain code check divided by the first video recording data rate and reduce percentage, and trigger sending module and carry out associative operation.
Further, the business monitoring platform can also comprise:
Second acquisition module is used for obtaining the utilization rate of business monitoring platform video recording data buffer zone;
Second judge module is used for judging whether the utilization rate of video recording data buffer zone surpasses the threshold value that presets, if surpass, then triggers sending module 403 and carries out associative operation, otherwise end operation.
First judge module 402 can also be used for triggering second acquisition module and carrying out associative operation when judging that maximum writes data rate greater than the first video recording data rate.In this case, reduce the request of code check and also can carry code check reduction percentage, this code check reduction percentage is used to indicate headend equipment and reduces video code rate by it, and in this case, the business monitoring platform can also comprise:
The 3rd acquisition module was used for before sending module 403 is carried out associative operation, obtained the second video recording data rate that the business monitoring platform sends to memory device;
The second percentage acquisition module for the poor of data rate that the first video recording data rate and second is recorded a video, obtains code check divided by the first video recording data rate and reduce percentage, and triggering sending module 403 carried out associative operations.
From as can be known above, because the performance of memory device just often, the maximum of memory device support writes data rate should be greater than the first video recording data rate, therefore, in the present embodiment, when maximum write data rate less than the first video recording data rate, business monitoring platform forward end equipment sent the request that reduces code check, so that headend equipment reduces video code rate, thereby reduce the performance requirement to memory device.Compared with prior art, business monitoring platform in the present embodiment can detect storage device performance and descend, and can reduce performance requirement to memory device adaptively, so that memory device improves the satisfaction that the video recording performance of services requires, can the random drop packet thereby the business monitoring platform is reduced not even, reduce even avoided influence to the video quality.
Embodiment five,
See also Fig. 5, headend equipment embodiment comprises in the embodiment of the invention:
Receiver module 501 is used for receiving the request that reduces code check;
Acquisition module 502 is used for obtaining code check and reduces percentage, and this code check reduction percentage is used to indicate headend equipment and reduces video code rate by it;
Reduce module 503, for reducing video code rate, the video code rate size after the reduction is long-pending with difference and the former video code rate size of code check reduction percentage smaller or equal to 1;
Sending module 504 is for the video flowing behind business monitoring platform transmission reduction code check.
Need to prove herein, as long as headend equipment has reduced video code rate, just can reduce the performance requirement to memory device.Therefore, also can preserve a difference that presets at headend equipment, after receiver module 501 receives the request that reduces code check, reduce module 503 and directly video code rate is reduced this difference.
Embodiment six,
See also Fig. 6, memory device embodiment comprises in the embodiment of the invention:
Acquisition module 601 writes data rate for the maximum of obtaining the memory device support;
Sending module 602 is used for writing data rate to the maximum that business monitoring platform transmission acquisition module obtains.
Alternatively, acquisition module 601 can comprise and obtain submodule, and the maximum that is used for periodically obtaining the memory device support writes data rate; In this case, memory device can also comprise:
Judge module 603, be used for before sending module 602 is carried out associative operation, judge that maximum that this cycle obtains writes the mean value that maximum that data rate obtains than a preceding predetermined quantity cycle writes data rate and descends whether surpass predetermined threshold value, if then trigger sending module and send the maximum that this cycle obtains to the business monitoring platform and write data rate.
Embodiment seven,
See also Fig. 7, network video monitor and control system embodiment comprises in the embodiment of the invention:
Business monitoring platform 701 be used for obtaining the first video recording data rate that receives from headend equipment, and the maximum of memory device support writes data rate; Judge that whether this maximum writes data rate less than the first video recording data rate; If then forward end equipment sends the request that reduces code check, to reduce the performance requirement to memory device;
Headend equipment 702 is used for the request of the reduction code check of reception business monitoring platform transmission; Press local policy and reduce video code rate, and send the video flowing that reduces behind the code check to the business monitoring platform;
Memory device 703 writes data rate for the maximum of obtaining the memory device support; Send this maximum to the business monitoring platform and write data rate.
The business monitoring platform can also be used for when judging that maximum writes data rate greater than the first video recording data rate, obtain the utilization rate of video recording data buffer zone in the business monitoring platform, judge whether this utilization rate surpasses the threshold value that presets, if surpass, then forward end equipment sends the request that reduces code check.
Memory device 703 can comprise:
Acquisition module writes data rate for the maximum of periodically obtaining the memory device support;
Judge module is used for judging that maximum that this cycle obtains writes mean value that maximum that data rate obtains than a preceding predetermined quantity cycle writes data rate and descends whether above predetermined threshold value, if then trigger sending module execution associative operation;
Sending module is used for sending the maximum that this cycle obtains to the business monitoring platform and writes data rate.
Relevant device in the embodiment of the invention and system all can realize the function described in the said method embodiment.
From as can be known above, because the performance of memory device just often, the maximum of memory device support writes data rate should be greater than the first video recording data rate, therefore, in the present embodiment, obtaining maximum by memory device writes data rate and sends to the business monitoring platform, when the business monitoring platform writes data rate less than the first video recording data rate in maximum, forward end equipment sends the request that reduces code check, headend equipment reduces behind the video code rate to business monitoring equipment and sends the video flowing that reduces behind the code check, thereby reduces the performance requirement to memory device.Compared with prior art, present embodiment can detect storage device performance and descend, and can reduce performance requirement to memory device adaptively, so that memory device improves the satisfaction that the video recording performance of services requires, can the random drop packet thereby the business monitoring platform is reduced not even, reduce even avoided influence to the video quality.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of above-described embodiment is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read-Only Memory), random asccess memory (RAM, Random Access Memory), disk or CD etc.
More than the implementation method of reduction code check that the embodiment of the invention is provided and relevant device and system be described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.