Summary of the invention
The invention provides a kind of dynamic adjusting method and system of video monitoring, to solve the problem.
The invention provides a kind of dynamic adjusting method of video monitoring.Said method comprises the following steps: capturing and coding server obtains the fault right weight of the video collector of zones of different in predetermined period, and the fault right weight of the zones of different of acquisition is sent to control server; Control server, according to the fault right weight of zones of different, according to the fault right weight scope in each region stored and the table of comparisons of monitoring periods, determines the monitoring periods of video monitor, and sends Monitoring instruction to video monitor according to monitoring periods; After video monitor receives Monitoring instruction, subscribe to video flowing to streaming media server, and judge whether video flowing described in continuous reception, if continuous reception, then judge that whether the Frame of the described video flowing of continuous reception is consistent with setting data frame.
The present invention also provides a kind of dynamic debugging system of video monitoring, comprises control server, capturing and coding server, video collector, video monitor and streaming media server.Control server connects capturing and coding server and video monitor, and capturing and coding server connects video collector, streaming media server and video monitor, and video monitor connects streaming media server.Capturing and coding server, for obtaining the fault right weight of the video collector of zones of different in predetermined period, and is sent to control server by the fault right weight of the zones of different of acquisition.Control server, for the fault right weight according to zones of different, according to the fault right weight scope in each region stored and the table of comparisons of monitoring periods, determine the monitoring periods of video monitor, and send Monitoring instruction to described video monitor according to described monitoring periods.After video monitor receives described Monitoring instruction, subscribe to video flowing to streaming media server, and judge whether video flowing described in continuous reception, if continuous reception, then judge that whether the Frame of the described video flowing of continuous reception is consistent with setting data frame.
Compared to prior art, according to dynamic adjusting method and the system of video monitoring provided by the invention, capturing and coding server obtains the fault right weight of the video collector of zones of different in predetermined period, control server is according to the fault right weight of the zones of different obtained from capturing and coding server, according to the fault right weight scope in each region stored and the table of comparisons of monitoring periods, determine the monitoring periods of video monitor, and send Monitoring instruction to video monitor according to monitoring periods.So, the monitoring periods of regional can carry out dynamic conditioning according to the difference of the fault right weight in region, thus realizes the dynamic conditioning of video monitoring.In addition, after video monitor receives Monitoring instruction, subscribe to video flowing to streaming media server, and judge whether continuous reception video flowing, if continuous reception, then judge that whether the Frame of the video flowing of continuous reception is consistent with setting data frame.So, video monitor realizes the consistency monitoring to video flowing interruptibility and video stream data frame, can accurately positioning video picture extremely blocked by video flowing picture or frame number not to causing, thus improve the accuracy of video flow detection.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 1 shows that the flow chart of the dynamic adjusting method of the video monitoring that preferred embodiment according to the present invention provides.As shown in Figure 1, the dynamic adjusting method of video monitoring that present pre-ferred embodiments provides comprises step 101 ~ 103.
In step 101, capturing and coding server obtains the fault right weight of the video collector of zones of different in predetermined period, and the fault right weight of the zones of different of acquisition is sent to control server.Specifically, capturing and coding server obtains the fault frequency of the video collector of zones of different in predetermined period; The fault right weight of the video collector of capturing and coding server calculating zones of different equals the ratio of the fault frequency summation of the fault frequency of area video collector to be calculated and the video collector in all regions.
In the present embodiment, control server is by the running of capturing and coding server controls video collector.Specifically, control server passes through video acquisition direction and the angle of capturing and coding server controls video collector.Take video collector as camera be example, control server can control that camera carries out rotating, Nonlinear magnify or the operation such as to reduce.
In the present embodiment, capturing and coding server obtains video data stream from video collector, and video data stream is converted to RTMP data stream transmitting streaming media server, streaming media server can by above-mentioned RTMP data flow to client, and then client is by instrument displaying video information such as flash plug-in units.
In this, for three regions A, B, C, in the A of region, the number of video collector is such as three, and in the B of region, the number of video collector is such as two, and in the C of region, the number of video collector is such as five.But the present invention does not limit the number of video collector in each region.If the video collector in respective regions breaks down (such as, video collector cannot normal operation or control server normally cannot control video collector when operating), video collector or control server can send signalling trouble to capturing and coding server, the fault frequency of the video collector of all regions of capturing and coding server statistics in predetermined period (such as, 12 hours).In this, such as in a predetermined period, the results are as follows for capturing and coding server: the fault frequency of the video collector of region A is 1 time, the fault frequency of the video collector of region B is 0 time, and the fault frequency of the video collector of region C is 4 times.Now, according to the account form of the fault right weight of different video collector, the fault right weight=4/5=80% of the fault right weight=0/5=0 of the fault right weight=1/5=20% of region A, region B, region C.In addition, capturing and coding server can add up the fault frequency of the video collector in all regions again in next predetermined period, and obtains the new fault right weight of regional.Meanwhile, the fault right weight of the zones of different of acquisition can be sent to control server by capturing and coding server.
In step 102, described control server is according to the fault right weight of zones of different, according to the fault right weight scope in each region stored and the table of comparisons of monitoring periods, determine the monitoring periods of video monitor, and send Monitoring instruction to described video monitor according to described monitoring periods.
In the present embodiment, control server stores the fault right weight scope in each region and the table of comparisons of monitoring periods.In this, still for three regions A, B, C, the table of comparisons of fault right weight scope and monitoring periods is such as shown in table 1.But the present invention is not limited thereto.
Table 1
In table 1, T1, T2, T3 can be arranged according to actual conditions, only need to meet T3<T2<T1.Wherein, monitoring periods represents the monitoring periods of video monitor to the video data stream of respective regions.
With the fault right weight of region A in step 101 for 20%, the fault right weight of region B is 0, the fault right weight of region C is 80% is example, known according to table 1, the monitoring periods of region A be T2(such as, 8 hours), the monitoring periods of region B be T1(such as, 2 days), the monitoring periods of region C be T3(such as, 4 hours).
In the present embodiment, if control server is according to the table of comparisons of fault right weight scope and monitoring periods, determine the monitoring periods of the video monitor of respective regions, then send Monitoring instruction to video monitor according to the monitoring periods determined.For example, the sense cycle of region C be T3(such as, 4 hours), then control server is when reaching T3 duration at every turn, sends Monitoring instruction to video monitor, and whether the video flowing that notice video monitor starts monitored area C normal.In addition, when capturing and coding server is after next predetermined period obtains the new fault right weight of regional, the new fault right weight obtained is sent to control server, control server is again according to the monitoring periods of above-mentioned table of comparisons determination regional, and carry out video flowing monitoring according to the monitoring periods notice video monitor redefined, thus realize the dynamic conditioning of video surveillance.
In step 103, after described video monitor receives described Monitoring instruction, subscribe to video flowing to streaming media server, and judge whether video flowing described in continuous reception, if continuous reception, then judge that whether the Frame of the described video flowing of continuous reception is consistent with setting data frame.
In the present embodiment, after video monitor receives the Monitoring instruction of control server transmission, subscribe to video flowing to streaming media server, if video monitor is from streaming media server successful subscription video flowing, then judge whether to continue from streaming media server receiver, video stream.If video monitor is not from streaming media server successful subscription video flowing, then send abnormal information to the mailbox preset or mobile phone to remind, meanwhile, send command for stopping notice capturing and coding server, after capturing and coding server receives command for stopping, stop capturing and coding process.If video monitor is from streaming media server successful subscription video flowing, but non-continuous reception video flowing, then video monitor sends abnormal information prompting to the mailbox preset or mobile phone, simultaneously, send command for stopping notice capturing and coding server, after capturing and coding server receives described command for stopping, stop capturing and coding process.If video monitor is from streaming media server successful subscription video flowing, and energy continuous reception video flowing, then video monitor judges that whether the Frame of the video flowing of continuous reception is consistent with setting data frame.If video monitor is from streaming media server successful subscription video flowing, and when the Frame of the video flowing of continuous reception is consistent with setting data frame, video monitor renews one's subscription video flowing, and the interruptibility of cycle criterion video flowing and the consistency of Frame.If video monitor is from streaming media server successful subscription video flowing, and the Frame of the video flowing of continuous reception and setting data frame inconsistent time, video monitor sends abnormal information to the mailbox preset or mobile phone and reminds, simultaneously, send command for stopping notice capturing and coding server, after capturing and coding server receives described command for stopping, stop capturing and coding process.
In addition, in the present embodiment, whether video monitor sends heartbeat packet in setting cycle to control server normal to monitor control server.Specifically, video monitor can send heartbeat packet every setting-up time (such as, 1 hour) to control server.After control server receives heartbeat packet, can return heartbeat packet to video monitor, video monitor receives the heartbeat packet returned, and meeting continuous surveillance, does not receive heartbeat packet, send unexpected message, and sends abnormal information prompting to the mailbox preset and mobile phone.
Figure 2 shows that the schematic diagram of the dynamic debugging system of the video monitoring that preferred embodiment according to the present invention provides.As shown in Figure 2, the dynamic debugging system of video monitoring that preferred embodiment of the present invention provides comprises control server 18, capturing and coding server 12, video collector 10, video monitor 14 and streaming media server 16.Control server 18 connects capturing and coding server 12 and video monitor 14, and capturing and coding server 12 connects video collector 10, streaming media server 16 and video monitor 14, and video monitor 14 connects streaming media server 16.
In the present embodiment, capturing and coding server 12, for obtaining the fault right weight of the video collector 10 of zones of different in predetermined period, and is sent to control server 18 by the fault right weight of the zones of different of acquisition.Control server 18, for the fault right weight according to zones of different, according to the fault right weight scope in each region stored and the table of comparisons of monitoring periods, determines the monitoring periods of video monitor 14, and sends Monitoring instruction to video monitor 14 according to monitoring periods.After video monitor 14 receives Monitoring instruction, subscribe to video flowing to streaming media server 16, and judge whether video flowing described in continuous reception, if continuous reception, then judge that whether the Frame of the described video flowing of continuous reception is consistent with setting data frame.About the specific operation process of described system with described in said method, therefore repeat no more in this.
In sum, the dynamic adjusting method of the video monitoring provided according to present pre-ferred embodiments and system, capturing and coding server obtains the fault right weight of the video collector of zones of different in predetermined period, control server is according to the fault right weight of the zones of different obtained from capturing and coding server, according to the fault right weight scope in each region stored and the table of comparisons of monitoring periods, determine the monitoring periods of video monitor, and send Monitoring instruction to video monitor according to monitoring periods.So, the monitoring periods of regional can carry out dynamic conditioning according to the difference of the fault right weight in region, thus realizes the dynamic conditioning of video monitoring.In addition, after video monitor receives Monitoring instruction, subscribe to video flowing to streaming media server, and judge whether continuous reception video flowing, if continuous reception, then judge that whether the Frame of the video flowing of continuous reception is consistent with setting data frame.So, video monitor realizes the consistency monitoring to video flowing interruptibility and video stream data frame, can accurately positioning video picture extremely blocked by video flowing picture or frame number not to causing, thus improve the accuracy of video flow detection.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.