Be applied to the method for real-time monitoring and the video management server of video monitoring system
Technical field
The present invention relates to the video monitoring technology in the communication technical field, relate in particular to a kind of method for real-time monitoring and video management server that is applied to video monitoring system.
Background technology
Along with the development of video/audio encoding and decoding technology and Network storage technology, with the view data digitlization of camera, and in the Internet transmission over networks, that storage has formed digital video monitoring is technological.
Existing video monitoring system is as shown in Figure 1, mainly is made up of following elementary cell: and hardware coder (Encoder, EC), VM (Video Management; Video management server), MS (Media Switch; The exchange of media server), memory cell (Storage unit), DM (Data Management Server, data management server), DC (Decoder, decoder), VC (Video Client; And corresponding software management system and web-transporting device videoconference client).Wherein:
EC: be positioned at the supervisory control system front end, can with the analog audio-video signal according to specified format, specify code check encode, can clean culture or multicast give DC equipment and client program request, and store in the memory cell;
DC: the video-audio signal and the output that can the audio/video coding signal in the system be reduced into simulation;
VM: be the video management server in the supervisory control system, can manage control supervisory control system all devices concentratedly, dispatch various video monitoring services, and management distributes the supervisory user authority;
MS: under the unicast networks environment, this server can provide the distribution of duplicating of clean culture sound Media Stream, and simultaneously for extranet access, this server can also provide the Intranet multicast to change the outer net unicast services;
DM: can carry out uniform resource management and configuration and fault detect to memory cell;
Memory cell: (Redundant Array of Independent Disks, RAID abbreviates " disk array " as can to adopt RAID.Its principle is to utilize the combination of a plurality of disks to be linked to be an array, realizes reading and writing data in magnetic disk with quick, accurate and safe mode, thereby reaches a kind of means that improve reading and writing data speed and fail safe.
VC: can carry out the live video monitoring through this equipment, also can be to EC fixed time section playback history video.
Video monitoring system can realize live function, i.e. monitoring in real time, its is set up and to comprise that client arrives VM server, the VM server signaling control to front end EC, pass through again MS Media Stream duplicate the process that is distributed to client.
As shown in Figure 1, check that through VC the flow process of video monitoring data mainly comprises:
Pass through HTTP (HyperText Transfer Protocol between VM and the VC; HTTP) and SIP (Session Initiation Protocol, Session initiation Protocol) interactive videography head passage, window slogan, accept the information (step 1) among the figure such as Media Stream port; VM is through the information such as IP port of privately owned MAI (Media Access Interface, media interviews interface protocol) notice of settlement MS receiving terminal, and MS responds its RTP (step 3) among the figure; VM notifies the RTP of MS to EC and VC respectively, and EC uses the destination interface of this receiving port number as Media Stream, and it is the Media Stream (step 4 among the figure, 5) of transmit port that VC receives destination interface.Above-mentioned steps is for sending out the preceding preparation of stream, and last VM notifies 3 equipment to send out stream more respectively and receives stream and gets final product.
Live type comprises round cut and program request, and wherein, round cut is meant the video of on the video pane of VC or monitor, playing a plurality of cameras in turn, and program request is meant plays the video of specifying camera on the video pane of VC or monitor.
The inventor finds that there is following defective at least in prior art in realizing process of the present invention:
Live for round cut, the resource switch time interval needs the regular hour, and image can produce pause, because each switchable resource need be the live stream resource allocation through VM again all, for the very high business of real-time certain influence is arranged.
This shows that round cut of the prior art is live, has a fixed response time, has reduced live real-time.
Summary of the invention
The invention provides a kind of method for real-time monitoring and video management server that is applied to video monitoring system, the time delay in order to the real-time monitoring that reduces the round cut mode improves the real-time of monitoring in real time.
In the method for real-time monitoring that is applied to video monitoring system provided by the invention; Comprise video management server VM, exchange of media server MS, encoder EC and videoconference client VC in the said video monitoring system; Be provided with pre-processing period corresponding to the round cut cycle; Said pre-processing period arrived before the time of advent in corresponding round cut cycle, and this method comprises:
When said pre-processing period arrived, VM notified corresponding EC of next round cut cycle that Media Stream is forwarded to MS;
When the said next round cut cycle arrives, VM notice MS will be transmitted to VC from the said corresponding received Media Stream of EC of next round cut cycle, and notice VC receives the Media Stream that MS transmits.
The video management server that is applied to video monitoring system provided by the invention also comprises MS and VC in the said video monitoring system, this video management server comprises:
Pre-processing period is provided with module, is used for the corresponding round cut cycle pre-processing period is set, and said pre-processing period arrived before the time of advent in corresponding round cut cycle;
Transmit pretreatment module, be used for when said pre-processing period arrives, notify corresponding EC of next round cut cycle that Media Stream is forwarded to MS;
Transmit processing module, be used for when the said round cut cycle arrives, notice MS will be transmitted to VC from the said corresponding received Media Stream of EC of next round cut cycle, and notice VC receives the Media Stream that MS transmits.
Compared with prior art, the present invention has following useful technique effect:
Each round cut cycle all can at first be carried out preliminary treatment before arriving, that is, the EC that switches to through the next wheel of VM notice is forwarded to MS with Media Stream; So that be about to round cut to EC transmit and prepare to carrying out Media Stream between the MS, that is, set up the media flow transmission passage of EC in advance to MS; And through this channel transfer Media Stream; In case the round cut cycle arrives, VM gives VC as long as transmit Media Stream through notice MS, and notice VC receiving media stream; Can set up MS to the media flow transmission passage between the VC, thereby realize the live telecast of Media Stream.And in the prior art, when each round cut cycle arrived, VM will set up the media flow transmission passage of current EC to MS, and this process will take VM resource overhead and Internet resources expense, then can influence live real-time.This shows; The present invention compares with the live flow process of the round cut of prior art, owing to before the round cut cycle arrives, carry out preliminary treatment, the operation that round cut cycle due in is carried out reduces to some extent; Therefore can reduce the time delay of setting up the media flow transmission passage, improve live real-time.
Description of drawings
Fig. 1 is the configuration diagram of existing video monitoring system;
The live schematic flow sheet of round cut that Fig. 2 provides for the embodiment of the invention;
The structural representation of the video management server that Fig. 3 provides for the embodiment of the invention.
Embodiment
To the problem that prior art exists, the embodiment of the invention adopts pretreated mode to transmit live stream, thereby saves user's program request and live time of round cut.
Below in conjunction with accompanying drawing the embodiment of the invention is described in detail.
Present embodiment has been described the live flow process of round cut.Wherein, be provided with pre-processing period corresponding to the round cut cycle, this pre-processing period arrived before the time of advent in corresponding round cut cycle.Pre-processing period can be confirmed according to network performance, the live factors such as real-time requirement of round cut of video monitoring system than the lead in round cut cycle; Under the good situation of the network performance of video monitoring system; This lead is set to smaller value; Otherwise this lead is set to higher value; Again for example, under the demanding situation of real-time of round cut live telecast, this lead is set to higher value, otherwise is set to smaller value.For example, the round cut cycle was 10 seconds, and then pre-processing period also was 10 seconds, just reached preceding 1 second before the round cut cycle arrives.During concrete the realization; Round cut cycle timer and preliminary treatment timer can be set; The timing length of timer identical (as being for 10 seconds) when carrying out round cut live telecast, at first starts the preliminary treatment timer; (like 1 second, this duration is less than a round cut cycle duration) starts the round cut timer after setting duration.
Certainly; The round cut cycle also can not be cycle uniformly-spaced; As can the round cut duration being set corresponding each camera correspondence in the round cut tabulation; In such cases, pre-processing period also can be provided with according to the pairing round cut duration of each camera in this round cut tabulation, will guarantee that just each pre-processing period will arrive before the corresponding round cut cycle arrives.
Referring to Fig. 2, be the live schematic flow sheet of round cut that the embodiment of the invention provides, the video monitoring system network architecture that it was suitable for can be as shown in Figure 1, and is as shown in Figure 2, and this flow process can comprise:
Step 201, the practical condition flow process of VM starter cup.
During practical implementation, VM can start the live flow process of round cut of this VC after the live request of the round cut that receives the VC transmission.VM also can come the practical condition flow process of starter cup according to the strategy that is provided with in advance, like live start-up time of the round cut that is provided with in advance according to VC institute or cycle, starts the round cut live telecast flow process of this VC.
Step 202, when pre-processing period reached, VM notified corresponding EC of next round cut cycle (EC that promptly next wheel switches to) that Media Stream is forwarded to MS according to the round cut tabulation.MS can not deal with after receiving Media Stream.
During practical implementation, VC can deposit in VM with the round cut tabulation that oneself is provided with in advance, and VM also can be provided with the round cut tabulation for each VC.Record will ask to check live information (under equidistant situation of round cut cycle) such as camera sign to some extent in the round cut tabulation, also can record and the corresponding round cut duration (is under the situation in non-equidistant cycle in the round cut cycle) of each camera sign.
Pre-processing period arrived prior to the round cut cycle of correspondence.When pre-processing period arrived, VM confirmed the camera that next wheel switches to according to the round cut tabulation.Wherein, if current period is the initial period, the camera that then said next wheel switches to is first camera in the round cut tabulation; If current period is not the initial period, the camera that then said next wheel switches to is the next camera of current camera in the round cut tabulation.
VM can determine the EC of the Media Stream that arrives of this camera collection of coding according to information such as camera signs, and after determining the EC that next wheel switches to, VM sends a notification message to this EC, sends Media Stream to notify this EC to MS.The Media Stream receiving port information of portability MS in this notification message is so that EC sends to Media Stream this port of MS.If the Media Stream receiving port of MS is notified to this EC before, then can not be used in the Media Stream receiving port information of carrying MS in this notification message.
Step 203, VM notice MS will be transmitted to VC from the Media Stream that corresponding EC of said next round cut cycle receives, and notice VC receives the Media Stream that MS transmits when arriving in the said next round cut cycle.Wherein, The said next round cut cycle is for the pre-processing period in the step 202, for example, and in step 202; When N pre-processing period arrives; The said next round cut cycle is meant N the round cut cycle (because pre-processing period arrives with respect to the round cut cycle in advance, when N pre-processing period arrived, current time should be in N-1 round cut cycle); In step 203, the said next round cut cycle is N round cut cycle.
During practical implementation, the Media Stream receiving port information of VM portability VC in sending to the notification message of MS will be so that MS will be transmitted to the Media Stream receiving port of VC from the Media Stream that EC receives.VM notice MS sets up the media flow transmission passage of MS to this VC after transmitting Media Stream and notice VC receiving media stream, and the Media Stream that MS gathers corresponding camera through this transmission channel sends to this VC.
Step 204 under the live also unclosed situation of round cut, is handled according to the step 202 in the above-mentioned flow process~203, finishes up to the live flow process of round cut.The live flow process of round cut can finish after VM receives the instruction of the live flow process end of round cut; Also can, finish on wheel when switching to last camera in the round cut tabulation; Can also finish according to other preset strategy, as after the round cut circulation of the complete set point number of tabulating according to round cut, finishing.
Flow process through embodiment one describes can be found out, all can at first carry out preliminary treatment before each round cut cycle arrives, promptly; At first be about to round cut to EC transmit and prepare to carrying out Media Stream between the MS, that is, set up the media flow transmission passage of EC in advance to MS; And through this channel transfer Media Stream; In case the round cut cycle arrives, VM gives VC as long as transmit Media Stream through notice MS, and notice VC receiving media stream; Can set up MS to the media flow transmission passage between the VC, thereby realize the live telecast of Media Stream.And in the prior art, when each round cut cycle arrived, VM will set up the media flow transmission passage of current EC to MS, and this process will take VM resource overhead and Internet resources expense, then can influence live real-time.This shows; The embodiment of the invention one is compared with the live flow process of the round cut of prior art, owing to before the round cut cycle arrives, carry out preliminary treatment, the operation that round cut cycle due in is carried out reduces to some extent; Therefore can reduce the time delay of setting up the media flow transmission passage, improve live real-time.
Need to prove that in preprocessing process, if MS is if expense is too big, when not having transfer capability, but proactive notification VM can't respond corresponding forwarding port, VM then no longer carries out pretreatment operation.
Based on identical technical conceive, the embodiment of the invention also provides a kind of video management server that can be applicable to above-mentioned video monitoring system and flow process.
Referring to Fig. 3, the structural representation of the video management server that provides for the embodiment of the invention, this video management server can be applicable to previous embodiment one, and is as shown in the figure, and this video management server can comprise:
Pre-processing period is provided with module 301, is used for the corresponding round cut cycle pre-processing period is set, and said pre-processing period arrived before the time of advent in corresponding round cut cycle;
Transmit pretreatment module 302, be used for when transmitting the arrival of pretreatment module 302 pre-processing periods, notify corresponding EC of next round cut cycle that Media Stream is forwarded to MS;
Transmit processing module 303, be used for when the said next round cut cycle arrives, notice MS will be transmitted to VC from the said corresponding received Media Stream of EC of next round cut cycle, and notice VC receives the Media Stream that MS transmits.
Concrete, pre-processing period is provided with module 301 can be provided with pre-processing period according to the round cut cycle of round cut table defined.
Concrete; Transmitting pretreatment module 302 can send a notification message to corresponding EC of said next round cut cycle; Carry the Media Stream receiving port information of MS in the said notification message; So that this EC after receiving this notification message, according to the Media Stream receiving port information of carrying in this notification message, sends to Media Stream the corresponding port of MS.
Concrete, whether transmit processing module 303 can arrive according to the round cut table monitoring round cut cycle.When the round cut cycle arrives; Can send a notification message to MS; Carry the Media Stream receiving port information of VC in the said notification message; So that after said MS receives said notification message,, will be transmitted to this Media Stream receiving port of this VC from the said corresponding received Media Stream of EC of next round cut cycle according to the Media Stream receiving port information of the VC that carries in the said notification message.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode under a lot of situation.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product is stored in the storage medium, comprise some instructions with so that a station terminal equipment (can be mobile phone, personal computer; Server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be looked protection scope of the present invention.