Summary of the invention
The invention provides a kind of video monitoring, playback service realization methods and equipment, in order to solve the problem cannot carrying out dynamic conditioning in existing video monitoring service mechanism to media stream message priority.
A kind of video monitoring service implementation method provided by the invention, be applied to the video monitoring system comprising video encoder, video management server and client, or be applied to the video monitoring system comprising video encoder, video management server, exchange of media server and client side, wherein, Media Stream video encoder corresponding to video monitoring service is provided with media stream message priority adjustment event, and the method comprises:
The priority adjustment request that video management server receiver, video encoder sends, carries media stream message priority adjustment information concerning events in described priority adjustment request; Wherein, described priority adjustment request be video encoder in the process of carrying out video monitoring service, monitor and to send when media stream message priority adjustment event is triggered;
Described video management server is according to described media stream message priority adjustment information concerning events, the adjustment of the media stream message priority of corresponding video monitoring service is adjudicated, and send indication information according to court verdict to described video encoder or to exchange of media server, adjust the priority of corresponding media stream message in order to instruction video encoder or exchange of media server according to court verdict.
Video management server provided by the invention, be applied to the video monitoring system comprising video encoder and client, or be applied to the video monitoring system comprising video encoder, exchange of media server and client side, wherein, Media Stream video encoder corresponding to video monitoring service is provided with media stream message priority adjustment event, and described video management server comprises:
First receiver module, for the priority adjustment request that receiver, video encoder sends, carries media stream message priority adjustment information concerning events in described priority adjustment request; Wherein, described priority adjustment request be video encoder in the process of carrying out video monitoring service, monitor and to send when media stream message priority adjustment event is triggered;
Priority judging module, the described media stream message priority adjustment information concerning events that described priority adjustment for receiving according to described first receiver module is carried in asking, adjudicates the adjustment of the media stream message priority of corresponding video monitoring service;
Sending module, for the court verdict according to described priority judging module, send indication information to described video encoder or to exchange of media server, adjust the priority of corresponding media stream message in order to instruction video encoder or exchange of media server according to court verdict.
Video encoder provided by the invention, is applied to the video monitoring system comprising video encoder and client, or is applied to the video monitoring system comprising video encoder, exchange of media server and client side, and this video encoder comprises:
Event arranges module, and the Media Stream for corresponding to video monitoring service arranges media stream message priority adjustment event;
Event monitoring module, for carrying out in the process of video monitoring service at this video encoder, monitoring corresponds to the media stream message priority that the Media Stream of described video monitoring service arranges and adjusts event;
Sending module, for when described event monitoring module monitors is triggered to the media stream message priority events that the Media Stream corresponding to video monitoring service is arranged, send priority adjustment request to video management server, in described priority adjustment request, carry media stream message priority adjustment information concerning events;
Receiver module, for receiving the response that described video management server returns;
Priority adjusting module, the indication information for carrying in the response that receives according to described receiver module adjusts the priority of corresponding media stream message; Wherein, described indication information is that described video management server adjusts information concerning events according to described media stream message priority, adjudicates the adjustment of the media stream message priority of corresponding video monitoring service, and determine according to court verdict.
Video monitoring service implementation method provided by the invention, be applied to the video monitoring system comprising video encoder, video management server and client, wherein, Media Stream video encoder corresponding to video monitoring service is provided with media stream message priority adjustment event, and the method comprises:
Video encoder is in the process of carrying out video monitoring service, and monitoring corresponds to the media stream message priority that the Media Stream of described video monitoring service arranges and adjusts event;
When described video encoder monitor media stream message priority adjustment event that the Media Stream corresponding to described video monitoring service arranges be triggered time, adjust the priority of the media stream message of described video monitoring service.
Video encoder provided by the invention, is applied to the video monitoring system comprising video management server and client, and this video encoder comprises:
Event arranges module, and the Media Stream for the video monitoring service corresponding to this video encoder arranges media stream message priority adjustment event;
Event monitoring module, for carrying out in the process of video monitoring service at this video encoder, monitoring corresponds to the media stream message priority that the Media Stream of described video monitoring service arranges and adjusts event;
Priority adjusting module, for when described event monitoring module monitors is triggered to the media stream message priority events that the Media Stream corresponding to video monitoring service is arranged, the priority of the media stream message of the video monitoring service that adjustment is corresponding.
Compared with prior art, the present invention has following Advantageous Effects:
By the Media Stream corresponding to video monitoring service on video encoder, media stream message priority adjustment event is set, and in the implementation procedure of video monitoring service, this event of video encoder Real-Time Monitoring, when this event is triggered, the priority of respective media stream packet is adjusted, thus achieves according to the dynamic conditioning of video monitoring service to media stream message priority.
Video playback service implementation method provided by the invention, be applied to the video monitoring system comprising memory device, video management server and client, the method comprises:
Video management server is known when having client and memory device to set up video playback business, judges that whether the Permission Levels of described client are higher than setting threshold;
If the Permission Levels of described client are higher than setting threshold, then described video management server sends indication information to described memory device, improves in order to indicate described memory device the priority sending to the media stream message of described client;
Wherein, video management server know have client and memory device set up video playback business before video monitoring system when carrying out video monitoring, the priority adjustment request that video management server receiver, video encoder sends, media stream message priority adjustment information concerning events is carried in described priority adjustment request, described priority adjustment request be video encoder in the process of carrying out video monitoring service, monitor and to send when media stream message priority adjustment event is triggered; According to described media stream message priority adjustment information concerning events, the adjustment of the media stream message priority of corresponding video monitoring service is adjudicated, and send indication information according to court verdict to described video encoder or to exchange of media server, adjust the priority of corresponding media stream message in order to instruction video encoder or exchange of media server according to court verdict.
Video management server provided by the invention, is applied to the video monitoring system comprising memory device, client, and this video management server comprises:
Judge module, for know have client and memory device to set up video playback business time, judge that whether the Permission Levels of described client are higher than setting threshold;
Priority judging module, for when described judge module judges the Permission Levels of described client higher than setting threshold, determines to improve the priority sending to the media stream message of described client;
Sending module, for sending indication information to described memory device, improves in order to indicate described memory device the priority sending to the media stream message of described client;
Wherein, video management server also comprises:
First receiver module, for know have client and memory device set up video playback business before video monitoring system carry out video monitoring time, the priority adjustment request that receiver, video encoder sends, media stream message priority adjustment information concerning events is carried in described priority adjustment request, described priority adjustment request be video encoder in the process of carrying out video monitoring service, monitor and to send when media stream message priority adjustment event is triggered;
Described priority judging module, also for according to described media stream message priority adjustment information concerning events, adjudicates the adjustment of the media stream message priority of corresponding video monitoring service;
Described sending module, court verdict also for adjudicating according to the adjustment of described priority judging module to the media stream message priority of corresponding video monitoring service sends indication information to described video encoder or to exchange of media server, adjusts the priority of corresponding media stream message in order to instruction video encoder or exchange of media server according to court verdict.
Compared with prior art, the present invention has following Advantageous Effects:
During by setting up video playback business in client, according to the priority of the Permission Levels dynamic conditioning respective media stream packet of this client, thus achieve dynamic conditioning is carried out to the Media Stream of video playback business.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
Embodiment one
Present embodiment describes and do not adopt MS to carry out forwarding media stream, and without the need to managed concentratedly by VM fact monitoring flow process.
In the present embodiment, on EC, correspond to the Media Stream configuration media stream message priority adjustment event of the live monitoring business between this EC and client in advance, when satisfied imposing a condition, described media stream message priority adjustment event will be triggered.In addition, on EC, be also configured for the strategy of adjustment media stream message priority in advance, so that when media stream message priority adjustment event is triggered, EC adjusts the priority of respective media stream packet according to the strategy of adjustment media stream message priority.
Media stream message priority adjustment event can comprise one of following or combination in any:
Region alarm event A, when the picture in the setting regions of video monitoring picture changes, this alarm event is triggered.Such as, when having people or thing to enter in video monitoring picture appointed area, by this alarm event of triggering A;
Interlock alarm event A, when the alarm associated with video monitoring picture is triggered, this alarm event is triggered.Such as, video monitoring picture is the monitored picture of gateway, and this monitored picture associates with the gate control system of this gateway, and when the gate control system generation alarm of this gateway, triggering links alarm event A by the video monitoring picture associated with this gate control system;
Time alarm event A, when the initial time of the time period set reaches, this alarm event is triggered.Such as, can using certain time period at night as the time period needing key monitoring, when this time period arrives, then triggered time alarm event A.
Further, also region alarm event A or interlock alarm event A can be combined with section correlation time, that is, the picture in the setting regions of video monitoring picture change and current in setting-up time section time, by toggle area alarm event A; Or, the alarm associated with video monitoring picture be triggered and current in setting-up time section time, by triggering interlock alarm event A.
When these events are triggered above, the strategy of adjustment media stream message priority can specify the priority improving respective media stream packet.Wherein, so-called respective media stream packet is the media stream message of the live monitoring business corresponding with this event, also the media stream message of the client that there is this live monitoring business relation with EC is namely sent to, as, customer end A and customer end B all establish the live monitoring business relation of receiver, video passage a with EC, then customer end A and customer end B are the client that there is this live monitoring business (i.e. the live monitoring business of receiver, video passage a).
Media stream message priority adjustment event also can comprise one of following or combination in any:
Region alarm event B, after the priority of media stream message corresponding to video monitoring picture improves because region alarm event A is triggered, picture recovery in this region is the state before region alarm event A triggers, and lasting duration exceedes setting duration, and region alarm event B is triggered;
Interlock alarm event B, after the priority of media stream message corresponding to video monitoring picture improves because interlock alarm event A is triggered, in setting duration, associated alarm no longer occurs, interlock alarm event B is triggered;
Time alarm event B, after the priority of media stream message corresponding to video monitoring picture improves because time alarm event A is triggered, when reaching the end time of the time period corresponding to time alarm event A, then alarm event B is triggered this time.
When these events are triggered above, the strategy of adjustment media stream message priority can specify the priority reducing respective media stream packet.
During concrete enforcement, may correspond to monitored picture or shooting channel setting region alarm event A and B, or be the monitored picture that is associated with other alarm or shooting channel setting interlock alarm event A and B, or be all or specify monitored picture or channel setting time alarm event A and B that make a video recording.
In addition, user also as required, can be arranged the media stream message priority adjustment event of other type, will not enumerate at this.
Media stream message priority adjustment event is or/and the configuration mode adjusting the strategy of media stream message priority can comprise:
Mode one: in officely what is the need for when wanting, being directly configured, as configured manually, or being configured on EC by configuration file manually on EC;
Mode two: in officely what is the need for when wanting, VM being configured, then by VM, media stream message priority adjustment event being issued to EC, the EC specified as being issued to;
Mode three: when client and EC set up live monitoring business relation, client by MS with the EC of the live monitoring business relation of its foundation on be configured.Such as, when customer end A and video camera A channel corresponding to encoder A set up monitoring relation, by VM, configuration information is configured on encoder A.
In addition, user also as required, can adopt other configuration mode on EC, configure media stream message priority adjustment event or/and the strategy of adjustment media stream message priority, will not enumerate at this.
Based on above-mentioned configuration, the fact monitoring flow process of what the present embodiment provided do not adopt MS carries out forwarding media stream can as shown in Figure 2, comprise:
Step 201, EC in the process of carrying out live monitoring business, the media stream message priority adjustment event that Real-Time Monitoring is arranged corresponding to the Media Stream of this live monitoring business.
Step 202, EC, when monitoring media stream message priority adjustment event and being triggered, according to the strategy of the adjustment media stream message priority of configuration on it, adjusts the priority of corresponding media stream message.
Wherein, the Media Stream being the live monitoring business corresponded between EC and client due to media stream message priority adjustment event is arranged, therefore this event is corresponding with shooting passage, also namely corresponding with video monitoring picture, therefore, by adjustment priority media stream message be the media stream message corresponding with corresponding video monitored picture or passage of making a video recording.Such as, for region alarm event A or B, corresponding media stream message refers to the media stream message corresponding to the video monitoring picture of this event monitoring; For interlock alarm event A or B, corresponding media stream message refers to other alarm association and media stream message corresponding to the video monitoring picture of this event monitoring; For time alarm event A or B, corresponding media stream message can media stream message corresponding to the video monitoring picture of this event monitoring, can be specifically the media stream message corresponding to all or part video monitoring picture that this EC sends.
Concrete, if the event be triggered is region alarm event A, corresponding shooting gap marker is a, then the priority of the media stream message of shooting passage a improves by EC; If the event be triggered is region alarm event B, corresponding shooting gap marker is a, then the priority of the media stream message of shooting passage a reduces by EC.For the media stream message priority adjustment event of other type, priority adjustment mode is similar.
Step 203, EC continues to perform live monitoring business according to the priority of the media stream message after adjustment.
Concrete, EC can according to the media stream message priority after adjustment, and the preferential high media stream message of priority that sends is to client, and to ensure the quality of the video monitoring service of client, its specific implementation can adopt existing mode, does not repeat them here.
In the step 202 of above-mentioned flow process, be triggered example with region alarm event A, EC is by improving the priority of respective media stream packet with under type:
The priority of corresponding live stream message is adjusted to high priority by default value by EC, e.g., by the DSCP value (DSCP value can represent priority-level) in the IP head of message by default 0(BE) be adjusted to 46(EF).If this message also needs to stamp VLAN TAG(virtual local area network tags) forward, then also need the 802.1P value of correspondence to be adjusted to 5 by 0, even higher.
In the step 202 of above-mentioned flow process, be triggered example with region alarm event B, EC is by reducing the priority of respective media stream packet with under type:
The priority of live stream message is regulated back default value by high priority by EC, e.g., by the DSCP value in the IP head of live stream message by 46(EF) recall to default 0(BE).Forward if this message also needs to stamp VLAN TAG, then also need have 5 to be adjusted to 0 the 802.1P value of correspondence.
Can be found out by the description of embodiment one, the adjustment event of media stream message priority is set by Media Stream corresponding on EC and carries out Real-Time Monitoring, so that EC is when monitoring corresponding event and triggering, the priority of adjustment respective media stream packet, thus achieve the automatic adjustment of media stream message priority.
Embodiment two
Present embodiment describes and do not adopt MS to carry out forwarding media stream, but flow process is monitored in the fact need being undertaken managing concentratedly by VM.
In the present embodiment, on EC, correspond to the Media Stream configuration media stream message priority adjustment event of live monitoring business in advance, when satisfied imposing a condition, described media stream message priority adjustment event will be triggered.In addition, also on VM, configuration adjusts the strategy of media stream message priority in advance, so that when media stream message priority adjustment event is triggered, VM indicates EC to adjust the priority of respective media stream packet according to the strategy of adjustment media stream message priority.Wherein, the type of media stream message priority adjustment event can with embodiment one.The configuration mode of the strategy of media stream message priority adjustment event or adjustment media stream message priority, can the specific implementation of reference example one, as, can configure manually when needed, also can configure when client and EC set up live monitoring business relation.
Based on above-mentioned configuration, the fact monitoring flow process of what the present embodiment provided do not adopt MS carries out forwarding media stream can as shown in Figure 3, comprise:
Step 301, EC in the process of carrying out live monitoring business, the media stream message priority adjustment event that Real-Time Monitoring is arranged corresponding to the Media Stream of this live monitoring business.
Step 302, information concerning events, when monitoring media stream message priority adjustment event and being triggered, is sent to VM by EC.
Concrete, information concerning events, by sending priority adjustment request or alarm information to VM, is sent to VM by EC.The information concerning events of VM is sent to comprise:
Event type, e.g., the event be triggered is region alarm event A, or region alarm event B;
The medium stream information corresponding with the event be triggered, e.g., the shooting gap marker corresponding with the event be triggered.
Step 303, VM is according to the strategy of the adjustment media stream message priority of configuration on it, and the information concerning events received, and adjudicates the adjustable strategies of the priority of corresponding media stream message.
Concrete, if the event type in information concerning events is region alarm event A, corresponding shooting gap marker is a, then the priority of the media stream message of shooting passage a improves by VM; If the event type in information concerning events is region alarm event B, corresponding shooting gap marker is a, then the priority of the media stream message of shooting passage a reduces by VM.For the media stream message priority adjustment event of other type, priority adjustment mode is similar.Its concrete adjustment mode with embodiment one, can not repeat them here.
Step 304, VM returns indication information to this EC, to indicate this EC according to the court verdict of VM to the adjustable strategies of media stream message priority, the priority of adjustment respective media stream packet.
Concrete, indication information is returned to EC by returning configuration messages to EC by VM.Described indication information can have following several possibility situation:
Situation one: indication information comprises the sign being used to indicate and improving or reduce media stream message priority, and the medium stream information of correspondence, as shooting gap marker.
Situation two: indication information comprises medium stream information (as shooting gap marker) and corresponding numerical priority value;
Situation three: indication information comprises medium stream information (as shooting gap marker) and corresponding priority incremental value (this incremental value is that timing represents raising priority, for time negative, mark reduces priority).
Step 305, EC is according to the priority of the indication information adjustment respective media stream packet received.Afterwards, EC continues to perform live monitoring business according to the priority of the media stream message after adjustment.
Concrete, corresponding to several situations of indication information in step 304, EC can adopt following several mode to adjust the priority of respective media stream packet:
Corresponding to situation one, EC according to being used to indicate the sign improving or reduce media stream message priority, the priority of adjustment respective media stream packet.As, when improving priority, by the priority of respective media stream packet from default 0(BE) be adjusted to 46(EF); When reducing priority, by the priority of respective media stream packet from 46(EF) be adjusted to 0(BE);
Corresponding to situation two, EC, the priority of respective media stream packet is adjusted to numerical value indicated in indication information;
Corresponding to the incremental value that situation three, EC is indicated in cumulative indication information on the basis of the numerical priority value of respective media stream packet.
The one of the step 302 of above-mentioned flow process substitutes implementation and is: when the event for reducing media stream message priority is triggered, as region alarm event B, associated alarm event B or time alarm event B, then EC also can send to MS and cancel alarm information, wherein carries medium stream information (as shooting gap marker).Accordingly, in step 303 ~ 304, VM cancels alarm information according to this, and instruction EC reduces the priority of respective media stream packet, and its specific implementation is with the step 302 shown in Fig. 3.
The another kind of the step 302 of above-mentioned flow process substitutes implementation and is: when the event for improving media stream message priority is triggered, as region alarm event A, associated alarm event A or time alarm event A, when corresponding trigger condition meets always, continue to send alarm information to VM, until when corresponding trigger condition does not meet, stop sending alarm information to VM.Accordingly, in step 303 ~ 304, VM is after the alarm information receiving EC transmission, after certain hour length (this time span is greater than in step 302 time interval continuing to send alarm information), again do not receive the alarm information that EC sends, then indicate EC to reduce the priority of respective media stream packet.
Can be found out by the description of embodiment two, the adjustment event of media stream message priority is set by Media Stream corresponding on EC and carries out Real-Time Monitoring, so that EC is when monitoring corresponding event and triggering, report this event to VM, enable VM indicate EC to adjust the priority of respective media stream packet, thus achieve the automatic adjustment of media stream message priority.
Embodiment three
Present embodiment describes and do not adopt MS to carry out forwarding media stream, but flow process is monitored in the fact need being undertaken managing concentratedly by VM, is: VM can also carry out more accurate message priority according to client-side information and regulate with the difference of embodiment two.
See Fig. 4 A, the MS that do not adopt provided for the embodiment of the present invention carries out the fact monitoring schematic flow sheet of forwarding media stream, and as shown in the figure, this flow process can comprise:
Step 401, EC in the process of carrying out live monitoring business, the media stream message priority adjustment event that Real-Time Monitoring is arranged corresponding to the Media Stream of this live monitoring business.
Step 402, EC, when monitoring media stream message priority adjustment event and being triggered, sends priority adjustment request or alarm information to VM, wherein carries information concerning events.
Step 403, VM is according to strategy, the information concerning events that receives of the adjustment media stream message priority of configuration on it, and the Permission Levels of relative client, the adjustable strategies of the priority sending to the corresponding media stream message of relative client is adjudicated.
Concrete, after VM receives the information concerning events that EC sent by alarm information, (this live monitoring relation list item is set up when client and EC set up live monitoring business relation to inquire about live monitoring relation list item, wherein can comprise client identification, corresponding EC mark, shooting gap marker etc., also can comprise the Permission Levels of client), inquire the client identification (namely this client also sets up the client of live monitoring business relation with this EC) corresponding to respective media stream, and inquire about the information such as the Permission Levels of this client according to this client identification.When the Permission Levels of this client meet or exceed setting threshold, and when event type shows to need to improve media stream message priority, judgement improves the priority sending to the media stream message of this client.In like manner, if event type shows to need to reduce media stream message priority, then VM can when judging the Permission Levels of this client lower than the grade set, and judgement reduces the priority sending to the media stream message of this client.Wherein, by arranging the mode of Permission Levels threshold value, the client that Permission Levels are higher or lower can be distinguished, such as, the Permission Levels of client comprise 1-5 grade, then this threshold value can be set to 3, namely, Permission Levels are the client that Permission Levels are higher higher than the client of 3, otherwise are the client that authority is lower.
Such as, customer end A and B be fact of camera chin a on program request encoder A simultaneously, but the authority of customer end A is higher than B, reach default criterion, then when the image trigger alerts of camera chin a, VM is after the warning information receiving encoder A transmission, find to only have customer end A to meet Permission Levels requirement according to monitoring relation list item, then send configuration messages to encoder A, notify that the live message sent to customer end A is heightened priority by it, and do not make change to the live message that customer end B sends.
Further, consider that the Permission Levels number of client can exceed message prior number of stages, and the network equipment is not simple the increasing progressively of priority according to message and preferentially forwards, when needing when there being the priority of multiple media stream message to regulate, VM is for the client meeting Permission Levels requirement, and by sending to, the priority of the media stream message of these clients is unified is adjusted to identical priority.Concrete, VM inquire corresponding to these Media Streams meet Permission Levels require client after, the priority of the media stream message sending to these clients is adjusted to a unified priority, such as by the DSCP value of IP head by default 0(BE) be adjusted to 46(EF).
Step 404, VM returns indication information to this EC, sends to the priority of the respective media stream packet of relative client to indicate this EC according to the court verdict adjustment of VM.
Step 405, EC sends to the priority of the respective media stream packet of relative client according to the indication information adjustment received.Afterwards, EC continues to perform live monitoring business according to the priority of the media stream message after adjustment.
Further, carry out in the monitor network of live business there is multiple client simultaneously, when the Permission Levels of multiple client are different, in order to ensure that the client of highest weight limit grade can be preferentially received live stream, VM can be utilized to carry out comprehensive optimum management to the media stream message in monitor network.
Concrete, situation about adjusting is carried out by sending to the media stream message priority meeting the client that Permission Levels require for VM in step 403, when many live stream message priorities in network are all adjusted to high priority (DSCP value changes 46 into), high-priority queue on the network equipment may be caused to occur packet loss.When client detects that the live message of reception has packet loss or packet loss to exceed setting threshold, alarm information can be sent to VM.As shown in Figure 4 B, after VM receives the packet loss alarm information of client transmission, this flow process comprises:
Step 410 ~ 411, after VM receives the packet loss alarm information of client transmission, according to the client identification wherein carried and media stream identification, inquire about live monitoring relation list item, judge that whether this client is the client that in the client side list that there is the live monitoring business relation corresponding with this Media Stream, Permission Levels are the highest, if the judgment is Yes, then step 412 is proceeded to; Otherwise, proceed to step 413.
Step 412, the priority of the live stream (namely sending to the Media Stream of this client) of the corresponding live monitoring business relation of EC raising that VM instruction is corresponding, such as by DSCP value by 46(EF) be adjusted to 48(CS6), preferentially to ensure the live monitoring business of this client.
Step 413, VM keeps current state, does not process.
In order to ensure that the client of highest weight limit grade preferentially can receive live stream, and taking into account the live stream quality of client of other Permission Levels, shown in a kind of above-mentioned Fig. 4 B, the alternative of flow process is: the priority adopting the live stream message progressively reducing other the corresponding live monitoring relation of Permission Levels client.Concrete, as shown in Figure 4 C, this flow process comprises:
Step 420 ~ 421, VM is after the packet loss alarm information receiving client transmission, according to the client identification wherein carried and media stream identification, inquire about live monitoring relation list item, corresponding video monitoring business is there is from the EC sending this Media Stream, and in the client that has been enhanced of media stream message priority, search the client that Permission Levels except described client are minimum.
Step 422, VM indicates the EC corresponding with this Media Stream to reduce the message priority of this Media Stream sending to this client, such as by DSCP value by 46(EE) be adjusted to 26(AF31), or directly return to default value 0(BE).
Further, if VM is after time delay certain hour, still receives the packet loss alarm information (step 423) that client sends, then return step 421; If after time delay certain hour, no longer receive the packet loss alarm information that highest weight limit tier customer end sends, then process ends.
After original highest weight limit tier customer end cancels live monitoring business relation, as shown in Figure 4 D, the embodiment of the present invention additionally provides following handling process:
Step 430 ~ 431, when VM knows the live monitoring business relation between client de-asserts and EC, judge whether this client is there is with this EC the client that in the client of this video monitoring service, Permission Levels are the highest, if be judged as YES, then proceeds to step 432; Otherwise, proceed to step 434.
Step 432, there is this monitoring business relation from this EC in VM, and (does not comprise the client of the live monitoring business relation of this vehicle) in the client that has been enhanced of media stream message priority, searches the client that Permission Levels are the highest.
Step 433, the EC of VM instruction correspondence improves the priority sending to this highest weight to limit the media stream message of the live monitoring business of the correspondence of the client of grade.
Step 434, VM keeps current state, does not process.
When there is the client of new high Permission Levels, as shown in Figure 4 E, the embodiment of the present invention additionally provides following handling process:
Step 440 ~ 441, VM is known when having client and EC to set up live monitoring business, judges that whether the authority of this client is higher than setting threshold, and when being judged as YES, proceeds to step 442; Otherwise proceed to step 444.
Step 442, VM, existing in the client of this live monitoring business with this EC, searches the client that Permission Levels are the highest.
Step 443, VM indicates this EC to improve the priority sending to this highest weight to limit the media stream message of this live monitoring business of the client of grade.
Step 444, VM keeps current state, does not process.
Can be found out by the description of embodiment three, on the technique effect basis of embodiment two, because VM is when the adjustable strategies carrying out media stream message priority is adjudicated, introduce client jurisdiction grade as basis for estimation, VM is according to user's collocation strategy, utilize client jurisdiction information, the live stream message priority information of specific EC is regulated, and can according to the difference of client jurisdiction grade, the state of live stream message is received in conjunction with client, improve the precedence information of the live stream message of the corresponding monitoring relation of the higher client of Permission Levels, or reduce the precedence information of message corresponding to the lower client of Permission Levels, ensure that the live quality of highest ranking client, improve service flexibility and reasonability.
Embodiment four
The embodiment of the present invention not only can be used for priority adjustment EC being sent to live stream message, also may be used for adjusting the priority of MS duplicate media stream message.Present embodiment describes and adopt MS to carry out forwarding media stream, but flow process is monitored in the fact need being undertaken managing concentratedly by VM, its specific implementation process can refer to previous embodiment and carries out, different is, VM is after making a policy to the priority adjustable strategies of media stream message, and instruct MS adjusts the priority of respective media stream packet.
Such as, customer end A and B be fact of camera chin A on program request encoder A simultaneously, encoder A by live message repeating to MS, copy this live message by MS and flow to customer end A and B, and the authority of customer end A is higher than B, reach default criterion, then when the image trigger alerts of camera chin A, VM is when receiving the warning information that encoder A sends, judge monitoring relation list item, discovery only has customer end A to meet the demands, then send configuration messages to MS, notify that the live message sent to customer end A is heightened priority by it, and do not make change to the live message that customer end B sends.
Can be found out by the description of embodiment four, the adjustment event of media stream message priority is set by Media Stream corresponding on EC and carries out Real-Time Monitoring, so that EC is when monitoring corresponding event and triggering, report this event to VM, enable VM instruct MS adjust the priority of respective media stream packet, thus achieve the automatic adjustment of media stream message priority.
Embodiment five
Present embodiment describes EC adopts the mode of multicast to forward the handling process of live stream.When EC adopts the mode of multicast to forward live stream, and when there is the reception of multiple client, also can optimize accordingly with reference to previous embodiment simultaneously.
Being copied by MS, forwarding EC is live to be flow in the monitoring networking of client, multicast mode is adopted to carry out video monitoring service at EC, and there is multiple client when receiving the Media Stream of the video monitoring service that this employing multicast mode carries out, the Media Stream that can correspond to the live monitoring business adopting multicast mode to carry out on EC arranges media stream message priority adjustment event, EC is in the process of video monitoring service of carrying out multicast mode, this event of Real-Time Monitoring, and when this event is triggered, send alarm information to VM, wherein carry information concerning events;
After VM receives the alarm information of EC transmission, from each client of Media Stream receiving the video monitoring service that this employing multicast mode carries out, search the client of Permission Levels higher than setting threshold; Be for triggering the event improving media stream message priority when VM judges that the event type information received indicates corresponding event, and when finding the client of Permission Levels higher than setting threshold, instruction EC(is when forwarding without the need to MS) or instruct MS (when needing MS to forward) improve the priority of the media stream message of the video monitoring service sending to this employing multicast mode of this client to carry out.
Further, when VM knows the video monitoring service that this employing multicast mode having client de-asserts and this EC to exist carries out, first judge that whether the Permission Levels of this client are higher than setting threshold, if higher than setting threshold, then judge in each reception client of the Media Stream receiving the video monitoring service that this employing multicast mode carries out (not comprising the client of this vehicle video monitoring service), whether there is the client of Permission Levels higher than setting threshold, and when being judged as YES, instruction EC or MS reduces the priority of the media stream message of the video monitoring service that this employing multicast mode carries out.If these Permission Levels cancelling the client of video monitoring service relation are not higher than setting threshold, or the Permission Levels of all the other clients in multicast group are not higher than setting threshold, then keep current media stream message priority constant.
Such as, the multicast fact message of the camera chin A of customer end A and B received code device A transmission simultaneously, but the authority of customer end A is higher than B, reach default criterion, then, when the image trigger alerts of camera chin A, VM is when receiving the warning information that encoder A sends, according to fact monitoring relation table, discovery customer end A meets the demands, then send configuration messages to encoder A, notifies that it will heighten the precedence information of the multicast fact message of video camera A; And after customer end A cancels live monitoring business relation, VM finds that the authority of remaining customer end B does not reach the grade of setting, then send configuration messages to encoder A, notify that it reduces the priority of the live message of multicast that camera chin A sends.
Can be found out by the description of embodiment five, the Media Stream sent by multicast corresponding on EC is arranged the adjustment event of media stream message priority and carries out Real-Time Monitoring, so that EC is when monitoring corresponding event and triggering, report this event to VM, enable VM indicate EC to adjust the priority of respective media stream packet, thus achieve the automatic adjustment of the media stream message priority that multicast sends.
Embodiment six
Present embodiment describes the implementation procedure of video playback flow process.As shown in Figure 5, this flow process can comprise:
Step 501 ~ 502, VM is known when having client and memory device to set up video playback business, judges that whether the Permission Levels of this client are higher than setting threshold; If be judged as YES, then proceed to step 503; Otherwise, keep current state constant (step 504).
Step 503, VM sends indication information to this memory device, improves in order to indicate memory device the priority sending to the media stream message of this client.
Can be found out by the description of embodiment six, by VM when there being clients request video playback, issue the media stream message priority of this client according to the Permission Levels adjustment of this client, thus achieving the automatic adjustment of media stream message priority.
Embodiment seven
Based on the technical conceive identical with embodiment one, present embodiments provide a kind of video encoder that can be applicable to video monitoring system, as shown in Figure 6, this video encoder can comprise conventional coding module 601 and sending module 602, wherein coding module 601 is for encoding to the Media Stream of video camera, sending module 602 for by coding after media stream, in addition, this video encoder also can comprise:
Event arranges module 603, and the Media Stream for the video monitoring service corresponding to this video encoder arranges media stream message priority adjustment event, and when satisfied imposing a condition, described media stream message priority adjustment event is triggered.Media Stream arrange the media stream message priority adjustment particular type of event and method to set up ditto described in.Concrete, event arranges module 603 can be arranged at coding module 601 by media stream message priority adjustment event.
Event monitoring module 604, for carrying out in the process of video monitoring service at this video encoder, monitoring corresponds to the media stream message priority that the Media Stream of described video monitoring service arranges and adjusts event.Concrete, event monitoring module 604 monitors the media stream message priority adjustment event of Media Stream setting by the coding process of monitoring coding module 601.
Priority adjusting module 605, when the media stream message priority events that the Media Stream for monitoring when event monitoring module 604 corresponding to video monitoring service is arranged is triggered, the priority of the media stream message of the video monitoring service that adjustment is corresponding.Concrete, the media stream message priority after adjustment can be arranged at sending module 602, so that sending module 602 carries out the transmission processing of media stream message according to this priority by priority adjusting module 605.
Concrete, media stream message priority adjustment event can comprise for triggering the event improving media stream message priority, and corresponding to this event triggering the event reducing media stream message priority.Accordingly, event arranges module 601 Media Stream that may correspond in video monitoring service and is provided with for triggering the event improving media stream message priority, and corresponding to this event triggering the event reducing media stream message priority; Priority adjusting module 603 can work as that event monitoring module 602 Media Stream monitored corresponding to described video monitoring service arranges for trigger the event improving media stream message priority be triggered time, improve the priority of the media stream message of described video monitoring service; When event monitoring module 602 Media Stream monitored corresponding to described video monitoring service arrange for trigger the event reducing media stream message priority be triggered time, reduce the priority of the media stream message of described video monitoring service.
Embodiment eight
Based on embodiment two, three, four or five identical technical conceives, present embodiments provide a kind of video management server that can be applicable to video monitoring system.Media Stream video encoder in this video monitoring system corresponding to video monitoring service is provided with media stream message priority adjustment event, and when satisfied imposing a condition, described media stream message priority adjustment event is triggered.As shown in Figure 7, this video management server can comprise:
First receiver module 701, for the media stream message priority adjustment information concerning events that receiver, video encoder sends; Wherein, described media stream message priority adjustment information concerning events be video encoder in the process of carrying out video monitoring service, monitor and to send when media stream message priority adjustment event is triggered;
Priority judging module 702, for the described media stream message priority adjustment information concerning events received according to the first receiver module 701, adjudicates the adjustment of the media stream message priority of corresponding video monitoring service;
Sending module 703, for the court verdict according to priority judging module 702, send indication information to described video encoder or to exchange of media server, adjust the priority of corresponding media stream message in order to instruction video encoder or exchange of media server according to court verdict.
Priority judging module 702 also can according to the Permission Levels of client when carrying out priority adjustment judgement.Concrete, priority judging module 702 is before the adjustment of the media stream message priority to corresponding video monitoring service is adjudicated, and inquiry and described video encoder exist the Permission Levels of each client of described video monitoring service; When adjudicating, according to described media stream message priority adjustment information concerning events, and there are the Permission Levels of each client of described video monitoring service with described video encoder, the adjustment of the media stream message priority sending to the corresponding video monitoring business of relative client is adjudicated.
Concrete, media stream message priority adjustment event can comprise: for triggering the event improving media stream message priority, and for triggering the event reducing media stream message priority.Described media stream message priority adjustment information concerning events can comprise: the event type information of described media stream message priority adjustment event, and the media stream identification information of the video monitoring service corresponding with described media stream message priority events; Wherein, described event type information is used to indicate corresponding event is for triggering the event of raising media stream message priority or the event for triggering reduction media stream message priority.Accordingly, priority judging module 702 can be specifically for: when being for triggering the event improving media stream message priority according to event type information determination corresponding event, search the client of Permission Levels higher than setting threshold, and when finding the client of Permission Levels higher than setting threshold, determining to improve corresponding with described media stream identification information and sending to the priority of the media stream message of this client; Or/and, when being for triggering the event reducing media stream message priority according to event type information determination corresponding event, search the client of Permission Levels lower than setting threshold, and when finding the client of Permission Levels lower than setting threshold, determining to reduce corresponding with described media stream identification information and sending to the priority of the media stream message of this client.
Concrete, priority judging module 702 can improve media stream message in decision, and Permission Levels are when being multiple higher than the client of setting threshold, determine to improve and described media stream identification information is corresponding and send to the priority of the media stream message of the plurality of client to identical numerical value.
Further, this video management server also comprises the second receiver module 704, for receiving the packet loss warning information of the media stream message of client feedback.Accordingly, whether the client that priority judging module 702 also can judge to send described packet loss warning information is the client that in the client of the video monitoring service corresponding with described media stream message, Permission Levels are the highest, if be judged as YES, then determine to improve the priority sending to the described media stream message of described client; Or, corresponding video monitoring business is there is from the video encoder sending described media stream message, and in the client that has been enhanced of media stream message priority, search the client that Permission Levels except described client are minimum, and after finding the minimum client of these Permission Levels, determine to reduce the priority sending to the described media stream message of described client.
Further, when there being the video monitoring service between client de-asserts and video encoder, priority judging module 702 also for: when knowing the video monitoring service had between client de-asserts and video encoder, judge whether described client is there is with described video encoder the client that in the client of described video monitoring service, Permission Levels are the highest, and when being judged as YES, described video monitoring service is there is from described video encoder, and in the client that has been enhanced of media stream message priority, search the client that Permission Levels are the highest, and determine to improve the priority sending to this highest weight to limit the media stream message of the described video monitoring service of the client of grade.
Further, when have to set up video monitoring service between client and video encoder time, priority judging module 702 also for: when know have to set up video monitoring service between client and video encoder time, judge that whether the authority of described client is higher than setting threshold, and when being judged as YES, exist in the client of described video monitoring service with described video encoder, search the client that Permission Levels are the highest, and determine to improve the priority sending to this highest weight to limit the media stream message of the client of grade.
Further, when video encoder adopts multicast mode to carry out video monitoring service, priority judging module 702 also can be used for: after described first receiver module 701 receives the media stream message priority adjustment information concerning events of described video encoder transmission, from each client of Media Stream receiving the video monitoring service that this employing multicast mode carries out, search the client of Permission Levels higher than setting threshold; Wherein, described media stream message priority adjustment information concerning events is that media stream message priority adjustment event that Media Stream that video encoder monitors the video monitoring service carried out corresponding to this employing multicast mode in the process of video monitoring service of carrying out multicast mode is arranged sends when being triggered;
When finding the client of Permission Levels higher than setting threshold, and when determining to improve media stream message priority according to the media stream message priority adjustment information concerning events received, determine the priority of the media stream message improving the video monitoring service sending to this employing multicast mode of this client to carry out.
Further, priority judging module 702 also can be used for: when knowing the video monitoring service that this employing multicast mode having client de-asserts and described video encoder to exist carries out, judge that whether the authority of described client is higher than setting threshold, and when being judged as YES, judge in all the other each clients of the Media Stream receiving the video monitoring service that this employing multicast mode carries out, whether there is the client of Permission Levels higher than setting threshold, and when being judged as NO, determine the priority of the media stream message reducing the video monitoring service that this employing multicast mode carries out.
Embodiment nine
Based on the technical conceive identical with embodiment six, present embodiments provide a kind of video management server that can be applicable to video monitoring system.As shown in Figure 8, this video management server can comprise:
Judge module 801, for know have client and memory device to set up video playback business time, judge that whether the Permission Levels of described client are higher than setting threshold;
Priority judging module 802, for when judge module 801 judges the Permission Levels of described client higher than setting threshold, determines to improve the priority sending to the media stream message of described client;
Sending module 803, for sending indication information to described memory device, improves in order to indicate described memory device the priority sending to the media stream message of described client.
Embodiment ten
Based on embodiment two, three, four or five identical technical conceives, present embodiments provide a kind of video encoder that can be applicable to video monitoring system, as shown in Figure 9, this video encoder can comprise conventional coding module 901 and sending module 902, wherein coding module 901 is for encoding to the Media Stream of video camera, data transmission blocks 902 for by coding after media stream, in addition, this video encoder also can comprise:
Event arranges module 903, and the Media Stream for corresponding to video monitoring service arranges media stream message priority adjustment event.Media Stream arrange the media stream message priority adjustment particular type of event and method to set up ditto described in.Concrete, event arranges module 903 can be arranged at coding module 901 by media stream message priority adjustment event.
Event monitoring module 904, for carrying out in the process of video monitoring service at this video encoder, monitoring corresponds to the media stream message priority that the Media Stream of described video monitoring service arranges and adjusts event.Concrete, event monitoring module 904 monitors the media stream message priority adjustment event of Media Stream setting by the coding process of monitoring coding module 901.
Sending module 905, for when event monitoring module monitors 904 is triggered to the media stream message priority events that the Media Stream corresponding to video monitoring service is arranged, send priority adjustment request to video management server, in described priority adjustment request, carry media stream message priority adjustment information concerning events.
Receiver module 906, for receiving the response that described video management server returns.
Priority adjusting module 907, the indication information for carrying in the response that receives according to receiver module 906 adjusts the priority of corresponding media stream message; Wherein, described indication information is that described video management server adjusts information concerning events according to described media stream message priority, adjudicates the adjustment of the media stream message priority of corresponding video monitoring service, and determine according to court verdict.
Concrete, event arranges the media stream message priority adjustment event that module 903 is arranged, and comprising: for triggering the event improving media stream message priority, and for triggering the event reducing media stream message priority.The media stream message priority adjustment information concerning events carried in the priority adjustment request that sending module 905 sends, comprise: the event type information of described media stream message priority adjustment event, and the media stream identification information of the video monitoring service corresponding with described media stream message priority events; Wherein, described event type information is used to indicate corresponding event is for triggering the event of raising media stream message priority or the event for triggering reduction media stream message priority.
In sum, the embodiment of the present invention solves prior art Problems existing, encoder is according to pre-configured strategy, find live image trigger alerts, or when priority changes, automatic adjustment message priority information, or send alarm information to video management server, upgrade the state on video management server, video management server is according to overall live strategy, informed code device regulates the precedence information of live stream message, thus realizes supervisory control system according to live strategy, the object of dynamic conditioning live stream message priority.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add required general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, technical scheme of the present invention can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product is stored in a storage medium, comprising some instructions in order to make a station terminal equipment (can be mobile phone, personal computer, server, or the network equipment etc.) perform method described in each embodiment of the present invention.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should look protection scope of the present invention.