Summary of the invention
The invention provides a kind of mobile detection implementation method and equipment,, realize mobile detection to encoder through the passback data in order to can't carry out under the situation of mobile detection in client.
Mobile detection implementation method provided by the invention is applied to comprise the video monitoring system of NVR, EC, VC and VM, and said EC is connected with said NVR with coaxial Ethernet mode through coaxial cable, and this method comprises:
VM receives the video playback request that VC sends;
Said VM is according to said video playback request; Return to EC through coaxial cable behind the video data decoding of indication NVR with said VC request playback; Indication EC returns to such an extent that video data carries out mobile detection to NVR, and with sending to said VC or send to said VC through said NVR through coaxial cable behind the video data recompile that detects.
Video management server provided by the invention; Be applied to comprise the video monitoring system of NVR, EC, VC; Said EC is connected with said NVR with coaxial Ethernet mode through coaxial cable, and said video management server comprises: receiver module, playback request processing module and sending module, wherein:
Receiver module is used to receive the video playback request that VC sends;
The playback request processing module; Be used for after said receiver module receives the video playback request of VC transmission; Indicate said sending module to send indication information to NVR; After indicating the video data decoding of said NVR, return to EC through coaxial cable with said VC request playback; Send indication information to EC, carry out mobile detection to indicate the said EC video data that passback comes to NVR, and with sending to said VC or send to said VC through said NVR through coaxial cable behind the video data recompile that detects;
Sending module is used for the indication according to said playback request processing module, sends indication information to said EC and said NVR respectively.
Network video machine provided by the invention is applied to comprise the video monitoring system of VM, EC, VC, and said EC is connected with the network video machine with coaxial Ethernet mode through coaxial cable, and said network video machine comprises:
Receiver module is used to receive the indication information that VM sends; Said indication information is that VM sends after the video playback request that receives VC;
Acquisition module is used for the indication information that receives according to said receiver module, obtains the video data of playback that VC asks;
Decoder module is used for the video data that said acquisition module gets access to is decoded;
Sending module; Be used for the decoded video data of said decoder module is returned to EC through coaxial cable; So that said EC returns to such an extent that video data carries out mobile detection to said network radio frequency video tape recorder; And, send to said VC or send to said VC through said network video machine through coaxial cable with behind the video data recompile that detects.
Encoder provided by the invention is applied to comprise the video monitoring system of NVR, VC and VM, and said encoder is connected with said NVR with coaxial Ethernet mode through coaxial cable, and said encoder comprises:
Receiver module is used to receive the indication information that VM sends, and said indication information is that VM sends after the video playback request that receives the VC transmission; And, receive the decoded video data of NVR through the coaxial cable passback;
The mobile detection module is used for according to said indication information, and the video data that said NVR is returned carries out mobile detection;
Coding module is used for the video data recompile that said mobile detection module is detected;
Sending module is used for the data behind the said coding module coding are sent to said VC or send to said VC through said NVR through coaxial cable.
Compared with prior art, the present invention has following useful technique effect:
Through VM after the video playback request that receives VC; EC is given in passback after indicating NVR with the corresponding video data decode; The video data that indication EC comes NVR passback carries out mobile detection and with sending to VC or send to VC through NVR behind the video data recompile that detects; Thereby can't realize at VC under the situation of mobile detection, utilize the mobile detection function of EC to realize mobile detection.
Embodiment
Be example with the network architecture shown in Figure 1 below, and combine accompanying drawing that the embodiment of the invention is described in detail.
Referring to Fig. 2,, wherein, when storing to NVR, the video Data Transmission of EC after encoding and will encoding do not open the mobile detection function for the video playback schematic flow sheet that the embodiment of the invention provides.This video playback flow process can comprise:
Step 201, VC sends the video playback request to VM.
Step 202 after VM receives the video playback request of VC transmission, is sent indication information to NVR, with indication NVR the video data that this VC was asked is returned to EC and carries out mobile detection.
During practical implementation, VM can like the information such as beginning and ending time of video data, be carried on the relevant information of the video data that VC asked indication information and send to NVR, so that NVR gives EC according to these information with the corresponding video returning data.
Step 203, VM sends indication information to EC, and EC carries out mobile detection to the video data that NVR returns with indication, and with sending to this VC behind the data recompile that detects.
During practical implementation, VM carries address and the port information of this VC in sending to the indication information of EC, so that the video Data Transmission of EC after will encoding given this VC.Go back portability mobile detection policy information in this indication information, so that EC carries out mobile detection according to this strategy.The mobile detection strategy can be the VC configuration, and sends to VM through the video playback request; VC also can dispose the mobile detection strategy in advance on VM, VM inquires about the mobile detection strategy of this VC configuration and sends it to EC after the video playback request that receives the VC transmission; The mobile detection strategy can also be VM according to the system requirements default configuration, receive the video playback request of VC as VM after, the mobile detection strategy of this default configuration is sent to EC.Certainly also can not carry the mobile detection policy information in this indication information, in this case, EC will use the mobile detection strategy of default configuration on it that video data that NVR returns is carried out mobile detection.
The mobile detection policy information can comprise employed algorithm information of mobile detection and the relevant information such as parameter of this algorithm.
Step 204, NVR decodes the video data that this VC asked according to the indication of VM, gives EC through the AV OUT mouth on the NVR through the coaxial cable high-frequency signal transmission with the analog video data that obtains after the decoding.
Step 205; EC is according to the indication of VM; Carry out mobile detection according to the mobile detection strategy analog video data that passback comes to NVR; And after detecting the video data that meets the mobile detection strategy, these data are encoded again, and the data after will encoding send to the VC of appointment through the coaxial cable low frequency signal.
During practical implementation, EC can adopt existing mode to carry out mobile detection, for example; Adopt the image of the different frame per second in the analog video data that certain algorithm comes NVR passback to calculate and compare, when picture changes, pass by if any the people; Camera lens is moved, and should change above setting threshold, then this frame of video is encoded again; And coding sent to corresponding VC, the video data after promptly will encoding according to the indicated VC address of VM and port sends to corresponding VC.
When the video Data Transmission of EC after will encoding given VC, can live stream or the mode of storage flow send.Because it is live professional normal lower than the reliability requirement of storage service; Therefore, can adopt UDP (User Datagram Protocol, User Datagram Protocol) transmission for live stream; Storage flow can adopt TCP (Transmission Control Protocol, transmission control protocol) transmission.
During practical implementation, when inserting video monitoring system, need register each equipment to VM.In the embodiment of the invention; EC is when VM registers; Whether support coaxial cable to carry out the returning data coding according to the own characteristic setting,, then send to the logon message Option set of VM if support coaxial cable to carry out the returning data coding; If do not support coaxial cable to carry out the returning data coding, then send to the not set of logon message Option of VM.Accordingly, when VM judges that according to the log-on message of EC this EC supports that coaxial cable carries out the returning data coding in judgement,, carry out mobile detection and coding for its video data to passback to indicate this EC just to this EC transmission indication information.
Whether NVR supports the playback of data decoding according to the own characteristic setting when on VM, registering, and the coaxial cable high-frequency transmission, if support, then sends to the logon message Option set of VM, as not supporting, then sends to the not set of logon message Option of VM.Accordingly, when VM judges that according to the log-on message of NVR this NVR supports playback of data decoding and coaxial cable high-frequency transmission in judgement, just to this NVR transmission indication information, to indicate this NVR that video data is decoded and to give EC through the coaxial cable high-frequency transmission.
In another embodiment of the present invention, EC can send to NVR after obtaining meeting the video data of detecting requirement through mobile detection and encoding, and NVR sends to the VC that initiates the video playback request with this video data again.In such cases, VM sends to address and the port information that need not to carry VC in the indication information of EC.
In another embodiment of the present invention, NVR when EC returns analog video data, can adopt low frequency signal through coaxial cable; When EC passes through the coaxial cable transmission behind the coding video data that will meet the mobile detection requirement, can adopt high-frequency signal.
Consider that the VC kind in the video monitoring system can have multiple; The VC of some type can support the mobile detection function, in order to improve the compatibility of the embodiment of the invention, in another embodiment of the present invention; VC in adding the supervisory control system process when VM registers; Can the information of self whether supporting the mobile detection function be carried on registration message and send to VM and storage, VM can judge whether this VC supports the mobile detection function according to the log-on message of this VC when receiving the video playback request of VC transmission; And be judged as when not supporting, adopt the video playback request of above-mentioned this VC of flow process response shown in Figure 1.
Further, the mobile detection function can be supported, because the restriction of VC terminal processing capacity,, possibly mobile detection can't be carried out when the data volume of its playback of ask greatly the time though consider some VC.To this kind situation, in another embodiment of the present invention, after VM judges that according to the log-on message of VC this VC can support the mobile detection function; Whether the data of further judging playback that this VC asks surpass setting threshold; If surpass setting threshold, show that then the data volume of playback that this VC asks is bigger, might can't carry out mobile detection in the VC side; In such cases, adopt above-mentioned flow process shown in Figure 1 to respond the video playback request of this VC; Otherwise, according to the video playback request of this VC of old process response.
Wherein, the big I of said threshold value is provided with according to the disposal ability of VC.This threshold value can be represented with data volume, also can represent with time length.When this threshold value is represented with data volume, the beginning and ending time of carrying in the video playback request of VM according to VC, big or small with the specified data amount through the index information of inquiry video data; When this threshold value when lengths table is shown with the time, the beginning and ending time that VM directly carries in the video playback request according to VC is judged.
Can find out that through above description the embodiment of the invention can not supported to utilize coding and the mobile detection ability of front end EC under mobile detection or the not enough situation of performance in client, realizes the problem that storage data mobile detection is filtered.This scheme need not change to EPCN, just can achieve the goal, and is easy to realize.
Based on identical technical conceive, the embodiment of the invention also provides a kind of video management server of the above-mentioned network architecture and flow process, a kind of network video machine and a kind of encoder of can be applicable to.
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 comprise: receiver module 301, playback request processing module 302 and sending module 303, wherein:
Receiver module 301 is used to receive the video playback request that VC sends;
Playback request processing module 302; Be used for after receiver module 301 receives the video playback request of VC transmission; Indication sending module 303 sends indication information to NVR; After indicating the video data decoding of said NVR, return to EC through coaxial cable with said VC request playback; Send indication information to EC, carry out mobile detection to indicate the said EC video data that passback comes to NVR, and with sending to said VC or send to said VC through said NVR through coaxial cable behind the video data recompile that detects;
Sending module 303 is used for the indication according to playback request processing module 302, sends indication information to said EC and said NVR respectively.
Carry the mobile detection policy information in the video playback request that receiver module 301 receives, corresponding, sending module 303 is carried on said mobile detection policy information and sends to said EC in the indication information.
Above-mentioned video management server also can comprise Registering modules 304.Registering modules 304 is used to receive and handle the register requirement of said VC, wherein carries this VC and discharges the information of supporting mobile detection.Accordingly, after playback request processing module 302 received the video playback request of VC at receiver module 301, when judging that according to the log-on message of said VC this VC does not support mobile detection, indication sending module 303 sent indication information to NVR and EC respectively.In another embodiment; After playback request processing module 302 receives the video playback request of VC at receiver module 301; Behind this VC support mobile detection of log-on message judgement according to said VC; Whether the data volume of judging the video data of playback that said VC asks surpasses setting threshold, and when being judged as above setting threshold, indication sending module 304 sends indication information to NVR and EC respectively.
Concrete, playback request processing module 302 uses high-frequency signal passback video data to EC through the indication information indication NVR that sends to NVR, uses the video data after low frequency signal sends coding through the indication information indication EC that sends to EC.
Referring to Fig. 4, the structural representation of the network video machine that provides for the embodiment of the invention, this network video machine can comprise:
Receiver module 401 is used to receive the indication information that VM sends; Said indication information is that VM sends after the video playback request that receives VC;
Acquisition module 402 is used for the indication information that receives according to receiver module 401, obtains the video data of playback that VC asks;
Decoder module 403 is used for the video data that acquisition module 402 gets access to is decoded;
Sending module 404; Be used for decoder module 403 decoded video datas are returned to EC through coaxial cable; So that said EC returns to such an extent that video data carries out mobile detection to said network radio frequency video tape recorder; And, send to said VC or send to said VC through said network video machine through coaxial cable with behind the video data recompile that detects.
Concrete, sending module 401 can return said video data with high-frequency signal through coaxial cable.
Referring to Fig. 5, the structural representation of the encoder that provides for the embodiment of the invention, this encoder can comprise:
Receiver module 501 is used to receive the indication information that VM sends, and said indication information is that VM sends after the video playback request that receives the VC transmission; And, receive the decoded video data of NVR through the coaxial cable passback;
Mobile detection module 502 is used for according to said indication information, and the video data that said NVR is returned carries out mobile detection;
Coding module 503 is used for the video data recompile that mobile detection module 502 is detected;
Sending module 504 is used for the data behind coding module 503 codings are sent to said VC or send to said VC through said NVR through coaxial cable.
Concrete, carry the mobile detection policy information in the indication information that receiver module 501 receives.Accordingly, mobile detection module 502 returns to such an extent that video data carries out mobile detection according to said mobile detection policy information to said NVR.
Concrete, sending module 504 sends the video data after encoding through coaxial cable with low frequency signal.
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.