CN111432151B - Video data storage method, device, equipment and storage medium - Google Patents

Video data storage method, device, equipment and storage medium Download PDF

Info

Publication number
CN111432151B
CN111432151B CN202010067807.2A CN202010067807A CN111432151B CN 111432151 B CN111432151 B CN 111432151B CN 202010067807 A CN202010067807 A CN 202010067807A CN 111432151 B CN111432151 B CN 111432151B
Authority
CN
China
Prior art keywords
camera
video data
server
instruction
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010067807.2A
Other languages
Chinese (zh)
Other versions
CN111432151A (en
Inventor
成祝梁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN202010067807.2A priority Critical patent/CN111432151B/en
Publication of CN111432151A publication Critical patent/CN111432151A/en
Application granted granted Critical
Publication of CN111432151B publication Critical patent/CN111432151B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/907Television signal recording using static stores, e.g. storage tubes or semiconductor memories
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/06Diagnosis, testing or measuring for television systems or their details for recorders
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/647Control signaling between network components and server or clients; Network processes for video distribution between server and clients, e.g. controlling the quality of the video stream, by dropping packets, protecting content from unauthorised alteration within the network, monitoring of network load, bridging between two different networks, e.g. between IP and wireless
    • H04N21/64746Control signals issued by the network directed to the server or the client
    • H04N21/64761Control signals issued by the network directed to the server or the client directed to the server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The embodiment of the invention provides a video data storage method, a device, equipment and a storage medium, wherein the method comprises the following steps: monitoring whether a video recorder is abnormal or not, wherein the video recorder is used for acquiring video data collected by a camera from the camera and storing the video data; when the video recorder is monitored to be abnormal, a first instruction is sent to the server, wherein the first instruction is used for instructing the server to acquire and store video data collected by the camera from the camera. The embodiment of the invention can ensure that the server can store the video data acquired by the camera during the abnormal period of the video recorder, avoid the loss of the video data caused by the abnormal condition of the video recorder and ensure the continuity of the storage of the video data.

Description

Video data storage method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a video data storage method, a video data storage device, video data storage equipment and a video data storage medium.
Background
With the continuous development of network technology, video monitoring technology has been developed correspondingly, and the application is wide. The video monitoring service mainly provides services such as video real-time viewing, cloud mirror control operation, video storage management, alarm linkage notification and the like for a user, and the user can monitor a monitoring point all day long. With the continuous improvement of video monitoring services and the continuous increase of user demands, the stability and continuity of video monitoring systems are becoming more and more important. In order to prevent the video file loss caused by the user's misoperation, damage to the disk array storing the video data, and the like, the monitored video data is usually stored in a backup manner.
In the prior art, a video camera is generally used for video monitoring, a video recorder acquires monitored video data from the video camera in real time for local storage, and then a server acquires the video data from the video recorder in real time for cloud storage. The Video Recorder may be a DVR (digital Video Recorder), an NVR (Network Video Recorder), or the like. And the video data is prevented from being lost by storing data through the local video recorder and the server at the cloud.
However, in the prior art, when the video recorder has an abnormality such as a communication failure, a power failure, etc., video data cannot be acquired from the camera, and at this time, the server cannot acquire the video data from the video recorder for storage. Because the camera cannot store data or can only store a small amount of data, after the video recorder is recovered to be normal, the video recorder cannot acquire the video data acquired by the camera during the abnormal period of the video recorder from the camera, and the server does not store the video data acquired by the camera during the abnormal period of the video recorder, so that the video data is lost, and the continuity of video data storage cannot be met.
Disclosure of Invention
The embodiment of the invention provides a video data storage method, a video data storage device, video data storage equipment and a video data storage medium, and aims to solve the problem that video data collected by a camera cannot be stored during abnormal periods of a video recorder and video data is lost.
In a first aspect, an embodiment of the present invention provides a video data storage method, which is applied to a monitoring device, and the method includes:
monitoring whether a video recorder is abnormal or not, wherein the video recorder is used for acquiring video data collected by a camera from the camera and storing the video data;
when the video recorder is monitored to be abnormal, a first instruction is sent to the server, wherein the first instruction is used for instructing the server to acquire and store video data collected by the camera from the camera.
In a possible embodiment, the first instruction comprises a network address of the camera;
before sending the first instruction to the server, the method further includes:
and receiving the network address of the camera sent by the terminal equipment, the video recorder or the camera.
In one possible embodiment, the method further comprises:
and when the video recorder is monitored to be recovered to be normal, sending a second instruction to the server, wherein the second instruction is used for instructing the server to acquire and store the video data acquired by the camera from the video recorder.
In one possible embodiment, the method further comprises:
and sending a third instruction to the server, wherein the third instruction is used for instructing the server to send video data corresponding to a first time period to the video recorder, and the first time period is a time period from the moment when the video recorder is abnormal to the moment when the video recorder recovers to be normal.
In one possible embodiment, the method further comprises:
and sending a fourth instruction to the server, wherein the fourth instruction is used for instructing the server to acquire and store video data corresponding to a second time period from the camera, and the second time period is a time period from the time when the video recorder is abnormal to the starting time when the server acquires the video data from the camera.
In a second aspect, an embodiment of the present invention provides a video data storage method, which is applied to a server, and the method includes:
receiving a first instruction sent by monitoring equipment, wherein the first instruction is sent when the monitoring equipment monitors that the video recorder is abnormal, and the video recorder is used for acquiring video data collected by the video camera from the video camera and storing the video data;
and acquiring and storing the video data acquired by the camera from the camera.
In a possible embodiment, acquiring and storing the video data collected by the camera from the camera includes:
and acquiring and storing video data acquired by the camera from the camera according to the network address of the camera, wherein the network address of the camera is contained in the first instruction, or the network address of the camera is pre-configured in the server.
In one possible embodiment, the method further comprises:
receiving a second instruction sent by the monitoring device, wherein the second instruction is sent when the monitoring device monitors that the video recorder recovers to normal;
and acquiring and storing the video data acquired by the camera from the video recorder.
In one possible embodiment, the method further comprises:
receiving a third instruction sent by the monitoring equipment;
and sending the video data corresponding to a first time period to the video recorder, wherein the first time period is a time period from the time when the video recorder is abnormal to the time when the video recorder recovers to be normal.
In one possible embodiment, the method further comprises:
receiving a fourth instruction sent by the monitoring equipment;
and acquiring and storing video data corresponding to a second time period from the camera, wherein the second time period is a time period from the moment when the video recorder is abnormal to the starting moment when the server acquires the video data from the camera.
In a third aspect, an embodiment of the present invention provides a video data storage apparatus, which is applied to a monitoring device, where the apparatus includes:
the monitoring module is used for monitoring whether the video recorder is abnormal or not, wherein the video recorder is used for acquiring video data collected by the video camera from the video camera and storing the video data;
the first sending module is used for sending a first instruction to the server when monitoring that the video recorder is abnormal, wherein the first instruction is used for instructing the server to acquire and store video data acquired by the camera from the camera.
In a possible embodiment, the first instruction comprises a network address of the camera;
the apparatus further comprises a first obtaining module configured to:
and before sending the first instruction to the server, receiving the network address of the camera sent by the terminal equipment, the video recorder or the camera.
In a possible implementation manner, the first sending module is further configured to:
and when the video recorder is monitored to be recovered to be normal, sending a second instruction to the server, wherein the second instruction is used for instructing the server to acquire and store the video data acquired by the camera from the video recorder.
In a possible implementation manner, the first sending module is further configured to:
and sending a third instruction to the server, wherein the third instruction is used for instructing the server to send the video data corresponding to a first time period to the video recorder, and the first time period is a time period from the time when the video recorder is abnormal to the time when the video recorder recovers to be normal.
In a possible implementation manner, the first sending module is further configured to:
and sending a fourth instruction to the server, wherein the fourth instruction is used for instructing the server to acquire and store video data corresponding to a second time period from the camera, and the second time period is a time period from the time when the video recorder is abnormal to the starting time when the server acquires the video data from the camera.
In a fourth aspect, an embodiment of the present invention provides a video data storage apparatus, which is applied to a server, and the apparatus includes:
the monitoring device comprises a receiving module and a processing module, wherein the receiving module is used for receiving a first instruction sent by monitoring equipment, the first instruction is sent when the monitoring equipment monitors that the video recorder is abnormal, and the video recorder is used for acquiring video data collected by the camera from the camera and storing the video data;
and the second acquisition module is used for acquiring and storing the video data acquired by the camera from the camera.
In a possible implementation manner, the second obtaining module is specifically configured to:
and acquiring and storing video data acquired by the camera from the camera according to the network address of the camera, wherein the network address of the camera is contained in the first instruction, or the network address of the camera is pre-configured in the server.
In a possible implementation, the receiving module is further configured to:
receiving a second instruction sent by the monitoring equipment, wherein the second instruction is sent by the monitoring equipment when the monitoring equipment monitors that the video recorder recovers to normal;
the second obtaining module is further configured to obtain and store video data collected by the camera from the video recorder.
In a possible implementation manner, the apparatus further includes a second sending module, and the receiving module is further configured to: receiving a third instruction sent by the monitoring equipment;
the second sending module is configured to:
sending video data corresponding to a first time period to the video recorder, wherein the first time period is a time period from the moment when the video recorder is abnormal to the moment when the video recorder recovers to be normal.
In a possible implementation, the receiving module is further configured to:
receiving a fourth instruction sent by the monitoring equipment;
the second obtaining module is further configured to: and acquiring and storing video data corresponding to a second time period from the camera, wherein the second time period is a time period from the moment when the video recorder is abnormal to the starting moment when the server acquires the video data from the camera.
In a fifth aspect, an embodiment of the present invention provides a video data storage system, including: monitoring equipment, a video recorder, a camera and a server;
the monitoring equipment is used for monitoring whether the video recorder is abnormal or not;
the monitoring equipment is used for sending a first instruction to the server when monitoring that the video recorder is abnormal;
the server is used for receiving the first instruction, acquiring the video data acquired by the camera from the camera and storing the video data.
In a possible embodiment, the first instruction comprises a network address of the camera;
the monitoring device is further configured to receive a network address of the camera sent by a terminal device, the video recorder, or the camera before sending the first instruction to the server.
The server is specifically configured to acquire and store video data acquired by the camera from the camera according to the network address of the camera.
In a possible implementation manner, the monitoring device is further configured to send a second instruction to the server when it is monitored that the video recorder recovers to normal;
and the server is also used for receiving the second instruction, acquiring the video data acquired by the camera from the video recorder and storing the video data.
In a possible implementation manner, the monitoring device is further configured to send a third instruction to the server;
the server is further configured to receive the third instruction, and send video data corresponding to a first time period to the video recorder, where the first time period is a time period from a time when the video recorder is abnormal to a time when the video recorder recovers to be normal;
the video recorder is further used for storing the video data corresponding to the first time period.
In a possible implementation manner, the monitoring device is further configured to send a fourth instruction to the server;
the server is further configured to receive the fourth instruction, acquire and store video data corresponding to a second time period from the camera, where the second time period is a time period from a time when the video recorder is abnormal to a start time when the server acquires the video data from the camera.
In a sixth aspect, an embodiment of the present invention provides a monitoring device, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the video data storage method as described above in the first aspect and various possible implementations of the first aspect.
In a seventh aspect, an embodiment of the present invention provides a server, including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the video data storage method as described above in the second aspect and various possible embodiments of the second aspect.
In an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when a processor executes the computer-executable instructions, the video data storage method according to the first aspect and various possible implementation manners of the first aspect is implemented.
In a ninth aspect, the present invention provides a computer-readable storage medium, in which computer-executable instructions are stored, and when a processor executes the computer-executable instructions, the video data storage method according to the second aspect and various possible implementation manners of the second aspect is implemented.
The video data storage method, device, equipment and storage medium provided by the embodiment monitor whether the video recorder is abnormal or not through the monitoring equipment; when the video recorder is monitored to be abnormal, a first instruction is sent to the server, wherein the first instruction is used for indicating the server to acquire and store video data acquired by the camera from the camera, and the server can be indicated to directly acquire the acquired video data from the camera when the video recorder is monitored to be abnormal, so that the server can store the video data acquired by the camera during the abnormal period of the video recorder, the video data loss caused by the abnormal condition of the video recorder is avoided, and the continuity of video data storage is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a block diagram of a video data storage system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a video data storage method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a video data storage method according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a video data storage method according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating a video data storage method according to still another embodiment of the present invention;
fig. 6 is an interactive signaling diagram of a video data storage method in the prior art;
fig. 7 is an interactive signaling diagram of a video data storage method according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a video data storage device according to an embodiment of the present invention;
FIG. 9 is a schematic structural diagram of a video data storage device according to yet another embodiment of the present invention;
FIG. 10 is a schematic structural diagram of a video data storage device according to another embodiment of the present invention;
FIG. 11 is a schematic structural diagram of a video data storage device according to yet another embodiment of the present invention;
fig. 12 is a schematic hardware structure diagram of a monitoring device according to an embodiment of the present invention;
fig. 13 is a schematic hardware structure diagram of a server according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an architecture of a video data storage system according to an embodiment of the present invention. As shown in fig. 1, the video data storage system provided in the present embodiment includes a camera 11, a video recorder 12, a server 13, a monitoring device 14, and a terminal device 15. The Camera 11 can communicate with the video recorder 12 and the server 13, and the Camera 12 can be a network Camera (IP Camera), for example. The Video Recorder 12 may be a Network Video Recorder (NVR), a Digital Video Recorder (DVR), or a Video Recorder capable of supporting both analog Video data and digital Video data, and is not limited herein. The Server 13 is a Server for storing video images, and may be a Record Server video Server, for example. The monitoring device 14 may be a terminal device, a server, or other electronic devices dedicated to monitoring whether the Video recorder is abnormal, for example, the monitoring device may be a computer, a VMS (Video management System) server, or the like. The terminal device 15 is configured to perform related configuration or management on the video data storage system according to an instruction of a user, and the terminal device 15 may be a computer, a mobile phone, a tablet computer, and the like, which is not limited herein.
The camera 11 is used for monitoring a designated area and capturing video data. The terminal device 15 receives the user instruction to perform corresponding configuration, and establishes network connection among the camera 11, the video recorder 12 and the server 13. The monitoring device 14 is used to monitor the video recorder 12. When the video recorder 12 works normally, the video recorder 12 acquires video data acquired by the camera 11 from the camera 11, stores the video data locally, and uploads the acquired video data to the server 13 for storage. When an abnormality occurs in the video recorder 12, the video recorder 12 cannot acquire video data from the video camera 11. When monitoring that the video recorder 12 is abnormal, the monitoring device 14 sends an instruction to the server 13 to instruct the server 13 not to acquire the video data from the video recorder 12, but to acquire the video data directly from the video camera 11 instead. The server 13 is instructed to directly acquire the acquired video data from the camera 11 when the video recorder 12 is monitored to be abnormal, so that the server 13 can store the video data acquired by the camera 11 during the abnormal period of the video recorder 12, the video data loss caused by the abnormal condition of the video recorder 12 is avoided, and the continuity of video data storage is ensured. The following examples are intended to illustrate the present invention.
Fig. 2 is a flowchart illustrating a video data storage method according to an embodiment of the present invention. The execution subject of the method is the monitoring device. As shown in fig. 2, the method includes:
s201, monitoring whether a video recorder is abnormal or not, wherein the video recorder is used for acquiring video data collected by a camera from the camera and storing the video data.
In this embodiment, the occurrence of an exception in the video recorder may include an exception that the video recorder cannot store video data due to a communication interface failure, a power failure, a storage program failure, and the like of the video recorder, which is not limited herein. When the video recorder is normal, the video recorder acquires video data collected by the camera from the camera and stores the video data. Optionally, when the video recorder is normal, the video recorder may also upload video data collected by the camera to the server for storage by the server. The video recorder and the server are used for storing to realize the backup of the video data.
The monitoring device may monitor whether the video recorder is abnormal, and the specific monitoring mode may be determined according to the actual application situation, which is not limited herein. For example, the monitoring device may generate a monitoring signal to the video recorder according to a certain period, and determine that the video recorder is abnormal when the video recorder does not reply to the monitoring signal; or, the video recorder actively generates an online signal to the monitoring equipment according to a certain period, and if the monitoring equipment does not receive the online signal within a certain time, the video recorder is determined to be abnormal; or the video recorder carries out self-checking, an abnormal indication signal is generated to the monitoring equipment when the video recorder detects that the video recorder is abnormal, and the monitoring equipment determines that the video recorder is abnormal when receiving the abnormal indication signal.
S202, when monitoring that the video recorder is abnormal, sending a first instruction to the server, wherein the first instruction is used for instructing the server to acquire and store video data acquired by the camera from the camera.
In this embodiment, optionally, the server may acquire and store the video data collected by the camera from the camera according to the network address of the camera. Wherein the network address of the camera is used for other devices to communicate with the camera through the address. The network address of the camera may be included in the first instruction, and sent to the server by the monitoring device through the first instruction; before the monitoring device sends the first command to the server, the monitoring device, the camera, the terminal device, and other devices may pre-configure the server, and pre-configure the network address of the camera in the server, which is not limited herein.
When monitoring that the video recorder is abnormal, the monitoring equipment sends a first instruction to the server. The server communicates with the camera according to the network address of the camera according to the first instruction, directly obtains video data collected by the camera from the camera, and stores the video data. Therefore, during the abnormal period of the video recorder, the video data collected by the video camera is not stored in the video recorder but is stored in the server, and the continuity of video data storage is ensured.
In the embodiment, whether the video recorder is abnormal or not is monitored through monitoring equipment, wherein the video recorder is used for acquiring video data collected by the video camera from the video camera and storing the video data; when the video recorder is monitored to be abnormal, a first instruction is sent to the server, wherein the first instruction is used for indicating the server to acquire and store video data acquired by the camera from the camera, and the server can be indicated to directly acquire the acquired video data from the camera when the video recorder is monitored to be abnormal, so that the server can store the video data acquired by the camera during the abnormal period of the video recorder, the video data loss caused by the abnormal condition of the video recorder is avoided, and the continuity of video data storage is ensured.
As an implementation example of the present invention, the first instruction includes a network address of the camera;
before S202, the method further includes:
and receiving the network address of the camera sent by the terminal equipment, the video recorder or the camera.
In this embodiment, the network address of the camera may be included in the first instruction, and transmitted to the server by the first instruction. When monitoring that the video recorder is abnormal, the monitoring equipment sends a first instruction to the server, wherein the first instruction comprises a network address of the video camera. And the server communicates with the camera according to the network address, and acquires and stores the video data from the camera.
In this embodiment, the monitoring device may acquire the network address of the camera in at least one of the following three ways. In the first mode, when a user performs system configuration, a network address of a camera is input to a terminal device, and the terminal device sends the network address of the camera input by the user to a monitoring device. In the second mode, the monitoring equipment sends a first request carrying the identification of the camera to the video recorder; the video recorder communicates with the video camera corresponding to the identification of the video camera, acquires the network address of the video camera from the video camera corresponding to the identification of the video camera, and then sends the network address of the video camera to the monitoring device. In the third mode, the monitoring equipment directly communicates with the camera and receives the network address of the camera sent by the camera. In addition, there may be other ways to acquire the network address of the camera, and the method is not limited herein.
As another implementation example of the present invention, the network address of the camera is preconfigured in the server.
In this embodiment, in the system configuration phase, the server may be configured by a device such as a terminal device or a monitoring device, and the network address of the camera may be configured in the server, so that the server communicates with the camera according to the network address of the camera when the video recorder is abnormal.
Fig. 3 is a flowchart illustrating a video data storage method according to another embodiment of the present invention. As shown in fig. 3, the method includes:
s301, monitoring whether the video recorder is abnormal or not, wherein the video recorder is used for acquiring video data collected by the video camera from the video camera and storing the video data.
In this embodiment, S301 is similar to S201 in the embodiment of fig. 2, and is not described here again.
S302, when monitoring that the video recorder is abnormal, sending a first instruction to the server, wherein the first instruction is used for instructing the server to acquire and store video data acquired by the camera from the camera.
In this embodiment, S302 is similar to S202 in the embodiment of fig. 2, and is not described here again.
And S303, when the video recorder is monitored to be recovered to be normal, sending a second instruction to the server, wherein the second instruction is used for instructing the server to acquire and store the video data acquired by the camera from the video recorder.
In this embodiment, the monitoring device continues to monitor the video recorder after an abnormality occurs in the video recorder. And when the monitoring equipment monitors that the video recorder recovers to be normal, the monitoring equipment sends a second instruction to the server. And the server stops acquiring the video data acquired by the camera from the camera according to the instruction of the second instruction, and changes the acquisition of the video data acquired by the camera from the video recorder.
After the video recorder recovers to be normal, the video recorder can communicate with the camera and store the video data collected by the camera to the local, so that the server can acquire the video data collected by the camera from the video recorder. Under the general condition, the video recorder has stronger data transmission capability than the video camera, obtains video data from the video camera through the video recorder when the video recorder is normal, forwards the video data to the server, can realize the data transmission work by the video recorder, reduces the data transmission burden of the video camera. When the video recorder is abnormal, the server directly communicates with the video camera, so that the storage continuity of the video data can be ensured, and the video data is prevented from being lost.
Optionally, the monitoring device may send a third instruction to the server, where the third instruction is used to instruct the server to send video data corresponding to a first period to the video recorder, so that the video recorder stores the video data of the first period, where the first period is a period from a time when the video recorder is abnormal to a time when the video recorder returns to normal.
In this embodiment, the determination of the first period may be determined in various manners, and may be determined according to an actual application, which is not limited herein. For example, the time when the video recorder is abnormal and the time when the video recorder is recovered to be normal can be recorded by the monitoring equipment, then the monitoring equipment sends the time when the video recorder is abnormal and the time when the video recorder is recovered to be normal to the server, and the server determines the first time period; or the server takes the time when the first instruction is received as the time when the video recorder is abnormal, and takes the time when the second instruction is received as the time when the video recorder recovers to be normal, and the first time interval is obtained through calculation.
The first time interval is the time interval when the video recorder is abnormal, and the video data collected by the video camera in the time interval is not stored in the video recorder. After the video recorder recovers to be normal, the monitoring equipment instructs the server to send the video data corresponding to the first time period to the video recorder through a third instruction, and the video recorder stores the video data corresponding to the first time period. The third instruction and the second instruction may be the same instruction or different instructions, and are not limited herein.
In the embodiment, the server sends the video data corresponding to the abnormal period of the video recorder to the video recorder, so that the video data stored in the video recorder is complete, the continuity of the video data in the video recorder can be ensured, the video recorder and the server both store the video data corresponding to the abnormal period of the video recorder, and the problem of video data loss corresponding to the abnormal period of the video recorder caused by reasons such as server disk damage is further prevented.
Optionally, the monitoring device may send a fourth instruction to a server, where the fourth instruction is used to instruct the server to acquire and store video data corresponding to a second time period from the camera, where the second time period is a time period from a time when the video recorder is abnormal to a start time when the server acquires the video data from the camera.
In this embodiment, when monitoring that the video recorder is abnormal, the monitoring device sends a first instruction to the server, and the server receives the first instruction and then acquires and stores video data acquired by the camera from the camera. Then, the video data in the period (i.e., the second period) from the time when the video recorder is abnormal to the start time when the server acquires the video data from the video camera according to the first instruction is not stored in the server, and the video data stored in the server is missing. The video data during the second period is stored in the memory of the camera itself. In order to avoid missing video data in the second time period in the server, the monitoring device may send a fourth instruction to the server, and the server acquires and stores video data corresponding to the second time period from the camera after receiving the fourth instruction, so that it is ensured that video data acquired by the camera can be stored in the server when the server switches to acquire video data from the camera when the video recorder is abnormal, and the integrity of the video data in the server is ensured.
Fig. 4 is a flowchart illustrating a video data storage method according to another embodiment of the present invention. The execution main body of the method is a server, and the specific implementation of this embodiment is similar to the embodiment that uses the monitoring device as the execution main body shown in fig. 2, so that only brief descriptions are provided below, and no further description is given. As shown in fig. 4, the method includes:
s401, receiving a first instruction sent by monitoring equipment, wherein the first instruction is sent when the monitoring equipment monitors that the video recorder is abnormal, and the video recorder is used for acquiring video data collected by the video camera from the video camera and storing the video data.
In the embodiment, when the video recorder is normal, the video recorder acquires the video data collected by the video camera from the video camera and stores the video data. Optionally, the video recorder may upload the acquired video data collected by the camera to the server for storage by the server. The monitoring device can monitor whether the video recorder is abnormal or not. When monitoring that the video recorder is abnormal, the monitoring equipment sends a first instruction to the server. The server receives a first instruction.
S402, acquiring and storing the video data collected by the camera from the camera.
In this embodiment, the server communicates with the camera according to the network address of the camera according to the first instruction, directly obtains video data collected by the camera from the camera, and stores the video data.
In the embodiment, whether the video recorder is abnormal or not is monitored through monitoring equipment, wherein the video recorder is used for acquiring video data collected by the video camera from the video camera and storing the video data; when the video recorder is monitored to be abnormal, a first instruction is sent to the server, wherein the first instruction is used for indicating the server to acquire and store video data acquired by the camera from the camera, and the server can be indicated to directly acquire the acquired video data from the camera when the video recorder is monitored to be abnormal, so that the server can store the video data acquired by the camera during the abnormal period of the video recorder, the video data loss caused by the abnormal condition of the video recorder is avoided, and the continuity of video data storage is ensured.
Optionally, acquiring and storing the video data collected by the camera from the camera includes:
and acquiring and storing video data acquired by the camera from the camera according to the network address of the camera, wherein the network address of the camera is contained in the first instruction, or the network address of the camera is pre-configured in the server.
In this embodiment, the network address of the camera may be included in the first instruction, and the monitoring device sends the first instruction to the server; before the monitoring device sends the first command to the server, the monitoring device, the camera, the terminal device, and other devices may pre-configure the server, and pre-configure the network address of the camera in the server, which is not limited herein.
Fig. 5 is a flowchart illustrating a video data storage method according to still another embodiment of the invention. As shown in fig. 5, the method includes:
s501, receiving a first instruction sent by monitoring equipment, wherein the first instruction is sent when the monitoring equipment monitors that the video recorder is abnormal, and the video recorder is used for acquiring video data collected by the video camera from the video camera and storing the video data.
In this embodiment, S501 is similar to S401 in the embodiment of fig. 4, and is not described here again.
S502, acquiring and storing video data collected by the camera from the camera.
In this embodiment, S502 is similar to S402 in the embodiment of fig. 4, and is not described here again.
S503, receiving a second instruction sent by the monitoring device, wherein the second instruction is sent by the monitoring device when the recorder is monitored to be recovered to normal;
and S504, acquiring and storing the video data acquired by the camera from the video recorder.
In this embodiment, after the video recorder is abnormal, the monitoring device continues to monitor the video recorder. And when the monitoring equipment monitors that the video recorder recovers to be normal, the monitoring equipment sends a second instruction to the server. And the server stops acquiring the video data acquired by the camera from the camera according to the instruction of the second instruction, and changes the acquisition of the video data acquired by the camera from the video recorder.
After the video recorder recovers to be normal, the video recorder can communicate with the camera and store the video data collected by the camera to the local, so that the server can acquire the video data collected by the camera from the video recorder. Under the general condition, the video recorder has stronger data transmission capability than the video camera, obtains video data from the video camera through the video recorder when the video recorder is normal, forwards the video data to the server, can realize the data transmission work by the video recorder, reduces the data transmission burden of the video camera. When the video recorder is abnormal, the server directly communicates with the video camera, so that the storage continuity of the video data can be ensured, and the video data is prevented from being lost.
Optionally, after S503, the method may further include:
and receiving a third instruction sent by the monitoring equipment, and sending video data corresponding to a first time period to the video recorder, wherein the first time period is a time period from the moment when the video recorder is abnormal to the moment when the video recorder recovers to be normal.
The first time interval is the time interval when the video recorder is abnormal, and the video data collected by the video camera in the time interval is not stored in the video recorder. After the video recorder recovers to be normal, the monitoring equipment indicates the server to send the video data corresponding to the first time period to the video recorder through the second instruction, and the video recorder stores the video data corresponding to the first time period.
In the embodiment, the server sends the video data corresponding to the abnormal period of the video recorder to the video recorder, so that the video data stored in the video recorder is complete, the continuity of the video data in the video recorder can be ensured, the video recorder and the server both store the video data corresponding to the abnormal period of the video recorder, and the problem of video data loss corresponding to the abnormal period of the video recorder caused by reasons such as server disk damage is further prevented.
Optionally, the method may further include:
receiving a fourth instruction sent by the monitoring equipment;
and acquiring and storing video data corresponding to a second time period from the camera, wherein the second time period is a time period from the moment when the video recorder is abnormal to the starting moment when the server acquires the video data from the camera.
In this embodiment, video data in a period (that is, a second period) from a time when the video recorder is abnormal to a start time when the server acquires the video data from the video camera according to the first instruction is not stored in the server, and the video data stored in the server is missing. The video data during the second period is stored in the memory of the camera itself. In order to avoid missing video data in the second time period in the server, the monitoring device can send a fourth instruction to the server, and the server obtains and stores video data corresponding to the second time period from the camera after receiving the fourth instruction, so that the video data collected by the camera can be stored in the server when the video recorder is abnormal and the server is switched to obtain the video data from the camera, and the integrity of the video data in the server is ensured.
The embodiment of the invention also provides a video data storage system which comprises monitoring equipment, a camera and a server.
The monitoring equipment is used for monitoring whether the video recorder is abnormal or not.
The monitoring equipment is used for sending a first instruction to the server when monitoring that the video recorder is abnormal.
The server is used for receiving the first instruction, acquiring the video data acquired by the camera from the camera and storing the video data.
In the embodiment, when the video recorder is normal, the video recorder acquires the video data collected by the video camera from the video camera and stores the video data. Optionally, the video recorder may upload the acquired video data collected by the camera to the server for storage by the server. The monitoring device can monitor whether the video recorder is abnormal or not. When monitoring that the video recorder is abnormal, the monitoring equipment sends a first instruction to the server. And the server receives the first instruction, acquires the video data acquired by the camera from the camera and stores the video data.
In the embodiment, whether the video recorder is abnormal or not is monitored through monitoring equipment, wherein the video recorder is used for acquiring video data acquired by the video camera from the video camera and storing the video data; when the video recorder is monitored to be abnormal, a first instruction is sent to the server, wherein the first instruction is used for indicating the server to acquire and store video data acquired by the camera from the camera, and the server can be indicated to directly acquire the acquired video data from the camera when the video recorder is monitored to be abnormal, so that the server can store the video data acquired by the camera during the abnormal period of the video recorder, the video data loss caused by the abnormal condition of the video recorder is avoided, and the continuity of video data storage is ensured.
Optionally, the first instruction comprises a network address of the camera;
the monitoring device is further configured to receive a network address of the camera sent by a terminal device, the video recorder, or the camera before sending the first instruction to the server.
The server is specifically configured to acquire and store video data acquired by the camera from the camera according to the network address of the camera.
In this embodiment, the server specifically communicates with the camera according to the network address of the camera, directly obtains video data acquired by the camera from the camera, and stores the video data. The network address of the camera may be included in the first instruction, and sent to the server by the monitoring device through the first instruction; before the monitoring device sends the first command to the server, the monitoring device, the camera, the terminal device, and other devices may pre-configure the server, and pre-configure the network address of the camera in the server, which is not limited herein.
Optionally, the monitoring device is further configured to send a second instruction to the server when it is monitored that the video recorder returns to normal;
and the server is also used for receiving the second instruction, acquiring the video data acquired by the camera from the video recorder and storing the video data.
In this embodiment, after the video recorder is abnormal, the monitoring device continues to monitor the video recorder. And when the monitoring equipment monitors that the video recorder recovers to be normal, the monitoring equipment sends a second instruction to the server. And the server stops acquiring the video data acquired by the camera from the camera according to the instruction of the second instruction, and changes the acquisition of the video data acquired by the camera from the video recorder.
After the video recorder recovers to be normal, the video recorder can communicate with the camera and store the video data collected by the camera to the local, so that the server can acquire the video data collected by the camera from the video recorder. Under the general condition, the video recorder has stronger data transmission capability than the video camera, obtains video data from the video camera through the video recorder when the video recorder is normal, forwards the video data to the server, can realize the data transmission work through the video recorder, and reduces the data transmission burden of the video camera. When the video recorder is abnormal, the server directly communicates with the video camera, so that the storage continuity of the video data can be ensured, and the video data is prevented from being lost.
Optionally, the monitoring device is further configured to send a third instruction to the server;
the server is further configured to receive the third instruction, and send video data corresponding to a first time period to the video recorder, where the first time period is a time period from a time when the video recorder is abnormal to a time when the video recorder recovers to be normal;
the video recorder is further used for storing the video data corresponding to the first time period.
In this embodiment, the first time period is a time period when the video recorder is abnormal, and the video recorder does not store the video data acquired by the video camera in the time period. After the video recorder recovers to be normal, the monitoring equipment indicates the server to send the video data corresponding to the first time period to the video recorder through the second instruction, and the video recorder stores the video data corresponding to the first time period.
In the embodiment, the server sends the video data corresponding to the abnormal period of the video recorder to the video recorder, so that the video data stored in the video recorder is complete, the continuity of the video data in the video recorder can be ensured, the video recorder and the server both store the video data corresponding to the abnormal period of the video recorder, and the problem of video data loss corresponding to the abnormal period of the video recorder caused by reasons such as server disk damage is further prevented.
Optionally, the monitoring device is further configured to send a fourth instruction to the server;
the server is further configured to receive the fourth instruction, acquire and store video data corresponding to a second time period from the camera, where the second time period is a time period from a time when the video recorder is abnormal to a start time when the server acquires the video data from the camera.
In this embodiment, video data in a period (that is, a second period) from a time when the video recorder is abnormal to a start time when the server acquires the video data from the video camera according to the first instruction is not stored in the server, and the video data stored in the server is missing. The video data during the second period is stored in the memory of the camera itself. In order to avoid missing video data in the second time period in the server, the monitoring device may send a fourth instruction to the server, and the server acquires and stores video data corresponding to the second time period from the camera after receiving the fourth instruction, so that it is ensured that video data acquired by the camera can be stored in the server when the server switches to acquire video data from the camera when the video recorder is abnormal, and the integrity of the video data in the server is ensured.
Fig. 6 is an interactive signaling diagram of a video data storage method in the prior art. In this example, the Camera is an IP Camera, the recorder is an NVR, the Server is a Record Server, and the VMS Server is for video device management. As shown in fig. 6, the method may include:
a system configuration stage:
s601, the terminal equipment sends an instruction of adding equipment to the VMS server.
S602, the VMS server sends an instruction of adding equipment to the NVR.
S603, NVR returns the equipment information to the VMS server.
S604, the VMS server returns a message that the equipment is successfully added to the NVR.
S605, the terminal equipment sends an instruction stored by the configuration center to the VMS server.
S606, the VMS Server configures the Record Server.
S607, Record Server Server returns the successful configuration message to VMS Server.
S608, the VMS server returns a message of successful configuration to the terminal equipment.
In the system configuration process, a user logs in a VMS Server through terminal equipment to perform equipment management, and establishes an association relation among an NVR (network video recorder), an IP (Internet protocol) Camera and a Record Server in the system.
When NVR is normal, the following steps are executed:
s609, the NVR sends a request for acquiring the video data to the IP Camera.
And S610, the IP Camera sends the collected video data to the NVR.
S611, the Record Server Server sends a request for acquiring the video data to the NVR.
And S612, returning the video data to the Record Server by the NVR.
When the NVR is normal, the NVR acquires video data from the IP Camera in real time for storage, and the Record Server acquires the video data from the NVR in real time for storage.
When the NVR is abnormal, the following steps are executed:
s613, the Record Server Server tries to send a request for acquiring video data to the NVR.
S614, the Record Server fails to acquire the video data.
During the abnormal period of the NVR, the NVR cannot acquire the video data from the IP Camera in real time for storage, and the Record Server cannot acquire the video data from the NVR for storage, so that the video data acquired by the IP Camera during the abnormal period of the video recorder is not stored, and the video data is lost.
The prior art has the following defects:
in the abnormal period of the NVR, the Record Server may lack the video data collected by the IP Camera in the abnormal period, and at this time, the video data in the abnormal period cannot be viewed in real time (the NVR cannot be viewed because of the abnormality).
2. When the NVR is recovered, the video data during the abnormal period of the NVR cannot be returned to the Record Server because the NVR has no video data during the abnormal period locally, thereby causing permanent loss of the video data during the abnormal period of the NVR.
The above two disadvantages directly cause the loss of video data, and cannot meet the requirement of 100% storage of video data.
Fig. 7 is an interactive signaling diagram of a video data storage method according to an embodiment of the present invention. In this example, the Camera is an IP Camera, the video recorder is an NVR, the Server is a Record Server, and the VMS Server serves as a monitoring device. As shown in fig. 7, the method may include:
a system configuration stage:
s701, the terminal equipment sends an instruction of adding equipment to the VMS server.
S702, the VMS server sends an instruction of adding equipment to the NVR.
S703, NVR returns the device information to the VMS server.
S704, the VMS server sends an instruction for acquiring the basic information of the IP channel of the camera to the NVR. Wherein, the IP channel basic information includes but is not limited to at least one of a network address, a port identification, a user name, a password, and the like.
S705, the NVR sends an instruction for acquiring the basic information of the IP channel of the Camera to the IP Camera.
S706, the IP Camera returns the IP channel basic information to the NVR.
And S707, NVR returns the IP channel basic information to the VMS server.
S708, the VMS server returns a message that the equipment addition is successful to the NVR.
S709, the terminal device sends the instruction stored in the configuration center to the VMS server.
And S710, the VMS Server configures the Record Server Server.
S711, the Record Server Server returns a message of successful configuration to the VMS Server.
And S712, the VMS server returns a message of successful configuration to the terminal equipment.
In a system configuration stage, the VMS server acquires the IP channel basic information of the IP Camera through the NVR.
When NVR is normal, the following steps are executed:
s713, NVR sends a request for obtaining video data to IP Camera.
And S714, the IP Camera sends the collected video data to the NVR.
S715, the Record Server Server sends a request for acquiring the video data to the NVR.
S716, the NVR returns the video data to the Record Server Server.
When the NVR is normal, the NVR acquires video data from the IP Camera in real time for storage, and the Record Server acquires the video data from the NVR in real time for storage.
When the NVR is abnormal, the following steps are executed:
s717, the VMS server monitors that the NVR is abnormal through the state of the inspection equipment. It should be noted that the VMS server monitors the NVR during the operation of the NVR, but the step of S719 is not triggered when the NVR is normal.
S718, the VMS Server resends the storage plan to the Record Server Server, and sets the video data acquisition address of the Record Server Server to be the network address of the IP Camera.
And S719, the Record Server Server returns a message of successful configuration to the VMS Server.
S720, the Record Server Server sends a request for acquiring the video data to the IP Camera.
And S721, returning the video data to the Record Server by the IP Camera.
During the abnormal period of the NVR, the NVR cannot acquire the video data from the IP Camera in real time for storage, but the Record Server Server can acquire the video data from the IP Camera for storage, so that the video data acquired by the IP Camera during the abnormal period of the video recorder is stored by the Record Server Server, and the video data loss is avoided.
The specific implementation of this embodiment is similar to the embodiment shown in fig. 2 to fig. 5, and is not repeated herein.
Compared with the prior art, the embodiment has the following advantages:
1. acquiring the basic information of an IP channel of the IP Camera when the equipment is added: when the equipment is added, a link for acquiring the basic information of the IP channel is added.
2, adding an NVR state inspection mechanism by the VMS server: the VMS server is added with the mechanism for constantly monitoring whether the NVR is abnormal or not.
And 3, switching a stream taking mode by the Record Server: when monitoring that the NVR is abnormal, the VMS Server sends a video recording plan to the Record Server again, and a real IP of an IP channel with a stream address of the IP Camera is taken, so that video data interruption caused by the fact that the NVR cannot take the stream is avoided. Meanwhile, the IP Camera is locally provided with an SD card, so that video data supplementary recording during the switching and stream taking of the Record Server Server can be provided, and the integrity of the video data is ensured.
Fig. 8 is a schematic structural diagram of a video data storage apparatus according to an embodiment of the invention. The video data storage device 80 is applied to a monitoring apparatus. As shown in fig. 8, the video data storage apparatus 80 includes: a monitoring module 801 and a first sending module 802.
A monitoring module 801, configured to monitor whether a video recorder is abnormal, where the video recorder is configured to acquire video data collected by a camera from the camera and store the video data.
A first sending module 802, configured to send a first instruction to the server when it is monitored that the video recorder is abnormal, where the first instruction is used to instruct the server to obtain and store video data acquired by the camera from the camera.
In the embodiment, whether the video recorder is abnormal or not is monitored through monitoring equipment, wherein the video recorder is used for acquiring video data collected by the video camera from the video camera and storing the video data; when the video recorder is monitored to be abnormal, a first instruction is sent to the server, wherein the first instruction is used for indicating the server to acquire and store video data acquired by the camera from the camera, and the server can be indicated to directly acquire the acquired video data from the camera when the video recorder is monitored to be abnormal, so that the server can store the video data acquired by the camera during the abnormal period of the video recorder, the video data loss caused by the abnormal condition of the video recorder is avoided, and the continuity of video data storage is ensured.
Fig. 9 is a schematic structural diagram of a video data storage device according to yet another embodiment of the present invention. As shown in fig. 9, the video data storage apparatus 80 provided in this embodiment may further include, on the basis of the embodiment shown in fig. 8: a first obtaining module 803.
Optionally, the first instruction comprises a network address of the camera;
the first obtaining module 803 is configured to:
and before sending the first instruction to the server, receiving the network address of the camera sent by the terminal equipment, the video recorder or the camera.
Optionally, the first sending module 802 is further configured to:
after the first instruction is sent to a server, when the video recorder is monitored to recover to normal, a second instruction is sent to the server, and the second instruction is used for instructing the server to acquire and store video data acquired by the camera from the video recorder.
Optionally, the first sending module 802 is further configured to:
and sending a third instruction to the server, wherein the third instruction is used for instructing the server to send the video data corresponding to a first time period to the video recorder, and the first time period is a time period from the time when the video recorder is abnormal to the time when the video recorder recovers to be normal.
Optionally, the first sending module 802 is further configured to:
and sending a fourth instruction to the server, wherein the fourth instruction is used for instructing the server to acquire and store video data corresponding to a second time period from the camera, and the second time period is a time period from the time when the video recorder is abnormal to the starting time when the server acquires the video data from the camera.
The video data storage apparatus provided in the embodiment of the present invention may be used to implement the method embodiment that uses the monitoring device as an execution main body, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 10 is a schematic structural diagram of a video data storage device according to another embodiment of the present invention. The video data storage apparatus 100 is applied to a server. As shown in fig. 10, the video data storage apparatus 100 includes: a receiving module 1001 and a second obtaining module 1002.
The receiving module 1001 is configured to receive a first instruction sent by a monitoring device, where the first instruction is sent by the monitoring device when monitoring that the video recorder is abnormal, and the video recorder is configured to acquire video data collected by the camera from the camera and store the video data.
A second obtaining module 1002, configured to obtain and store video data collected by the camera from the camera.
In the embodiment, whether the video recorder is abnormal or not is monitored through monitoring equipment, wherein the video recorder is used for acquiring video data collected by the video camera from the video camera and storing the video data; when the video recorder is monitored to be abnormal, a first instruction is sent to the server, wherein the first instruction is used for indicating the server to acquire and store video data acquired by the camera from the camera, and the server can be indicated to directly acquire the acquired video data from the camera when the video recorder is monitored to be abnormal, so that the server can store the video data acquired by the camera during the abnormal period of the video recorder, the video data loss caused by the abnormal condition of the video recorder is avoided, and the continuity of video data storage is ensured.
Fig. 11 is a schematic structural diagram of a video data storage apparatus according to still another embodiment of the invention. As shown in fig. 11, the video data storage apparatus 100 provided in this embodiment may further include, on the basis of the embodiment shown in fig. 10: a second sending module 1003.
Optionally, the second obtaining module 1002 is specifically configured to:
and acquiring and storing the video data acquired by the camera from the camera according to the network address of the camera, wherein the network address of the camera is contained in the first instruction, or the network address of the camera is pre-configured in the server.
Optionally, the receiving module 1001 is further configured to:
receiving a second instruction sent by the monitoring equipment, wherein the second instruction is sent by the monitoring equipment when the monitoring equipment monitors that the video recorder recovers to normal;
the second obtaining module 1002 is further configured to obtain and store video data collected by the camera from the video recorder.
Optionally, the receiving module 1001 is further configured to: receiving a third instruction sent by the monitoring equipment;
the second sending module 1003 is configured to:
and sending the video data corresponding to a first time period to the video recorder, wherein the first time period is a time period from the time when the video recorder is abnormal to the time when the video recorder recovers to be normal.
Optionally, the receiving module 1001 is further configured to:
receiving a fourth instruction sent by the monitoring equipment;
the second obtaining module 1002 is further configured to: and acquiring and storing video data corresponding to a second time period from the camera, wherein the second time period is a time period from the moment when the video recorder is abnormal to the starting moment when the server acquires the video data from the camera.
The video data storage device provided in the embodiment of the present invention may be used to implement the method embodiment that uses the server as the execution main body, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 12 is a schematic hardware structure diagram of a monitoring device according to an embodiment of the present invention. As shown in fig. 12, the monitoring apparatus 120 provided in the present embodiment includes: at least one processor 1201 and memory 1202. The monitoring device 120 further comprises a communication component 1203. The processor 1201, the memory 1202, and the communication section 1203 are connected by a bus 1204.
In a specific implementation process, the at least one processor 1201 executes the computer-executable instructions stored in the memory 1202, so that the at least one processor 1201 executes the video data storage method using the monitoring device as an execution subject.
For a specific implementation process of the processor 1201, reference may be made to the above method embodiments, which have similar implementation principles and technical effects, and details are not described herein again.
In the embodiment shown in fig. 12, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
Fig. 13 is a schematic hardware structure diagram of a server according to another embodiment of the present invention. As shown in fig. 13, the server 130 provided in the present embodiment includes: at least one processor 1301 and memory 1302. The server 130 also includes a communication component 1303. The processor 1301, the memory 1302, and the communication unit 1303 are connected by a bus 1304.
In a specific implementation process, the at least one processor 1301 executes the computer-executable instructions stored in the memory 1302, so that the at least one processor 1301 executes the video data storage method with the server as an execution subject as described above.
For a specific implementation process of the processor 1301, reference may be made to the above method embodiments, which have similar implementation principles and technical effects, and details are not described herein again.
In the embodiment shown in fig. 13, it should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise high speed RAM memory, and may also include non-volatile storage NVM, such as at least one disk memory.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The application also provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the video data storage method taking the monitoring device as an execution main body is realized.
The computer-readable storage medium may be any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. A readable storage medium may be any available medium that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
The application also provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when a processor executes the computer-executable instructions, the video data storage method taking the server as an execution subject is realized.
The computer-readable storage medium may be implemented by any type of volatile or non-volatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk. Readable storage media can be any available media that can be accessed by a general purpose or special purpose computer.
An exemplary readable storage medium is coupled to the processor such the processor can read information from, and write information to, the readable storage medium. Of course, the readable storage medium may also be an integral part of the processor. The processor and the readable storage medium may reside in an Application Specific Integrated Circuits (ASIC). Of course, the processor and the readable storage medium may also reside as discrete components in the apparatus.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the spirit of the corresponding technical solutions of the embodiments of the present invention.

Claims (16)

1. A video data storage method applied to a monitoring device, the method comprising:
monitoring whether the video recorder is abnormal or not;
when the video recorder is monitored to be abnormal, a first instruction is sent to a server, wherein the first instruction is used for instructing the server to acquire and store video data acquired by a camera from the camera;
and when the video recorder is monitored to be recovered to be normal, sending a second instruction to the server, wherein the second instruction is used for instructing the server to acquire and store the video data acquired by the camera from the video recorder.
2. The method of claim 1, wherein the first instruction comprises a network address of the camera;
before sending the first instruction to the server, the method further includes:
and receiving the network address of the camera sent by the terminal equipment, the video recorder or the camera.
3. The method of claim 1, further comprising:
and sending a third instruction to the server, wherein the third instruction is used for instructing the server to send the video data corresponding to a first time period to the video recorder, and the first time period is a time period from the time when the video recorder is abnormal to the time when the video recorder recovers to be normal.
4. The method according to any one of claims 1 to 3, further comprising:
and sending a fourth instruction to the server, wherein the fourth instruction is used for instructing the server to acquire and store video data corresponding to a second time period from the camera, and the second time period is a time period from the moment when the video recorder is abnormal to the starting moment when the server acquires the video data from the camera.
5. A video data storage method applied to a server, the method comprising:
receiving a first instruction sent by monitoring equipment, wherein the first instruction is sent when the monitoring equipment monitors that a video recorder is abnormal;
responding to the first instruction, acquiring and storing video data collected by a camera from the camera;
receiving a second instruction sent by the monitoring equipment, wherein the second instruction is sent by the monitoring equipment when the monitoring equipment monitors that the video recorder recovers to normal;
and responding to the second instruction, acquiring and storing the video data collected by the camera from the video recorder.
6. The method of claim 5, wherein acquiring and storing video data captured by the camera from the camera comprises:
and acquiring and storing the video data acquired by the camera from the camera according to the network address of the camera, wherein the network address of the camera is contained in the first instruction, or the network address of the camera is pre-configured in the server.
7. The method of claim 5, further comprising:
receiving a third instruction sent by the monitoring equipment;
sending video data corresponding to a first time period to the video recorder, wherein the first time period is a time period from the moment when the video recorder is abnormal to the moment when the video recorder recovers to be normal.
8. The method according to any one of claims 5 to 7, further comprising:
receiving a fourth instruction sent by the monitoring equipment;
and acquiring and storing video data corresponding to a second time period from the camera, wherein the second time period is a time period from the moment when the video recorder is abnormal to the starting moment when the server acquires the video data from the camera.
9. A video data storage apparatus for use in a monitoring device, the apparatus comprising:
the monitoring module is used for monitoring whether the video recorder is abnormal or not;
the video recorder comprises a first sending module, a second sending module and a processing module, wherein the first sending module is used for sending a first instruction to a server when monitoring that the video recorder is abnormal, and the first instruction is used for indicating the server to acquire and store video data acquired by a camera from the camera;
the first sending module is further configured to:
and when the video recorder is monitored to be recovered to be normal, sending a second instruction to the server, wherein the second instruction is used for instructing the server to acquire and store the video data acquired by the camera from the video recorder.
10. A video data storage apparatus, applied to a server, the apparatus comprising:
the monitoring device comprises a receiving module, a judging module and a judging module, wherein the receiving module is used for receiving a first instruction sent by the monitoring device, and the first instruction is sent by the monitoring device when the monitoring device monitors that the video recorder is abnormal;
the acquisition module is used for responding to the first instruction, acquiring the video data acquired by the camera from the camera and storing the video data;
the receiving module is further configured to:
receiving a second instruction sent by the monitoring equipment, wherein the second instruction is sent by the monitoring equipment when the monitoring equipment monitors that the video recorder recovers to normal;
the acquisition module is further configured to respond to the second instruction, acquire and store video data acquired by the camera from the video recorder.
11. A video data storage system, comprising: monitoring equipment, video recorders, cameras, servers;
the monitoring equipment is used for monitoring whether the video recorder is abnormal or not;
the monitoring equipment is used for sending a first instruction to the server when monitoring that the video recorder is abnormal;
the server is used for receiving the first instruction, acquiring video data acquired by the camera from the camera and storing the video data;
the monitoring equipment is further used for sending a second instruction to the server when the video recorder is monitored to be recovered to normal;
and the server is also used for receiving the second instruction, acquiring the video data acquired by the camera from the video recorder and storing the video data.
12. The system of claim 11, wherein the first instruction comprises a network address of the camera;
the monitoring equipment is further used for receiving the network address of the camera sent by the terminal equipment, the video recorder or the camera before sending the first instruction to the server;
the server is specifically configured to acquire and store video data acquired by the camera from the camera according to the network address of the camera.
13. The system of claim 11, wherein the monitoring device is further configured to send a third instruction to the server;
the server is further configured to receive the third instruction, and send video data corresponding to a first time period to the video recorder, where the first time period is a time period from a time when the video recorder is abnormal to a time when the video recorder recovers to be normal;
the video recorder is further used for storing the video data corresponding to the first time period.
14. The system according to any one of claims 11 to 13, wherein the monitoring device is further configured to send a fourth instruction to the server;
the server is further configured to receive the fourth instruction, acquire and store video data corresponding to a second time period from the camera, where the second time period is a time period from a time when the video recorder is abnormal to a start time when the server acquires the video data from the camera.
15. A monitoring device, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the video data storage method of any of claims 1-4.
16. A server, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the computer-executable instructions stored by the memory causes the at least one processor to perform the video data storage method of any of claims 5-8.
CN202010067807.2A 2020-01-20 2020-01-20 Video data storage method, device, equipment and storage medium Active CN111432151B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010067807.2A CN111432151B (en) 2020-01-20 2020-01-20 Video data storage method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010067807.2A CN111432151B (en) 2020-01-20 2020-01-20 Video data storage method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111432151A CN111432151A (en) 2020-07-17
CN111432151B true CN111432151B (en) 2022-08-23

Family

ID=71547607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010067807.2A Active CN111432151B (en) 2020-01-20 2020-01-20 Video data storage method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111432151B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114245052B (en) * 2021-12-28 2024-04-16 浙江大华技术股份有限公司 Video data storage method and device, storage medium and electronic device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007174273A (en) * 2005-12-22 2007-07-05 Victor Co Of Japan Ltd Monitoring system
CN202309750U (en) * 2011-06-21 2012-07-04 广州长视电子有限公司 Distributed multi-routing self-healing network camera system
JP2013251588A (en) * 2012-05-30 2013-12-12 Mitsubishi Electric Corp Network camera system
KR101454014B1 (en) * 2014-04-03 2014-10-30 서순이 Real time system and method for monitoring error of network camera and network video recorder
CN104539902A (en) * 2014-12-29 2015-04-22 浙江宇视科技有限公司 IPC remote access method and system
CN104918018A (en) * 2015-06-12 2015-09-16 广州朗华汽车电子科技有限公司 Video monitoring system for internet of things
CN105430327A (en) * 2015-11-05 2016-03-23 成都基业长青科技有限责任公司 NVR cluster backup method and device
CN105847723A (en) * 2016-04-11 2016-08-10 深圳英飞拓科技股份有限公司 Video information backup method and apparatus
CN106341637A (en) * 2016-09-13 2017-01-18 成都慧农信息技术有限公司 On-line monitoring uploading video tape recorder based on power supply state and network state
CN108765950A (en) * 2018-06-07 2018-11-06 武汉鑫科信科技有限公司 A kind of open air traffic real-time high-definition video monitoring evidence-obtaining system
CN110430480A (en) * 2019-08-09 2019-11-08 深圳市迈岭信息技术有限公司 A kind of system and method that Streaming Media cloud storage is synchronous

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007174273A (en) * 2005-12-22 2007-07-05 Victor Co Of Japan Ltd Monitoring system
CN202309750U (en) * 2011-06-21 2012-07-04 广州长视电子有限公司 Distributed multi-routing self-healing network camera system
JP2013251588A (en) * 2012-05-30 2013-12-12 Mitsubishi Electric Corp Network camera system
KR101454014B1 (en) * 2014-04-03 2014-10-30 서순이 Real time system and method for monitoring error of network camera and network video recorder
CN104539902A (en) * 2014-12-29 2015-04-22 浙江宇视科技有限公司 IPC remote access method and system
CN104918018A (en) * 2015-06-12 2015-09-16 广州朗华汽车电子科技有限公司 Video monitoring system for internet of things
CN105430327A (en) * 2015-11-05 2016-03-23 成都基业长青科技有限责任公司 NVR cluster backup method and device
CN105847723A (en) * 2016-04-11 2016-08-10 深圳英飞拓科技股份有限公司 Video information backup method and apparatus
CN106341637A (en) * 2016-09-13 2017-01-18 成都慧农信息技术有限公司 On-line monitoring uploading video tape recorder based on power supply state and network state
CN108765950A (en) * 2018-06-07 2018-11-06 武汉鑫科信科技有限公司 A kind of open air traffic real-time high-definition video monitoring evidence-obtaining system
CN110430480A (en) * 2019-08-09 2019-11-08 深圳市迈岭信息技术有限公司 A kind of system and method that Streaming Media cloud storage is synchronous

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
IP监控存储设备市场的发展现状与特点;张庆华;《中国铁路》;20131130;全文 *

Also Published As

Publication number Publication date
CN111432151A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
CN108337333B (en) IP address management method, management device, network video recorder and storage medium
CN110620889B (en) Video monitoring system, network hard disk video recorder and data transmission method
US11659140B2 (en) Parity-based redundant video storage among networked video cameras
CN112579356B (en) Fault processing method and server
CN111432151B (en) Video data storage method, device, equipment and storage medium
CN111198889B (en) Data complement method and device
CN111031341A (en) Heartbeat-based dual-computer hot standby method
JP2013251588A (en) Network camera system
CN109982065B (en) Method, device and storage medium for equipment fault recovery in video monitoring network
CN110933363A (en) Video recording method, system and equipment for server fault
CN104427223A (en) Monitoring camera device and monitoring camera system
CN114257828A (en) Live broadcast audit content processing method and system
US11930292B2 (en) Device state monitoring method and apparatus
US10721135B1 (en) Edge computing system for monitoring and maintaining data center operations
US11223515B2 (en) Cluster system, cluster system control method, server device, control method, and non-transitory computer-readable medium storing program
CN107819591B (en) Data synchronization method, device, system and network equipment
KR102065092B1 (en) System for restoration of image data and method thereof
US11741804B1 (en) Redundant video storage among networked video cameras
CN111104233A (en) Data acquisition method and device, computer equipment and computer readable storage medium
KR101672970B1 (en) Video surveillance system having function of reliability
CN110661599A (en) HA implementation method, device and storage medium between main node and standby node
CN115333994A (en) Method and device for realizing VPN route rapid convergence and electronic equipment
CN109426589B (en) File repair method and device
CN111162967A (en) Offline court-opening processing method, device, terminal, server and storage medium
CN114245052B (en) Video data storage method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant