WO2013185434A1 - High-reliability, extensible video storage and search method and system thereof - Google Patents

High-reliability, extensible video storage and search method and system thereof Download PDF

Info

Publication number
WO2013185434A1
WO2013185434A1 PCT/CN2012/084783 CN2012084783W WO2013185434A1 WO 2013185434 A1 WO2013185434 A1 WO 2013185434A1 CN 2012084783 W CN2012084783 W CN 2012084783W WO 2013185434 A1 WO2013185434 A1 WO 2013185434A1
Authority
WO
WIPO (PCT)
Prior art keywords
master device
camera
slave device
master
working
Prior art date
Application number
PCT/CN2012/084783
Other languages
French (fr)
Chinese (zh)
Inventor
蒋华清
孙承华
Original Assignee
杭州海康威视数字技术股份有限公司
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 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Publication of WO2013185434A1 publication Critical patent/WO2013185434A1/en

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/02Editing, e.g. varying the order of information signals recorded on, or reproduced from, record carriers
    • G11B27/031Electronic editing of digitised analogue information signals, e.g. audio or video signals
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/19Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier
    • G11B27/28Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording
    • G11B27/32Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording on separate auxiliary tracks of the same or an auxiliary record carrier
    • G11B27/322Indexing; Addressing; Timing or synchronising; Measuring tape travel by using information detectable on the record carrier by using information signals recorded by the same method as the main recording on separate auxiliary tracks of the same or an auxiliary record carrier used signal is digitally coded

Definitions

  • the present invention relates to the field of video surveillance, and in particular to an audio and video recording storage retrieval technology.
  • NVR Network Video Recorder
  • PC-NVR Traditional independent network video recorder
  • front-end devices such as network cameras, network video servers, etc.
  • embedded NVRs are generally 16, 32, 64
  • Even the high-configuration PC-NVR has a maximum of 128 and 256 channels.
  • the inventors of the present invention have found that the disadvantages of the conventional NVR device are as follows:
  • the independent NVR device needs to increase the recording time only through the external near-line storage device (eSATA) or network device (such as network access server (Network Access) Server, referred to as "NAS”), IPSan, etc.).
  • eSATA external near-line storage device
  • NAS Network Access Server
  • IPSan Internet Protocol Security
  • the management complexity and stability of the external storage device will affect the stability of the NVR itself.
  • the present invention provides a highly reliable and scalable digital video and audio storage retrieval system, which can effectively solve the problems encountered in the use of the above conventional NVR.
  • the object of the present invention is to provide a highly reliable and scalable video storage and retrieval method and system thereof, improve system reliability, facilitate data request of a client, avoid the problem of information islands in the prior art, reduce management complexity, and realize Expansion from each device node.
  • an embodiment of the present invention discloses a highly reliable and scalable video storage method based on a hardware system composed of at least two interconnected master devices, at least one slave device, and at least one camera, wherein the master The device is provided with an indexable database composed of mapping tables between the devices in the system and recorded data collected by the camera.
  • One master device is a working master device interconnected with at least one slave device and at least one camera network, and other master devices To hot standby the primary device, the method includes the following steps:
  • the working master device queries the slave device corresponding to the camera in its own mapping table
  • the working master device triggers the camera recording, and triggers the corresponding slave device to store the recorded data
  • the work master and the hot standby master synchronize their respective databases.
  • Embodiments of the present invention also disclose a highly reliable and scalable video retrieval method based on a hardware system composed of at least two interconnected master devices, at least one slave device, and at least one camera, wherein the master device is provided with the An indexable database composed of mapping tables between devices in the system and recorded data collected by the camera.
  • One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices. The method includes the following steps:
  • the working master device indexes the slave device where the recording data requested by the client is located in the database
  • the slave device that triggers the recording data to forward the recording data to the client.
  • Embodiments of the present invention also disclose a highly reliable and expandable video storage system based on a hardware system composed of at least two interconnected master devices, at least one slave device, and at least one camera, wherein the master device is provided with the An indexable database composed of mapping tables between devices in the system and recorded data collected by the camera.
  • One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices.
  • the storage system includes the following modules:
  • the query module is configured to query the slave device corresponding to the camera in the mapping table of the working master device itself;
  • a triggering module configured to trigger a camera recording in the working main device, and trigger a corresponding slave device to store the recorded data
  • a synchronous update module configured to synchronously update respective databases in the working master device and the hot standby master device in the working master device;
  • the storage module is configured to store the recorded data collected by the camera from the device.
  • Embodiments of the present invention also disclose a highly reliable and scalable video retrieval system based on a hardware system composed of at least two interconnected master devices, at least one slave device, and at least one camera, wherein the master device is provided with the An indexable database composed of mapping tables between devices in the system and recorded data collected by the camera.
  • One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices.
  • the retrieval system includes the following modules:
  • An index query module configured to index, in a database of the working master device, a slave device where the video data requested by the client is located;
  • the forwarding triggering module is configured to forward the recording data to the client at the slave device where the working master triggers the recording data.
  • the master device uses the device mapping table and the recording database to uniformly manage the slave devices to facilitate the data service request of the client, which can avoid the prior art.
  • the problem of information silos, as well as the reduction of management complexity, can be achieved from the expansion of each device node based on the remaining logical structure of the system.
  • the master device can manage the slave devices in a unified manner, so that the client can access the video data on the slave device at any time, which can avoid the information island in the prior art.
  • the problem, as well as the reduction of management complexity, while on the basis of the system's logical structure remains unchanged, can be expanded from each device node.
  • the working master detects whether the slave device has periodic heartbeat information, determines whether the slave device generates a fault or goes offline, and re-assigns the idle slave device to the camera when determining that the slave device is faulty or goes offline. Eliminate the failure of the slave node and ensure that the system continues to operate, thereby further improving system reliability.
  • the backup data of the existing slave device is backed up by the idle slave device, thereby realizing the system redundancy function of the video data, thereby further improving the reliability of the system and the safety integrity of the recorded data.
  • the system is further expanded by the new access slave device.
  • the heartbeat detection module in the working main device detects whether the slave device has periodic heartbeat information, determines whether the slave device generates a fault or goes offline, and re-assigns the camera when determining that the slave device is faulty or goes offline.
  • the idle slave device eliminates the failure of the slave node and ensures that the system continues to operate, thereby further improving system reliability.
  • the backup data of the existing slave device is backed up by the idle slave device, thereby realizing the redundancy of the video data, thereby further improving the reliability of the system and the safety integrity of the recorded data.
  • FIG. 1 is a schematic flow chart of a highly reliable and scalable video storage method according to a first embodiment of the present invention
  • FIG. 2 is a schematic diagram of a hardware system mechanism in a first embodiment of the present invention
  • FIG. 3 is a schematic diagram of a hardware system mechanism in a second embodiment of the present invention.
  • FIG. 4 is a schematic flow chart of a highly reliable and expandable video storage method in a second embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a hardware system mechanism in a second embodiment of the present invention.
  • FIG. 6 is a schematic flow chart of a highly reliable and expandable video storage method in a second embodiment of the present invention.
  • FIG. 7 is a schematic flow chart of a highly reliable and scalable video retrieval method in a third embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a highly reliable and expandable video storage system according to a fourth embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a highly reliable and easily expandable video retrieval system in a sixth embodiment of the present invention.
  • the first embodiment of the present invention relates to a highly reliable and scalable video storage method.
  • FIG. 1 is a schematic flow chart of the high reliability and easy expansion of the video storage method.
  • the highly reliable and scalable video storage method is based on a hardware system consisting of at least two interconnected master devices, at least one slave device and at least one camera, wherein the master device is provided with a mapping table between the devices in the system and An indexable database composed of video data collected by the camera.
  • One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices.
  • the highly reliable and expandable video storage method includes the following steps:
  • step 101 the working master device queries the slave device corresponding to the camera in its own mapping table.
  • the working master device triggers the camera recording, and triggers the corresponding slave device to store the recorded data.
  • step 103 the working master device and the hot standby master device simultaneously update their respective databases.
  • the master device uses the device mapping table and the recording database to uniformly manage the slave devices to facilitate the data service request of the client, which can avoid the prior art.
  • the problem of information silos, as well as the reduction of management complexity, can be achieved from the expansion of each device node based on the remaining logical structure of the system.
  • the camera referred to in the present invention may be a network camera, a virtual camera or the like.
  • the recorded data referred to in the present invention includes, but is not limited to, digital audio and video data and the like.
  • the master device is a network video recorder, which is a device that receives digital video streams transmitted by devices such as network cameras and digital video servers through a network, and stores, forwards, and manages them.
  • the slave device is also a network video recorder, which is mainly responsible for the storage and forwarding of video and audio recording data.
  • the camera is a network camera, a new generation of cameras produced by the combination of traditional camera technology and network technology.
  • a digital hard disk recorder having a function of long-term recording, recording, remote monitoring, and control of images/speech can be replaced with a video camera.
  • the network is the Internet, but not limited to the Internet. It can also be other types of networks such as the Internet, local area networks, metropolitan area networks, and wide area networks.
  • only one working master device manages each slave device in a unified manner.
  • the other devices inside the device can be externally shielded.
  • the working master device can occupy only one network domain name or network address, which is as simple as using one device. The complexity of management.
  • the working main device has the following functions: camera access management function, client data service request processing function, pan/tilt control function, linkage control function, client configuration operation function and slave device management function.
  • the working main device realizes the camera access management function and can be divided into two modes: passive access management mode and active access management mode.
  • passive access management mode the working device first initiates a registration request to the working master, and then the working master processes the registration request, and assigns the slave 1 to the camera 1, and then The device 1 actively acquires video data or audio and video code stream data from the camera 1.
  • active access management mode the user first inputs the parameter information of the camera 1 to be accessed in the working main device, including the IP address, recording time or number of days, code rate parameters, etc., and then the working master device inputs these parameters.
  • the parameter information is self-configured, and the slave device 1 is assigned to the camera 1, and then the slave device 1 actively acquires video data or audio and video code stream data from the camera 1.
  • the working master device can select a policy for allocating the slave device according to the efficient usage rate of the slave device in the entire system, where the allocation policy is based on, but not limited to, slave device network capability load balancing, input/output bandwidth load balancing, storage space utilization, and the like.
  • the ultimate goal of selecting different allocation strategies is to improve the efficiency of slave devices in the entire system.
  • the camera actively registers or passively configures the access system, and the working master device takes over the management of the camera and updates the device mapping accordingly. Table information.
  • the working master allocates the recording data storage data from the device to the camera, write or update the connection relationship between the camera and the slave device in the device mapping table or the mapping table, and at the same time, index information of the recording data stored in the device or The summary information is reported to the working master device to update the database or the recording database of the working master device.
  • the index information or summary information of the recording data includes the camera recording start time, the recording end time, and the like.
  • the working master implements the slave management function by detecting the periodic heartbeat information of the slave device.
  • the slave device has the following functions: an audio and video recording data storage function and an audio and video recording data forwarding function.
  • the slave device 1 when the recording condition is satisfied, the slave device 1 records the video and audio data of the camera 1 to the storage medium on the slave device 1 to store the backup. At the same time, the recording information is sent from the device 1 to the working main device to update the recording database of the working main device itself to ensure that the recording data can be searched by the client. When the client needs the recorded data, the slave device 1 forwards the recorded data of the backup backup to the client.
  • the second embodiment of the present invention relates to a highly reliable and expandable video storage method.
  • 3 is a schematic diagram of a hardware system mechanism of the present invention
  • FIG. 4 is a schematic flowchart of the high reliability and easy expansion of the video storage method.
  • the second embodiment is improved on the basis of the first embodiment.
  • the main improvement is that the working master detects whether the slave device has periodic heartbeat information, determines whether the slave device generates a fault or goes offline, and determines the slave.
  • the camera is re-assigned to the slave device to eliminate the failure of the slave node and ensure that the system continues to operate, thereby further improving system reliability.
  • the backup data of the existing slave device is backed up by the idle slave device, thereby realizing the redundancy of the video data, thereby further improving the reliability of the system and the safety integrity of the recorded data.
  • the system is further expanded by the new access slave device. Specifically:
  • the working master device detects whether the corresponding slave device has periodic heartbeat information.
  • the working master device If the working master device detects that the corresponding slave device does not have periodic heartbeat information, the working master device uses the idle slave device as the slave device corresponding to the camera, and updates the mapping table with the hot standby master device.
  • the idle slave device is the accessed system and the slave device that is associated with the camera is not allocated in the device mapping table.
  • the working master device after the step 101 of querying the slave device corresponding to the camera in the mapping table of the working device, the working master device further detects the periodic heartbeat of the slave device by detecting the slave device.
  • step 401 the working master detects whether the corresponding slave device has periodic heartbeat information.
  • the working master device If the working master device detects that the corresponding slave device has periodic heartbeat information, it proceeds to step 102 of triggering camera recording by the working master device. Otherwise, proceed to step 402.
  • step 402 if the working master detects that the corresponding slave device does not have periodic heartbeat information, the working master device uses the idle slave device as the slave device corresponding to the camera.
  • step 403 the working master device and the hot standby master device synchronously update the respective mapping tables, and then enter the step 102 of the working master device triggering the camera recording.
  • the working master device associates an idle slave device with the corresponding slave device, stores the recorded data forwarded by the corresponding slave device, and updates the respective mapping table in synchronization with the hot standby master device.
  • the idle slave device After the idle slave device stores the recorded data forwarded by the corresponding slave device, the working master device and the hot standby master device synchronously update the respective databases.
  • the camera 1 is allocated on the slave device 1, and the slave device 1 has a faulty offline or a heartbeat stop, and the work master device will reallocate the slave device 2 to the camera 1 according to the entire system condition, and The system will log a failure from device 1 and notify the administrator.
  • the system can set the redundancy function for the camera channel.
  • the working master device performs the slave device assignment for the camera 1 twice, the slave device 1 takes the stream recording from the camera 1, and the slave device 2 takes the video from the slave device 1.
  • the system When the slave device 1 fails, the system will again redundantly have data from the slave device 2, and finally recover to the same camera 1 channel video data on the different slave devices in the entire system.
  • the system automatically recovers the space occupied by the duplicate data.
  • the video and audio recording data stored in the slave device 1 passes the checksum to ensure the correctness of the data. If the data is incomplete, the redundant data recorded from the device 2 can be read to ensure the correctness of the data.
  • the working master device uses the newly accessed slave device as an idle slave device.
  • the method for implementing system expansion includes the steps of increasing the number of camera channel accesses, as follows:
  • step 601 the slave device is added to the hardware system.
  • the added slave device requests the join from the working master device.
  • step 603 the working master updates the slave list to update the device mapping table.
  • step 604 the newly added camera registers with the working master device.
  • the method for implementing system expansion further includes the following: if the number of channels of the camera is unchanged, the recording time is required to be increased, that is, the working master can allocate space to the same camera on multiple slave devices. Channel to increase the recording time of the channel.
  • a third embodiment of the present invention relates to a highly reliable and scalable video retrieval method.
  • FIG. 7 is a schematic flow chart of the highly reliable and scalable video retrieval method.
  • the highly reliable and scalable video retrieval method is based on a hardware system consisting of at least two interconnected master devices, at least one slave device and at least one camera, wherein the master device is provided with a mapping table between the devices in the system and An indexable database composed of video data collected by the camera.
  • One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices.
  • the highly reliable and scalable video retrieval method includes the following steps:
  • step 701 the working master device indexes in the database the slave device where the recording data requested by the client is located.
  • the working master triggers the slave device where the recorded data is located to forward the recorded data to the client.
  • the master device can manage the slave devices in a unified manner, so that the client can access the video data on the slave device at any time, which can avoid the information island in the prior art.
  • the problem, as well as the reduction of management complexity, while on the basis of the system's logical structure remains unchanged, can be expanded from each device node.
  • the working master searches for the slave of the recorded data in the local database according to the video summary information such as the camera keyword or the recording start time, the recording end time, and the like.
  • the client or application client retrieves the computer for recording data in the system for the user.
  • the method embodiments of the present invention can all be implemented in software, hardware, firmware, and the like. Regardless of whether the invention is implemented in software, hardware, or firmware, the instruction code can be stored in any type of computer-accessible memory (eg, permanent or modifiable, volatile or non-volatile, solid state Or non-solid, fixed or replaceable media, etc.).
  • the instruction code can be stored in any type of computer-accessible memory (eg, permanent or modifiable, volatile or non-volatile, solid state Or non-solid, fixed or replaceable media, etc.).
  • the memory can be, for example, a programmable array logic (Programmable) Array Logic ("PAL” for short), Random Access Memory (“RAM”) Programmable Read Only Memory (“PROM”), read-only memory (Read-Only) Memory, referred to as "ROM”), electrically erasable programmable read-only memory (Electrically Erasable Programmable) ROM, referred to as "EEPROM”), magnetic disk, optical disk, Digital Versatile Disc (“DVD”) and so on.
  • PAL programmable array logic
  • RAM Random Access Memory
  • PROM Programmable Read Only Memory
  • ROM Read-Only Memory
  • EEPROM electrically erasable programmable read-only memory
  • magnetic disk magnetic disk
  • optical disk optical disk
  • DVD Digital Versatile Disc
  • FIG. 8 is a schematic structural diagram of the highly reliable and expandable video storage system.
  • the highly reliable and expandable video storage system is based on a hardware system consisting of at least two interconnected master devices, at least one slave device and at least one camera, wherein the master device is provided with a mapping table between the devices in the system and An indexable database composed of video data collected by the camera.
  • One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices.
  • the highly reliable and expandable video storage system includes the following modules:
  • the query module is configured to query the slave device corresponding to the camera in the mapping table of the working master device.
  • the triggering module is configured to trigger camera recording in the working main device, and trigger the corresponding slave device to store the recorded data.
  • the synchronous update module is configured to synchronously update the respective databases in the working master device and the hot standby master device in the working master device.
  • the storage module is configured to store the recorded data collected by the camera from the device.
  • the master device uses the device mapping table and the recording database to uniformly manage the slave devices to facilitate the data service request of the client, which can avoid the prior art.
  • the problem of information silos, as well as the reduction of management complexity, can be achieved from the expansion of each device node based on the remaining logical structure of the system.
  • the first embodiment is a method embodiment corresponding to the present embodiment, and the present embodiment can be implemented in cooperation with the first embodiment.
  • the related technical details mentioned in the first embodiment are still effective in the present embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the present embodiment can also be applied to the first embodiment.
  • a fifth embodiment of the present invention relates to a highly reliable and expandable video storage system.
  • the fifth embodiment is improved on the basis of the fourth embodiment.
  • the main improvement is that the heartbeat detection module in the working main device detects whether the slave device has periodic heartbeat information, and determines whether the slave device generates a fault or a fault.
  • the line in the case of determining that the slave device is faulty or offline, re-allocating the idle slave device to the camera to eliminate the slave node fault and ensure the system continues to operate, thereby further improving the system reliability.
  • the backup data of the existing slave device is backed up by the idle slave device, thereby realizing the redundancy of the video data, thereby further improving the reliability of the system and the safety integrity of the recorded data.
  • the highly reliable and expandable video storage system also includes the following modules:
  • the heartbeat detection module is configured to detect, in the working master device, whether the corresponding slave device has periodic heartbeat information.
  • the synchronization update module is further configured to: if the heartbeat detection module detects that the corresponding slave device does not have periodic heartbeat information, the idle slave device is used as the slave device corresponding to the camera in the working master device, and the working master device is synchronously updated. And the mapping table in the hot standby master device.
  • the working master device associates an idle slave device with the corresponding slave device, stores the recorded data forwarded by the corresponding slave device, and updates the respective mapping table in synchronization with the hot standby master device.
  • the idle slave device After the idle slave device stores the recorded data forwarded by the corresponding slave device, the working master device and the hot standby master device synchronously update the respective databases.
  • the second embodiment is a method embodiment corresponding to the present embodiment, and the present embodiment can be implemented in cooperation with the second embodiment.
  • the related technical details mentioned in the second embodiment are still effective in the present embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the present embodiment can also be applied to the second embodiment.
  • a sixth embodiment of the present invention relates to a highly reliable and scalable video retrieval system.
  • Fig. 9 is a schematic structural view of the highly reliable and expandable video retrieval system.
  • the highly reliable and scalable video retrieval system is based on a hardware system consisting of at least two interconnected master devices, at least one slave device and at least one camera, wherein the master device is provided with a mapping table between the devices in the system and An indexable database composed of video data collected by the camera.
  • One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices.
  • the highly reliable and scalable video retrieval system includes the following modules:
  • the index query module is configured to index the slave device where the recording data requested by the client is located in the database of the working master device.
  • the forwarding triggering module is configured to forward the recording data to the client at the slave device where the working master triggers the recording data.
  • the master device can manage the slave devices in a unified manner, so that the client can access the video data on the slave device at any time, which can avoid the information island in the prior art.
  • the problem, as well as the reduction of management complexity, while on the basis of the system's logical structure remains unchanged, can be expanded from each device node.
  • the third embodiment is a method embodiment corresponding to the present embodiment, and the present embodiment can be implemented in cooperation with the third embodiment.
  • the related technical details mentioned in the third embodiment are still effective in the present embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the present embodiment can also be applied to the third embodiment.
  • each module mentioned in each device implementation manner of the present invention is a logic module.
  • a logic module may be a physical module, a part of a physical module, or multiple physical entities.
  • the combined implementation of modules, the physical implementation of these logic modules themselves is not the most important, the combination of the functions implemented by these logic modules is the key to solving the technical problems raised by the present invention.
  • the above-mentioned various device embodiments of the present invention do not introduce a module that is not closely related to solving the technical problem proposed by the present invention, which does not indicate that the above device implementation does not have other Module.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Television Signal Processing For Recording (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

The present invention relates to the field of video monitors. Disclosed are a high-reliability, extensible video storage and search method and a system thereof, so as to increase system reliability, avoid information islands, reduce management complexity, and implement capacity extension. In the present invention, Based on a hardware system formed of at least two interconnected master devices, at least one salve device, and at least one camera. The master device provides a mapping table and a database. One master device is a working master device, and the other master device is a hot standby master device. The method comprises the following steps: a working master device finding a salve device corresponding to a camera in a mapping table thereof; the working master device triggering the camera to record a video, and triggering a corresponding salve device to store the video data; and the working master device and a hot standby master device synchronously updating databases thereof.

Description

高可靠易扩展的录像存储、检索方法及其*** Highly reliable and easy to expand video storage, retrieval method and system thereof 技术领域Technical field
本发明涉及视频监控领域,特别涉及一种音视频录像存储检索技术。  The present invention relates to the field of video surveillance, and in particular to an audio and video recording storage retrieval technology.
背景技术Background technique
传统的独立网络视频录像机(Network Video Recorder,简称“NVR”)设备(如嵌入式NVR、PC-NVR等)只能接入固定数量的前端设备(如网络摄像机、网络视频服务器等),嵌入式NVR一般是16、32、64路,即使高配置的PC-NVR最多也就128、256路。本发明的发明人发现,传统NVR设备的缺点如下:Traditional independent network video recorder (Network Video Recorder ("NVR") devices (such as embedded NVR, PC-NVR, etc.) can only access a fixed number of front-end devices (such as network cameras, network video servers, etc.), embedded NVRs are generally 16, 32, 64 Even the high-configuration PC-NVR has a maximum of 128 and 256 channels. The inventors of the present invention have found that the disadvantages of the conventional NVR device are as follows:
1. 信息孤岛、管理复杂,独立的NVR设备都是有接入总路数限制的,如果需要接入超过限制的网络摄像机,则必须再增加NVR设备;最后会存在多***立的NVR,这些NVR彼此独立,形成一个个信息孤岛,不利于用户检索视音频数据;同时提高了整个***管理的复杂度。1. Information islands, complex management, independent NVR devices are limited by the total number of access roads, if you need to access more than the limit of the network camera, you must add NVR equipment; finally there will be multiple independent NVR, these NVR each other Independent, forming an island of information, is not conducive to users to retrieve video and audio data; at the same time, the complexity of the entire system management is improved.
2. 可靠性低,传统NVR与IPC之间使用固定的连接方式,一旦某台NVR发生故障,那么与之绑定的所有IPC将全部失效,客户端或监控中心将无法获取到这些IPC的实时视音频和录像数据;2. Low reliability, the traditional NVR and IPC use a fixed connection method. Once an NVR fails, all IPCs bound to it will be invalid, and the client or monitoring center will not be able to obtain real-time video and audio of these IPCs. And video data;
3. 扩展性差,独立NVR设备如果需要增加录像时间只能通过外挂近线存储设备(eSATA)或者网络设备(如网络接入服务器(Network Access Server,简称“NAS”)、IPSan等)。外挂存储设备的管理复杂度和稳定性都会影响NVR本身的稳定性。3. Poor scalability, if the independent NVR device needs to increase the recording time only through the external near-line storage device (eSATA) or network device (such as network access server (Network Access) Server, referred to as "NAS"), IPSan, etc.). The management complexity and stability of the external storage device will affect the stability of the NVR itself.
针对以上问题,本发明提出了一种高可靠易扩展的数字视音频存储检索***,可以有效解决上述传统NVR在使用过程中遇到的问题。In view of the above problems, the present invention provides a highly reliable and scalable digital video and audio storage retrieval system, which can effectively solve the problems encountered in the use of the above conventional NVR.
技术问题technical problem
本发明的目的在于提供一种高可靠易扩展的录像存储、检索方法及其***,提高***可靠性,便于客户端的数据服务请求,避免现有技术中信息孤岛的问题,减少管理复杂度,实现从各设备节点的扩容。 The object of the present invention is to provide a highly reliable and scalable video storage and retrieval method and system thereof, improve system reliability, facilitate data request of a client, avoid the problem of information islands in the prior art, reduce management complexity, and realize Expansion from each device node.
技术解决方案Technical solution
为解决上述技术问题,本发明的实施方式公开了一种高可靠易扩展的录像存储方法,基于一个由至少两个互联的主设备、至少一个从设备和至少一个摄像机组成的硬件***,其中主设备中设有该***中各设备之间的映射表和经摄像机采集的录像数据组成的可索引的数据库,一个主设备为工作主设备与至少一个从设备和至少一个摄像机网络互联,其他主设备为热备主设备,方法包括以下步骤:To solve the above technical problem, an embodiment of the present invention discloses a highly reliable and scalable video storage method based on a hardware system composed of at least two interconnected master devices, at least one slave device, and at least one camera, wherein the master The device is provided with an indexable database composed of mapping tables between the devices in the system and recorded data collected by the camera. One master device is a working master device interconnected with at least one slave device and at least one camera network, and other master devices To hot standby the primary device, the method includes the following steps:
工作主设备在自身的映射表中查询到摄像机对应的从设备;The working master device queries the slave device corresponding to the camera in its own mapping table;
工作主设备触发摄像机录像,并触发对应的从设备对该录像数据存储;The working master device triggers the camera recording, and triggers the corresponding slave device to store the recorded data;
工作主设备和热备主设备同步更新各自的数据库。The work master and the hot standby master synchronize their respective databases.
本发明的实施方式还公开了一种高可靠易扩展的录像检索方法,基于一个由至少两个互联的主设备、至少一个从设备和至少一个摄像机组成的硬件***,其中主设备中设有该***中各设备之间的映射表和经摄像机采集的录像数据组成的可索引的数据库,一个主设备为工作主设备与至少一个从设备和至少一个摄像机网络互联,其他主设备为热备主设备,方法包括以下步骤:Embodiments of the present invention also disclose a highly reliable and scalable video retrieval method based on a hardware system composed of at least two interconnected master devices, at least one slave device, and at least one camera, wherein the master device is provided with the An indexable database composed of mapping tables between devices in the system and recorded data collected by the camera. One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices. The method includes the following steps:
工作主设备在数据库中索引查询客户端请求的录像数据所在的从设备;The working master device indexes the slave device where the recording data requested by the client is located in the database;
工作主设备触发录像数据所在的从设备转发该录像数据至客户端。The slave device that triggers the recording data to forward the recording data to the client.
本发明的实施方式还公开了一种高可靠易扩展的录像存储***,基于一个由至少两个互联的主设备、至少一个从设备和至少一个摄像机组成的硬件***,其中主设备中设有该***中各设备之间的映射表和经摄像机采集的录像数据组成的可索引的数据库,一个主设备为工作主设备与至少一个从设备和至少一个摄像机网络互联,其他主设备为热备主设备,存储***包括以下模块:Embodiments of the present invention also disclose a highly reliable and expandable video storage system based on a hardware system composed of at least two interconnected master devices, at least one slave device, and at least one camera, wherein the master device is provided with the An indexable database composed of mapping tables between devices in the system and recorded data collected by the camera. One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices. The storage system includes the following modules:
查询模块,用于在工作主设备自身的映射表中查询摄像机对应的从设备;The query module is configured to query the slave device corresponding to the camera in the mapping table of the working master device itself;
触发模块,用于在工作主设备中触发摄像机录像,并触发对应的从设备对该录像数据存储;a triggering module, configured to trigger a camera recording in the working main device, and trigger a corresponding slave device to store the recorded data;
同步更新模块,用于在工作主设备中同步更新工作主设备和热备主设备中各自的数据库;a synchronous update module, configured to synchronously update respective databases in the working master device and the hot standby master device in the working master device;
存储模块,用于在从设备中对摄像机采集的录像数据存储。The storage module is configured to store the recorded data collected by the camera from the device.
本发明的实施方式还公开了一种高可靠易扩展的录像检索***,基于一个由至少两个互联的主设备、至少一个从设备和至少一个摄像机组成的硬件***,其中主设备中设有该***中各设备之间的映射表和经摄像机采集的录像数据组成的可索引的数据库,一个主设备为工作主设备与至少一个从设备和至少一个摄像机网络互联,其他主设备为热备主设备,检索***包括以下模块:Embodiments of the present invention also disclose a highly reliable and scalable video retrieval system based on a hardware system composed of at least two interconnected master devices, at least one slave device, and at least one camera, wherein the master device is provided with the An indexable database composed of mapping tables between devices in the system and recorded data collected by the camera. One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices. The retrieval system includes the following modules:
索引查询模块,用于在工作主设备自身的数据库中索引查询客户端请求的录像数据所在的从设备;An index query module, configured to index, in a database of the working master device, a slave device where the video data requested by the client is located;
转发触发模块,用于在工作主设备触发录像数据所在的从设备转发该录像数据至客户端。The forwarding triggering module is configured to forward the recording data to the client at the slave device where the working master triggers the recording data.
有益效果Beneficial effect
本发明实施方式与现有技术相比,主要区别及其效果在于:Compared with the prior art, the main differences and effects of the embodiments of the present invention are as follows:
在已有工作主设备的情况下增加热备主设备,可以提高***可靠性,由主设备利用设备映射表和录像数据库统一管理各从设备以便于客户端的数据服务请求,可以避免现有技术中信息孤岛的问题,以及减少管理复杂度,同时在***逻辑结构保持不变的基础上,可以实现从各设备节点的扩容。If the hot standby master device is added to the existing working master device, the system reliability can be improved. The master device uses the device mapping table and the recording database to uniformly manage the slave devices to facilitate the data service request of the client, which can avoid the prior art. The problem of information silos, as well as the reduction of management complexity, can be achieved from the expansion of each device node based on the remaining logical structure of the system.
在已有工作主设备的情况下增加热备主设备,可以提高***可靠性,由主设备统一管理各从设备,方便客户端随时访问从设备上的录像数据,可以避免现有技术中信息孤岛的问题,以及减少管理复杂度,同时在***逻辑结构保持不变的基础上,可以实现从各设备节点的扩容。If the hot standby master device is added to the existing working device, the system reliability can be improved. The master device can manage the slave devices in a unified manner, so that the client can access the video data on the slave device at any time, which can avoid the information island in the prior art. The problem, as well as the reduction of management complexity, while on the basis of the system's logical structure remains unchanged, can be expanded from each device node.
进一步地,工作主设备检测从设备是否还有周期性心跳信息,确定该从设备是否产生故障或下线,在确定从设备出现故障或者下线的情况下,重新为摄像机分配空闲从设备,以消除从设备节点故障,保障***继续运行,从而进一步提高了***可靠性。Further, the working master detects whether the slave device has periodic heartbeat information, determines whether the slave device generates a fault or goes offline, and re-assigns the idle slave device to the camera when determining that the slave device is faulty or goes offline. Eliminate the failure of the slave node and ensure that the system continues to operate, thereby further improving system reliability.
进一步地,通过空闲从设备对已有从设备的录像数据备份,从而实现***对录像数据冗余的功能,进一步提高了***的可靠性和录像数据的安全完整性。Further, the backup data of the existing slave device is backed up by the idle slave device, thereby realizing the system redundancy function of the video data, thereby further improving the reliability of the system and the safety integrity of the recorded data.
进一步地,通过新接入从设备进一步实现对***的扩容。Further, the system is further expanded by the new access slave device.
进一步地,工作主设备中的心跳检测模块检测从设备是否还有周期性心跳信息,确定该从设备是否产生故障或下线,在确定从设备出现故障或者下线的情况下,重新为摄像机分配空闲从设备,以消除从设备节点故障,保障***继续运行,从而进一步提高了***可靠性。通过空闲从设备对已有从设备的录像数据备份,从而实现***对录像数据冗余的功能,进一步提高了***的可靠性和录像数据的安全完整性。Further, the heartbeat detection module in the working main device detects whether the slave device has periodic heartbeat information, determines whether the slave device generates a fault or goes offline, and re-assigns the camera when determining that the slave device is faulty or goes offline. The idle slave device eliminates the failure of the slave node and ensures that the system continues to operate, thereby further improving system reliability. The backup data of the existing slave device is backed up by the idle slave device, thereby realizing the redundancy of the video data, thereby further improving the reliability of the system and the safety integrity of the recorded data.
附图说明DRAWINGS
图1是本发明第一实施方式中一种高可靠易扩展的录像存储方法的流程示意图;1 is a schematic flow chart of a highly reliable and scalable video storage method according to a first embodiment of the present invention;
图2是本发明第一实施方式中一种硬件***机构示意图;2 is a schematic diagram of a hardware system mechanism in a first embodiment of the present invention;
图3是本发明第二实施方式中中一种硬件***机构示意图;3 is a schematic diagram of a hardware system mechanism in a second embodiment of the present invention;
图4是本发明第二实施方式中一种高可靠易扩展的录像存储方法的流程示意图;4 is a schematic flow chart of a highly reliable and expandable video storage method in a second embodiment of the present invention;
图5是本发明第二实施方式中中一种硬件***机构示意图;5 is a schematic diagram of a hardware system mechanism in a second embodiment of the present invention;
图6是本发明第二实施方式中一种高可靠易扩展的录像存储方法的流程示意图;6 is a schematic flow chart of a highly reliable and expandable video storage method in a second embodiment of the present invention;
图7是本发明第三实施方式中一种高可靠易扩展的录像检索方法的流程示意图;7 is a schematic flow chart of a highly reliable and scalable video retrieval method in a third embodiment of the present invention;
图8是本发明第四实施方式中一种高可靠易扩展的录像存储***的结构示意图;FIG. 8 is a schematic structural diagram of a highly reliable and expandable video storage system according to a fourth embodiment of the present invention; FIG.
图9是本发明第六实施方式中一种高可靠易扩展的录像检索***的结构示意图。FIG. 9 is a schematic structural diagram of a highly reliable and easily expandable video retrieval system in a sixth embodiment of the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
在以下的叙述中,为了使读者更好地理解本申请而提出了许多技术细节。但是,本领域的普通技术人员可以理解,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请各权利要求所要求保护的技术方案。In the following description, numerous technical details are set forth in order to provide the reader with a better understanding of the present application. However, those skilled in the art can understand that the technical solutions claimed in the claims of the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明的实施方式作进一步地详细描述。The embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
本发明第一实施方式涉及一种高可靠易扩展的录像存储方法。图1是该高可靠易扩展的录像存储方法的流程示意图。该高可靠易扩展的录像存储方法基于一个由至少两个互联的主设备、至少一个从设备和至少一个摄像机组成的硬件***,其中主设备中设有该***中各设备之间的映射表和经摄像机采集的录像数据组成的可索引的数据库,一个主设备为工作主设备与至少一个从设备和至少一个摄像机网络互联,其他主设备为热备主设备。The first embodiment of the present invention relates to a highly reliable and scalable video storage method. FIG. 1 is a schematic flow chart of the high reliability and easy expansion of the video storage method. The highly reliable and scalable video storage method is based on a hardware system consisting of at least two interconnected master devices, at least one slave device and at least one camera, wherein the master device is provided with a mapping table between the devices in the system and An indexable database composed of video data collected by the camera. One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices.
具体地说,如图1所示,该高可靠易扩展的录像存储方法包括以下步骤:Specifically, as shown in FIG. 1, the highly reliable and expandable video storage method includes the following steps:
在步骤101中,工作主设备在自身的映射表中查询到摄像机对应的从设备。In step 101, the working master device queries the slave device corresponding to the camera in its own mapping table.
此后进入步骤102,工作主设备触发摄像机录像,并触发对应的从设备对该录像数据存储。Thereafter, proceeding to step 102, the working master device triggers the camera recording, and triggers the corresponding slave device to store the recorded data.
此后进入步骤103,工作主设备和热备主设备同步更新各自的数据库。Thereafter, proceeding to step 103, the working master device and the hot standby master device simultaneously update their respective databases.
此后结束本流程。This process ends thereafter.
在已有工作主设备的情况下增加热备主设备,可以提高***可靠性,由主设备利用设备映射表和录像数据库统一管理各从设备以便于客户端的数据服务请求,可以避免现有技术中信息孤岛的问题,以及减少管理复杂度,同时在***逻辑结构保持不变的基础上,可以实现从各设备节点的扩容。If the hot standby master device is added to the existing working master device, the system reliability can be improved. The master device uses the device mapping table and the recording database to uniformly manage the slave devices to facilitate the data service request of the client, which can avoid the prior art. The problem of information silos, as well as the reduction of management complexity, can be achieved from the expansion of each device node based on the remaining logical structure of the system.
此外,可以理解,本发明中所指的摄像机,可以为网络摄像机,虚拟摄像机等。In addition, it can be understood that the camera referred to in the present invention may be a network camera, a virtual camera or the like.
本发明中所指的录像数据包括但不限于数字音视频数据等。The recorded data referred to in the present invention includes, but is not limited to, digital audio and video data and the like.
优选地,本发明中,主设备为网络视频录像机,是一种通过网络接收网络摄像机、数字视频服务器等设备传输的数字视频流,并进行存储、转发、管理的设备。从设备也为网络视频录像机,主要负责视音频录像数据的存储转发。摄像机为网络摄像机,由传统摄像机技术与网络技术结合所产生的新一代摄像机。同样地,在本发明中,可以将具有对图像/语音进行长时间录像、录音、远程监视和控制的功能的数字硬盘录像机代替摄像机。网络为互联网,但不仅限于互联网,还可以为因特网,局域网,城域网,广域网等其他类型的网络。Preferably, in the present invention, the master device is a network video recorder, which is a device that receives digital video streams transmitted by devices such as network cameras and digital video servers through a network, and stores, forwards, and manages them. The slave device is also a network video recorder, which is mainly responsible for the storage and forwarding of video and audio recording data. The camera is a network camera, a new generation of cameras produced by the combination of traditional camera technology and network technology. Also, in the present invention, a digital hard disk recorder having a function of long-term recording, recording, remote monitoring, and control of images/speech can be replaced with a video camera. The network is the Internet, but not limited to the Internet. It can also be other types of networks such as the Internet, local area networks, metropolitan area networks, and wide area networks.
该***只有一个工作主设备统一管理各从设备,面向用户时对外部屏蔽内部其他设备,可以仅通过工作主设备占用一个网络域名或者网络地址,如同使用一台设备一样简单地实现,这样降低了管理的复杂度。In this system, only one working master device manages each slave device in a unified manner. When the user is facing the user, the other devices inside the device can be externally shielded. The working master device can occupy only one network domain name or network address, which is as simple as using one device. The complexity of management.
准备至少两个主设备,一个主设备用于工作,一个主设备用于热备,这样可以确保不会因为主设备单点故障导致整个***瘫痪。日常工作中时刻保持所有设备上的数据库与映射表一致,当工作主设备发生故障后,热备主设备无缝接管整个***,以保证整个***的安全性和可靠性。Prepare at least two master devices, one master device for work and one master device for hot standby, which ensures that the entire system is not paralyzed due to a single point of failure of the master device. Keep the database on all devices consistent with the mapping table in daily work. When the working main device fails, the hot standby main device seamlessly takes over the entire system to ensure the security and reliability of the entire system.
即使没有热备主设备而只有一台工作主设备,如果工作主设备发生故障,本***只要工作主设备故障处理完毕后重新上线,从设备会主动上报录像数据情况和摄像机接入情况,重建主设备录像数据库或数据库和设备映射表或映射表。Even if there is no hot standby master device and there is only one working master device, if the working master device fails, the system will re-apply the video data and camera access status as soon as the working master device fails to go online. Device recording database or database and device mapping table or mapping table.
工作主设备具有以下功能:摄像机接入管理功能,客户端数据服务请求处理功能,云台控制功能,联动控制功能,客户端配置操作功能和从设备管理功能等。The working main device has the following functions: camera access management function, client data service request processing function, pan/tilt control function, linkage control function, client configuration operation function and slave device management function.
工作主设备实现摄像机接入管理功能可分为被动接入管理模式和主动接入管理模式两种模式。例如,如图2所示,工作主设备在被动接入管理模式中,首先摄像机1向工作主设备发起注册请求,然后工作主设备处理该注册请求,并为摄像机1分配从设备1,之后从设备1主动向摄像机1获取录像数据或者音视频码流数据。工作主设备在主动接入管理模式中,首先用户在工作主设备中输入需要接入的摄像机1参数信息,包括IP地址、录像时间或者天数、码率参数等,然后工作主设备对这些输入的参数信息自行配置,并为摄像机1分配从设备1,之后从设备1主动向摄像机1获取录像数据或者音视频码流数据。The working main device realizes the camera access management function and can be divided into two modes: passive access management mode and active access management mode. For example, as shown in FIG. 2, in the passive access management mode, the working device first initiates a registration request to the working master, and then the working master processes the registration request, and assigns the slave 1 to the camera 1, and then The device 1 actively acquires video data or audio and video code stream data from the camera 1. In the active access management mode, the user first inputs the parameter information of the camera 1 to be accessed in the working main device, including the IP address, recording time or number of days, code rate parameters, etc., and then the working master device inputs these parameters. The parameter information is self-configured, and the slave device 1 is assigned to the camera 1, and then the slave device 1 actively acquires video data or audio and video code stream data from the camera 1.
工作主设备可以根据整个***中从设备的高效使用率,来选择分配从设备的策略,其中该分配策略基于但不限于从设备网络能力负载均衡、输入/输出带宽负载均衡、存储空间利用率等,总之,选取不同的分配策略的最终目标都是提高整个***中从设备的使用效率。The working master device can select a policy for allocating the slave device according to the efficient usage rate of the slave device in the entire system, where the allocation policy is based on, but not limited to, slave device network capability load balancing, input/output bandwidth load balancing, storage space utilization, and the like. In short, the ultimate goal of selecting different allocation strategies is to improve the efficiency of slave devices in the entire system.
无论是在工作主设备的被动接入管理模式还是在主动接入管理模式中,摄像机主动注册或者被动参数配置接入***,工作主设备将担负起该摄像机的管理工作,并据此更新设备映射表信息。Whether in the passive access management mode of the working master device or in the active access management mode, the camera actively registers or passively configures the access system, and the working master device takes over the management of the camera and updates the device mapping accordingly. Table information.
工作主设备为摄像机分配从设备进行录像数据存储时,将该摄像机与从设备之间的连接关系写入或更新设备映射表或映射表中,同时将从设备中存储的录像数据的索引信息或摘要信息上报工作主设备以更新工作主设备自身的数据库或录像数据库,其中,录像数据的索引信息或摘要信息包括摄像机录像起始时间,录像结束时间等等。When the working master allocates the recording data storage data from the device to the camera, write or update the connection relationship between the camera and the slave device in the device mapping table or the mapping table, and at the same time, index information of the recording data stored in the device or The summary information is reported to the working master device to update the database or the recording database of the working master device. The index information or summary information of the recording data includes the camera recording start time, the recording end time, and the like.
同样,如图2 所示,工作主设备通过检测从设备周期性心跳信息以实现从设备管理功能。Similarly, as shown in FIG. 2, the working master implements the slave management function by detecting the periodic heartbeat information of the slave device.
本发明中,从设备具有以下功能:音视频录像数据存储功能和音视频录像数据转发功能等。In the present invention, the slave device has the following functions: an audio and video recording data storage function and an audio and video recording data forwarding function.
亦如图2所示,当录像条件满足时,从设备1将摄像机1视音频数据记录到从设备1上的存储介质上存储备份。同时,从设备1向工作主设备发送录像信息,以更新工作主设备本身的录像数据库,确保客户端可以搜索到该录像数据。当客户端需要该录像数据时,从设备1将存储备份的录像数据转发至客户端。As also shown in FIG. 2, when the recording condition is satisfied, the slave device 1 records the video and audio data of the camera 1 to the storage medium on the slave device 1 to store the backup. At the same time, the recording information is sent from the device 1 to the working main device to update the recording database of the working main device itself to ensure that the recording data can be searched by the client. When the client needs the recorded data, the slave device 1 forwards the recorded data of the backup backup to the client.
本发明第二实施方式涉及一种高可靠易扩展的录像存储方法。图3是本发明的一种硬件***机构示意图,图4是该高可靠易扩展的录像存储方法的流程示意图。The second embodiment of the present invention relates to a highly reliable and expandable video storage method. 3 is a schematic diagram of a hardware system mechanism of the present invention, and FIG. 4 is a schematic flowchart of the high reliability and easy expansion of the video storage method.
第二实施方式在第一实施方式的基础上进行了改进,主要改进之处在于:工作主设备检测从设备是否还有周期性心跳信息,确定该从设备是否产生故障或下线,在确定从设备出现故障或者下线的情况下,重新为摄像机分配空闲从设备,以消除从设备节点故障,保障***继续运行,从而进一步提高了***可靠性。通过空闲从设备对已有从设备的录像数据备份,从而实现***对录像数据冗余的功能,进一步提高了***的可靠性和录像数据的安全完整性。通过新接入从设备进一步实现对***的扩容。具体地说:The second embodiment is improved on the basis of the first embodiment. The main improvement is that the working master detects whether the slave device has periodic heartbeat information, determines whether the slave device generates a fault or goes offline, and determines the slave. In the event of a device failure or offline, the camera is re-assigned to the slave device to eliminate the failure of the slave node and ensure that the system continues to operate, thereby further improving system reliability. The backup data of the existing slave device is backed up by the idle slave device, thereby realizing the redundancy of the video data, thereby further improving the reliability of the system and the safety integrity of the recorded data. The system is further expanded by the new access slave device. Specifically:
硬件***中至少存在两个从设备。There are at least two slave devices in the hardware system.
在工作主设备在自身的映射表中查询到摄像机对应的从设备步骤之后,还包括以下步骤:After the working master device queries the slave device corresponding to the camera in its own mapping table, the following steps are also included:
工作主设备检测对应的从设备是否还有周期性心跳信息。The working master device detects whether the corresponding slave device has periodic heartbeat information.
若工作主设备检测到对应的从设备没有周期性心跳信息,则工作主设备将空闲从设备作为摄像机对应的从设备,并与热备主设备同步更新各自的映射表。If the working master device detects that the corresponding slave device does not have periodic heartbeat information, the working master device uses the idle slave device as the slave device corresponding to the camera, and updates the mapping table with the hot standby master device.
此外,可以理解,本发明中,空闲从设备为已接入***且设备映射表中未被分配与摄像机有关联的从设备。In addition, it can be understood that, in the present invention, the idle slave device is the accessed system and the slave device that is associated with the camera is not allocated in the device mapping table.
作为本发明的一个优选实施方式,如图4所示,在上述工作主设备在自身的映射表中查询到摄像机对应的从设备的步骤101之后,还包括工作主设备通过检测从设备周期性心跳信息以实现从设备管理功能的步骤:As a preferred embodiment of the present invention, as shown in FIG. 4, after the step 101 of querying the slave device corresponding to the camera in the mapping table of the working device, the working master device further detects the periodic heartbeat of the slave device by detecting the slave device. Information to implement the steps from the device management function:
在步骤401中,工作主设备检测对应的从设备是否还有周期性心跳信息。In step 401, the working master detects whether the corresponding slave device has periodic heartbeat information.
若工作主设备检测到对应的从设备有周期性心跳信息,则进入上述工作主设备触发摄像机录像的步骤102。否则进入步骤402。If the working master device detects that the corresponding slave device has periodic heartbeat information, it proceeds to step 102 of triggering camera recording by the working master device. Otherwise, proceed to step 402.
在步骤402中,若工作主设备检测到对应的从设备没有周期性心跳信息,则工作主设备将空闲从设备作为摄像机对应的从设备。In step 402, if the working master detects that the corresponding slave device does not have periodic heartbeat information, the working master device uses the idle slave device as the slave device corresponding to the camera.
此后进入步骤403,工作主设备和热备主设备同步更新各自的映射表,此后进入上述工作主设备触发摄像机录像的步骤102。Then, proceeding to step 403, the working master device and the hot standby master device synchronously update the respective mapping tables, and then enter the step 102 of the working master device triggering the camera recording.
硬件***中至少存在两个从设备。There are at least two slave devices in the hardware system.
在工作主设备触发摄像机录像,并触发对应的从设备对该录像数据存储的步骤之后,还包括以下步骤:After the working host device triggers the camera recording and triggers the corresponding slave device to store the recorded data, the following steps are also included:
工作主设备将一个空闲从设备与该对应的从设备关联,用于存储该对应的从设备转发的录像数据,并和热备主设备同步更新各自的映射表。The working master device associates an idle slave device with the corresponding slave device, stores the recorded data forwarded by the corresponding slave device, and updates the respective mapping table in synchronization with the hot standby master device.
在空闲从设备存储该对应的从设备转发的录像数据之后,工作主设备和热备主设备同步更新各自的数据库。After the idle slave device stores the recorded data forwarded by the corresponding slave device, the working master device and the hot standby master device synchronously update the respective databases.
此外,可以理解,如图5所示,摄像机1分配在从设备1上,从设备1出现故障下线或者心跳停止,工作主设备将根据整个***情况为摄像机1重新分配从设备2,同时该***将记录从设备1故障,并通知管理员。In addition, it can be understood that, as shown in FIG. 5, the camera 1 is allocated on the slave device 1, and the slave device 1 has a faulty offline or a heartbeat stop, and the work master device will reallocate the slave device 2 to the camera 1 according to the entire system condition, and The system will log a failure from device 1 and notify the administrator.
***可针对摄像机通道设置冗余功能,工作主设备为摄像机1进行了2次从设备分配,从设备1从摄像机1取流录像,从设备2从从设备1取流录像。The system can set the redundancy function for the camera channel. The working master device performs the slave device assignment for the camera 1 twice, the slave device 1 takes the stream recording from the camera 1, and the slave device 2 takes the video from the slave device 1.
当从设备1故障后,***会再次冗余从设备2上已有数据,最终恢复到在整个***中的不同从设备上存在2份一样的摄像机1通道录像数据。优选地,当从设备1故障处理完毕,恢复上线后,***自动回收重复数据所占有的空间。When the slave device 1 fails, the system will again redundantly have data from the slave device 2, and finally recover to the same camera 1 channel video data on the different slave devices in the entire system. Preferably, after the fault processing of the slave device 1 is completed and the line is restored, the system automatically recovers the space occupied by the duplicate data.
存储在从设备1中的视音频录像数据通过校验和保证数据的正确性,如果数据不完整,则可读取从设备2记录的冗余数据,保证数据正确性。The video and audio recording data stored in the slave device 1 passes the checksum to ensure the correctness of the data. If the data is incomplete, the redundant data recorded from the device 2 can be read to ensure the correctness of the data.
硬件***中至少存在两个从设备。There are at least two slave devices in the hardware system.
在工作主设备将空闲从设备作为摄像机对应的从设备的步骤之前,还包括以下步骤:Before the step in which the working master device idles the slave device as the slave device corresponding to the camera, the following steps are also included:
工作主设备将新接入的从设备作为空闲从设备。The working master device uses the newly accessed slave device as an idle slave device.
此外,可以理解,作为本发明的另一个优选实施方式,如图6所示,实现***扩容的方法包括增加摄像机通道接入数的步骤,如下:In addition, it can be understood that, as another preferred embodiment of the present invention, as shown in FIG. 6, the method for implementing system expansion includes the steps of increasing the number of camera channel accesses, as follows:
在步骤601中,在硬件***中增加从设备。In step 601, the slave device is added to the hardware system.
此后进入步骤602,增加的从设备向工作主设备请求加入。Thereafter, proceeding to step 602, the added slave device requests the join from the working master device.
此后进入步骤603,工作主设备更新从设备列表,以更新设备映射表。Thereafter, proceeding to step 603, the working master updates the slave list to update the device mapping table.
此后进入步骤604,新增摄像机向工作主设备注册。Thereafter, proceeding to step 604, the newly added camera registers with the working master device.
此后结束本流程。This process ends thereafter.
作为本发明的另一个优选实施方式,实现***扩容的方法还包括以下:若摄像机的通道数不变,则要求录像时间增加,即工作主设备可在多个从设备上分配空间给同一个摄像机通道,以增加该通道录像时间。As another preferred embodiment of the present invention, the method for implementing system expansion further includes the following: if the number of channels of the camera is unchanged, the recording time is required to be increased, that is, the working master can allocate space to the same camera on multiple slave devices. Channel to increase the recording time of the channel.
本发明第三实施方式涉及一种高可靠易扩展的录像检索方法。图7是该高可靠易扩展的录像检索方法的流程示意图。该高可靠易扩展的录像检索方法基于一个由至少两个互联的主设备、至少一个从设备和至少一个摄像机组成的硬件***,其中主设备中设有该***中各设备之间的映射表和经摄像机采集的录像数据组成的可索引的数据库,一个主设备为工作主设备与至少一个从设备和至少一个摄像机网络互联,其他主设备为热备主设备。A third embodiment of the present invention relates to a highly reliable and scalable video retrieval method. FIG. 7 is a schematic flow chart of the highly reliable and scalable video retrieval method. The highly reliable and scalable video retrieval method is based on a hardware system consisting of at least two interconnected master devices, at least one slave device and at least one camera, wherein the master device is provided with a mapping table between the devices in the system and An indexable database composed of video data collected by the camera. One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices.
具体地说,如图7所示,该高可靠易扩展的录像检索方法包括以下步骤:Specifically, as shown in FIG. 7, the highly reliable and scalable video retrieval method includes the following steps:
在步骤701中,工作主设备在数据库中索引查询客户端请求的录像数据所在的从设备。In step 701, the working master device indexes in the database the slave device where the recording data requested by the client is located.
此后进入步骤702,工作主设备触发录像数据所在的从设备转发该录像数据至客户端。Then, proceeding to step 702, the working master triggers the slave device where the recorded data is located to forward the recorded data to the client.
此后结束本流程。This process ends thereafter.
在已有工作主设备的情况下增加热备主设备,可以提高***可靠性,由主设备统一管理各从设备,方便客户端随时访问从设备上的录像数据,可以避免现有技术中信息孤岛的问题,以及减少管理复杂度,同时在***逻辑结构保持不变的基础上,可以实现从各设备节点的扩容。If the hot standby master device is added to the existing working device, the system reliability can be improved. The master device can manage the slave devices in a unified manner, so that the client can access the video data on the slave device at any time, which can avoid the information island in the prior art. The problem, as well as the reduction of management complexity, while on the basis of the system's logical structure remains unchanged, can be expanded from each device node.
此外,可以理解,优选地,在索引查找录像数据所在的从设备时,工作主设备根据摄像机关键字或者录像起始时间,录像结束时间等录像摘要信息,在本地数据库中搜索录像数据所在的从设备。优选地,客户端或应用端Client为用户检索***中录像数据的计算机。In addition, it can be understood that, preferably, when searching for the slave device where the recorded data is located, the working master searches for the slave of the recorded data in the local database according to the video summary information such as the camera keyword or the recording start time, the recording end time, and the like. device. Preferably, the client or application client retrieves the computer for recording data in the system for the user.
本发明的各方法实施方式均可以以软件、硬件、固件等方式实现。不管本发明是以软件、硬件、还是固件方式实现,指令代码都可以存储在任何类型的计算机可访问的存储器中(例如永久的或者可修改的,易失性的或者非易失性的,固态的或者非固态的,固定的或者可更换的介质等等)。同样,存储器可以例如是可编程阵列逻辑(Programmable Array Logic,简称“PAL”) 、随机存取存储器(Random Access Memory,简称“RAM”) 、可编程只读存储器(Programmable Read Only Memory,简称“PROM”) 、只读存储器(Read-Only Memory,简称“ROM”) 、电可擦除可编程只读存储器(Electrically Erasable Programmable ROM,简称“EEPROM”) 、磁盘、光盘、数字通用光盘(Digital Versatile Disc,简称“DVD”)等等。The method embodiments of the present invention can all be implemented in software, hardware, firmware, and the like. Regardless of whether the invention is implemented in software, hardware, or firmware, the instruction code can be stored in any type of computer-accessible memory (eg, permanent or modifiable, volatile or non-volatile, solid state Or non-solid, fixed or replaceable media, etc.). Also, the memory can be, for example, a programmable array logic (Programmable) Array Logic ("PAL" for short), Random Access Memory ("RAM") Programmable Read Only Memory ("PROM"), read-only memory (Read-Only) Memory, referred to as "ROM"), electrically erasable programmable read-only memory (Electrically Erasable Programmable) ROM, referred to as "EEPROM"), magnetic disk, optical disk, Digital Versatile Disc ("DVD") and so on.
本发明第四实施方式涉及一种高可靠易扩展的录像存储***。图8是该高可靠易扩展的录像存储***的一种结构示意图。该高可靠易扩展的录像存储***基于一个由至少两个互联的主设备、至少一个从设备和至少一个摄像机组成的硬件***,其中主设备中设有该***中各设备之间的映射表和经摄像机采集的录像数据组成的可索引的数据库,一个主设备为工作主设备与至少一个从设备和至少一个摄像机网络互联,其他主设备为热备主设备。A fourth embodiment of the present invention relates to a highly reliable and expandable video storage system. FIG. 8 is a schematic structural diagram of the highly reliable and expandable video storage system. The highly reliable and expandable video storage system is based on a hardware system consisting of at least two interconnected master devices, at least one slave device and at least one camera, wherein the master device is provided with a mapping table between the devices in the system and An indexable database composed of video data collected by the camera. One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices.
该高可靠易扩展的录像存储***包括以下模块:The highly reliable and expandable video storage system includes the following modules:
查询模块,用于在工作主设备自身的映射表中查询摄像机对应的从设备。The query module is configured to query the slave device corresponding to the camera in the mapping table of the working master device.
触发模块,用于在工作主设备中触发摄像机录像,并触发对应的从设备对该录像数据存储。The triggering module is configured to trigger camera recording in the working main device, and trigger the corresponding slave device to store the recorded data.
同步更新模块,用于在工作主设备中同步更新工作主设备和热备主设备中各自的数据库。The synchronous update module is configured to synchronously update the respective databases in the working master device and the hot standby master device in the working master device.
存储模块,用于在从设备中对摄像机采集的录像数据存储。The storage module is configured to store the recorded data collected by the camera from the device.
在已有工作主设备的情况下增加热备主设备,可以提高***可靠性,由主设备利用设备映射表和录像数据库统一管理各从设备以便于客户端的数据服务请求,可以避免现有技术中信息孤岛的问题,以及减少管理复杂度,同时在***逻辑结构保持不变的基础上,可以实现从各设备节点的扩容。If the hot standby master device is added to the existing working master device, the system reliability can be improved. The master device uses the device mapping table and the recording database to uniformly manage the slave devices to facilitate the data service request of the client, which can avoid the prior art. The problem of information silos, as well as the reduction of management complexity, can be achieved from the expansion of each device node based on the remaining logical structure of the system.
第一实施方式是与本实施方式相对应的方法实施方式,本实施方式可与第一实施方式互相配合实施。第一实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第一实施方式中。The first embodiment is a method embodiment corresponding to the present embodiment, and the present embodiment can be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still effective in the present embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the present embodiment can also be applied to the first embodiment.
本发明第五实施方式涉及一种高可靠易扩展的录像存储***。A fifth embodiment of the present invention relates to a highly reliable and expandable video storage system.
第五实施方式在第四实施方式的基础上进行了改进,主要改进之处在于:工作主设备中的心跳检测模块检测从设备是否还有周期性心跳信息,确定该从设备是否产生故障或下线,在确定从设备出现故障或者下线的情况下,重新为摄像机分配空闲从设备,以消除从设备节点故障,保障***继续运行,从而进一步提高了***可靠性。通过空闲从设备对已有从设备的录像数据备份,从而实现***对录像数据冗余的功能,进一步提高了***的可靠性和录像数据的安全完整性。具体地说:The fifth embodiment is improved on the basis of the fourth embodiment. The main improvement is that the heartbeat detection module in the working main device detects whether the slave device has periodic heartbeat information, and determines whether the slave device generates a fault or a fault. The line, in the case of determining that the slave device is faulty or offline, re-allocating the idle slave device to the camera to eliminate the slave node fault and ensure the system continues to operate, thereby further improving the system reliability. The backup data of the existing slave device is backed up by the idle slave device, thereby realizing the redundancy of the video data, thereby further improving the reliability of the system and the safety integrity of the recorded data. Specifically:
硬件***中至少存在两个从设备。There are at least two slave devices in the hardware system.
该高可靠易扩展的录像存储***还包括以下模块:The highly reliable and expandable video storage system also includes the following modules:
心跳检测模块,用于在工作主设备中检测对应的从设备是否还有周期性心跳信息。The heartbeat detection module is configured to detect, in the working master device, whether the corresponding slave device has periodic heartbeat information.
同步更新模块,还用于若心跳检测模块在工作主设备检测到对应的从设备没有周期性心跳信息,则在工作主设备中将空闲从设备作为摄像机对应的从设备,并同步更新工作主设备和热备主设备中各自的映射表。The synchronization update module is further configured to: if the heartbeat detection module detects that the corresponding slave device does not have periodic heartbeat information, the idle slave device is used as the slave device corresponding to the camera in the working master device, and the working master device is synchronously updated. And the mapping table in the hot standby master device.
此外,可以理解,工作主设备将一个空闲从设备与该对应的从设备关联,用于存储该对应的从设备转发的录像数据,并和热备主设备同步更新各自的映射表。In addition, it can be understood that the working master device associates an idle slave device with the corresponding slave device, stores the recorded data forwarded by the corresponding slave device, and updates the respective mapping table in synchronization with the hot standby master device.
在空闲从设备存储该对应的从设备转发的录像数据之后,工作主设备和热备主设备同步更新各自的数据库。After the idle slave device stores the recorded data forwarded by the corresponding slave device, the working master device and the hot standby master device synchronously update the respective databases.
第二实施方式是与本实施方式相对应的方法实施方式,本实施方式可与第二实施方式互相配合实施。第二实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第二实施方式中。The second embodiment is a method embodiment corresponding to the present embodiment, and the present embodiment can be implemented in cooperation with the second embodiment. The related technical details mentioned in the second embodiment are still effective in the present embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the present embodiment can also be applied to the second embodiment.
本发明第六实施方式涉及一种高可靠易扩展的录像检索***。图9是该高可靠易扩展的录像检索***的一种结构示意图。该高可靠易扩展的录像检索***基于一个由至少两个互联的主设备、至少一个从设备和至少一个摄像机组成的硬件***,其中主设备中设有该***中各设备之间的映射表和经摄像机采集的录像数据组成的可索引的数据库,一个主设备为工作主设备与至少一个从设备和至少一个摄像机网络互联,其他主设备为热备主设备。A sixth embodiment of the present invention relates to a highly reliable and scalable video retrieval system. Fig. 9 is a schematic structural view of the highly reliable and expandable video retrieval system. The highly reliable and scalable video retrieval system is based on a hardware system consisting of at least two interconnected master devices, at least one slave device and at least one camera, wherein the master device is provided with a mapping table between the devices in the system and An indexable database composed of video data collected by the camera. One master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master devices are hot standby master devices.
该高可靠易扩展的录像检索***包括以下模块:The highly reliable and scalable video retrieval system includes the following modules:
索引查询模块,用于在工作主设备自身的数据库中索引查询客户端请求的录像数据所在的从设备。The index query module is configured to index the slave device where the recording data requested by the client is located in the database of the working master device.
转发触发模块,用于在工作主设备触发录像数据所在的从设备转发该录像数据至客户端。The forwarding triggering module is configured to forward the recording data to the client at the slave device where the working master triggers the recording data.
在已有工作主设备的情况下增加热备主设备,可以提高***可靠性,由主设备统一管理各从设备,方便客户端随时访问从设备上的录像数据,可以避免现有技术中信息孤岛的问题,以及减少管理复杂度,同时在***逻辑结构保持不变的基础上,可以实现从各设备节点的扩容。If the hot standby master device is added to the existing working device, the system reliability can be improved. The master device can manage the slave devices in a unified manner, so that the client can access the video data on the slave device at any time, which can avoid the information island in the prior art. The problem, as well as the reduction of management complexity, while on the basis of the system's logical structure remains unchanged, can be expanded from each device node.
此外,可以理解,作为本发明的一个优选实施方式,该高可靠易扩展的录像检索***的***结构图如图9所示。In addition, it can be understood that, as a preferred embodiment of the present invention, the system structure diagram of the highly reliable and expandable video retrieval system is as shown in FIG.
第三实施方式是与本实施方式相对应的方法实施方式,本实施方式可与第三实施方式互相配合实施。第三实施方式中提到的相关技术细节在本实施方式中依然有效,为了减少重复,这里不再赘述。相应地,本实施方式中提到的相关技术细节也可应用在第三实施方式中。The third embodiment is a method embodiment corresponding to the present embodiment, and the present embodiment can be implemented in cooperation with the third embodiment. The related technical details mentioned in the third embodiment are still effective in the present embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the present embodiment can also be applied to the third embodiment.
需要说明的是,本发明各设备实施方式中提到的各模块都是逻辑模块,在物理上,一个逻辑模块可以是一个物理模块,也可以是一个物理模块的一部分,还可以以多个物理模块的组合实现,这些逻辑模块本身的物理实现方式并不是最重要的,这些逻辑模块所实现的功能的组合才是解决本发明所提出的技术问题的关键。此外,为了突出本发明的创新部分,本发明上述各设备实施方式并没有将与解决本发明所提出的技术问题关系不太密切的模块引入,这并不表明上述设备实施方式并不存在其它的模块。It should be noted that each module mentioned in each device implementation manner of the present invention is a logic module. Physically, a logic module may be a physical module, a part of a physical module, or multiple physical entities. The combined implementation of modules, the physical implementation of these logic modules themselves is not the most important, the combination of the functions implemented by these logic modules is the key to solving the technical problems raised by the present invention. In addition, in order to highlight the innovative part of the present invention, the above-mentioned various device embodiments of the present invention do not introduce a module that is not closely related to solving the technical problem proposed by the present invention, which does not indicate that the above device implementation does not have other Module.
虽然通过参照本发明的某些优选实施方式,已经对本发明进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。Although the invention has been illustrated and described with reference to the preferred embodiments of the present invention, it will be understood The spirit and scope of the invention.
本发明的实施方式Embodiments of the invention
工业实用性Industrial applicability
序列表自由内容Sequence table free content

Claims (8)

1.一种高可靠易扩展的录像存储方法,基于一个由至少两个互联的主设备、至少一个从设备和至少一个摄像机组成的硬件***,其中主设备中设有该***中各设备之间的映射表和经摄像机采集的录像数据组成的可索引的数据库,一个主设备为工作主设备与至少一个从设备和至少一个摄像机网络互联,其他主设备为热备主设备,其特征在于,所述方法包括以下步骤:1. A highly reliable and scalable video storage method based on a hardware system consisting of at least two interconnected master devices, at least one slave device and at least one camera, wherein the master device is provided with a mapping between devices in the system An indexable database consisting of a table and video data collected by the camera, one master device is a work master device interconnected with at least one slave device and at least one camera network, and the other master device is a hot standby master device, wherein the method is Includes the following steps:
工作主设备在自身的映射表中查询到摄像机对应的从设备;The working master device queries the slave device corresponding to the camera in its own mapping table;
工作主设备触发摄像机录像,并触发对应的从设备对该录像数据存储;The working master device triggers the camera recording, and triggers the corresponding slave device to store the recorded data;
工作主设备和热备主设备同步更新各自的数据库。The work master and the hot standby master synchronize their respective databases.
2.根据权利要求1所述的高可靠易扩展的录像存储方法,其特征在于,所述硬件***中至少存在两个从设备;2. The high reliability and expandable video storage method according to claim 1, wherein at least two slave devices are present in the hardware system;
在所述工作主设备在自身的映射表中查询到摄像机对应的从设备步骤之后,还包括以下步骤:After the working master device queries the slave device corresponding to the camera in its own mapping table, the following steps are also included:
工作主设备检测对应的从设备是否还有周期性心跳信息;The working master device detects whether the corresponding slave device has periodic heartbeat information;
若工作主设备检测到对应的从设备没有周期性心跳信息,则工作主设备将空闲从设备作为摄像机对应的从设备,并与热备主设备同步更新各自的映射表。If the working master device detects that the corresponding slave device does not have periodic heartbeat information, the working master device uses the idle slave device as the slave device corresponding to the camera, and updates the mapping table with the hot standby master device.
3.根据权利要求1所述的高可靠易扩展的录像存储方法,其特征在于,所述硬件***中至少存在两个从设备;3. The high reliability and expandable video storage method according to claim 1, wherein at least two slave devices are present in the hardware system;
在所述工作主设备触发摄像机录像,并触发对应的从设备对该录像数据存储的步骤之后,还包括以下步骤:After the working main device triggers the camera recording and triggers the corresponding slave device to store the recorded data, the method further includes the following steps:
工作主设备将一个空闲从设备与该对应的从设备关联,用于存储该对应的从设备转发的录像数据,并和热备主设备同步更新各自的映射表;The working master device associates an idle slave device with the corresponding slave device, stores the recorded data forwarded by the corresponding slave device, and updates the mapping table with the hot standby master device;
在空闲从设备存储该对应的从设备转发的录像数据之后,工作主设备和热备主设备同步更新各自的数据库。After the idle slave device stores the recorded data forwarded by the corresponding slave device, the working master device and the hot standby master device synchronously update the respective databases.
4.根据权利要求2所述的高可靠易扩展的录像存储方法,其特征在于, 4. A highly reliable and scalable video storage method according to claim 2, wherein
在所述工作主设备将空闲从设备作为摄像机对应的从设备的步骤之前,还包括以下步骤:Before the step of the working master device using the idle slave device as the slave device corresponding to the camera, the method further includes the following steps:
工作主设备将新接入的从设备作为空闲从设备。The working master device uses the newly accessed slave device as an idle slave device.
5.一种高可靠易扩展的录像检索方法,基于一个由至少两个互联的主设备、至少一个从设备和至少一个摄像机组成的硬件***,其中主设备中设有该***中各设备之间的映射表和经摄像机采集的录像数据组成的可索引的数据库,一个主设备为工作主设备与至少一个从设备和至少一个摄像机网络互联,其他主设备为热备主设备,其特征在于,所述方法包括以下步骤:5. A highly reliable and scalable video retrieval method based on a hardware system consisting of at least two interconnected master devices, at least one slave device and at least one camera, wherein the master device is provided with a mapping between devices in the system An indexable database consisting of a table and video data collected by the camera, one master device is a work master device interconnected with at least one slave device and at least one camera network, and the other master device is a hot standby master device, wherein the method is Includes the following steps:
工作主设备在数据库中索引查询客户端请求的录像数据所在的从设备;The working master device indexes the slave device where the recording data requested by the client is located in the database;
工作主设备触发录像数据所在的从设备转发该录像数据至客户端。The slave device that triggers the recording data to forward the recording data to the client.
6.一种高可靠易扩展的录像存储***,基于一个由至少两个互联的主设备、至少一个从设备和至少一个摄像机组成的硬件***,其中主设备中设有该***中各设备之间的映射表和经摄像机采集的录像数据组成的可索引的数据库,一个主设备为工作主设备与至少一个从设备和至少一个摄像机网络互联,其他主设备为热备主设备,其特征在于,所述存储***包括以下模块:6. A highly reliable and scalable video storage system based on a hardware system consisting of at least two interconnected master devices, at least one slave device and at least one camera, wherein the master device is provided with a mapping between devices in the system An indexable database consisting of a table and video data collected by the camera, one master device is a work master device interconnected with at least one slave device and at least one camera network, and the other master device is a hot standby master device, characterized in that the storage device The system includes the following modules:
查询模块,用于在工作主设备自身的映射表中查询摄像机对应的从设备;The query module is configured to query the slave device corresponding to the camera in the mapping table of the working master device itself;
触发模块,用于在工作主设备中触发摄像机录像,并触发对应的从设备对该录像数据存储;a triggering module, configured to trigger a camera recording in the working main device, and trigger a corresponding slave device to store the recorded data;
同步更新模块,用于在工作主设备中同步更新工作主设备和热备主设备中各自的数据库;a synchronous update module, configured to synchronously update respective databases in the working master device and the hot standby master device in the working master device;
存储模块,用于在从设备中对摄像机采集的录像数据存储。The storage module is configured to store the recorded data collected by the camera from the device.
7.根据权利要求6所述的高可靠易扩展的录像存储***,其特征在于,所述硬件***中至少存在两个从设备;7. The high reliability and expandable video storage system according to claim 6, wherein at least two slave devices are present in the hardware system;
所述存储***还包括以下模块:The storage system also includes the following modules:
心跳检测模块,用于在工作主设备中检测对应的从设备是否还有周期性心跳信息;a heartbeat detection module, configured to detect, in the working main device, whether the corresponding slave device has periodic heartbeat information;
所述同步更新模块,还用于若所述心跳检测模块在工作主设备检测到对应的从设备没有周期性心跳信息,则在工作主设备中将空闲从设备作为摄像机对应的从设备,并同步更新工作主设备和热备主设备中各自的映射表。The synchronization update module is further configured to: if the heartbeat detection module detects that the corresponding slave device does not have periodic heartbeat information, the idle master device is used as the slave device corresponding to the camera in the working master device, and is synchronized. Update the respective mapping tables in the working master and the hot standby master.
8.一种高可靠易扩展的录像检索***,基于一个由至少两个互联的主设备、至少一个从设备和至少一个摄像机组成的硬件***,其中主设备中设有该***中各设备之间的映射表和经摄像机采集的录像数据组成的可索引的数据库,一个主设备为工作主设备与至少一个从设备和至少一个摄像机网络互联,其他主设备为热备主设备,其特征在于,所述检索***包括以下模块:8. A highly reliable and scalable video retrieval system based on a hardware system consisting of at least two interconnected master devices, at least one slave device and at least one camera, wherein the master device is provided with a mapping between devices in the system An indexable database comprising a table and video data collected by the camera, one master device is a working master device interconnected with at least one slave device and at least one camera network, and the other master device is a hot standby master device, wherein the retrieval is performed The system includes the following modules:
索引查询模块,用于在工作主设备自身的数据库中索引查询客户端请求的录像数据所在的从设备;An index query module, configured to index, in a database of the working master device, a slave device where the video data requested by the client is located;
转发触发模块,用于在工作主设备触发录像数据所在的从设备转发该录像数据至客户端。The forwarding triggering module is configured to forward the recording data to the client at the slave device where the working master triggers the recording data.
PCT/CN2012/084783 2012-06-15 2012-11-16 High-reliability, extensible video storage and search method and system thereof WO2013185434A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210202092.2 2012-06-15
CN201210202092.2A CN102723094B (en) 2012-06-15 2012-06-15 The video recording storage of highly reliable easy expansion, search method and system thereof

Publications (1)

Publication Number Publication Date
WO2013185434A1 true WO2013185434A1 (en) 2013-12-19

Family

ID=46948832

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/084783 WO2013185434A1 (en) 2012-06-15 2012-11-16 High-reliability, extensible video storage and search method and system thereof

Country Status (2)

Country Link
CN (1) CN102723094B (en)
WO (1) WO2013185434A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111428080A (en) * 2019-04-25 2020-07-17 杭州海康威视数字技术股份有限公司 Storage method, search method and device for video files
CN114339380A (en) * 2022-01-06 2022-04-12 厦门亿联网络技术股份有限公司 Recording method, device, server and readable storage medium based on AA mode

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102723094B (en) * 2012-06-15 2015-11-25 杭州海康威视数字技术股份有限公司 The video recording storage of highly reliable easy expansion, search method and system thereof
CN102968360B (en) * 2012-11-28 2015-08-05 青岛海信网络科技股份有限公司 There is storage system and the method for N+1 redundancy feature
CN104301652B (en) * 2013-07-19 2017-09-22 杭州海康威视数字技术股份有限公司 Carry out the method and network hard disk video recorder of web camera access configuration
CN104349172B (en) * 2013-08-02 2017-10-13 杭州海康威视数字技术股份有限公司 The cluster management method and its device of Internet video storage device
CN104064203A (en) * 2014-06-26 2014-09-24 广东互维科技有限公司 Video retrieval positioning method
CN104144230B (en) * 2014-07-30 2017-08-15 浙江宇视科技有限公司 A kind of easy monitor terminal binding method and device
CN105430327A (en) * 2015-11-05 2016-03-23 成都基业长青科技有限责任公司 NVR cluster backup method and device
CN106341634A (en) * 2016-08-31 2017-01-18 武汉烽火众智数字技术有限责任公司 Video acquisition system based on hard disk video recorder and method thereof
CN107959812B (en) * 2016-10-18 2020-09-22 杭州萤石网络有限公司 Monitoring data storage method, device and system and routing equipment
CN108964948A (en) * 2017-05-19 2018-12-07 北京金山云网络技术有限公司 Principal and subordinate's service system, host node fault recovery method and device
CN108323246B (en) * 2018-01-25 2021-11-12 深圳市为通博科技有限责任公司 Networking method, chip and wireless network system
CN111078680B (en) * 2018-10-18 2023-09-26 杭州海康威视数字技术股份有限公司 Table information processing method, apparatus, electronic device and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090002157A1 (en) * 2007-05-08 2009-01-01 Donovan John J Audio analysis, storage, and alerting system for safety, security, and business productivity
CN101720134A (en) * 2009-11-17 2010-06-02 东北大学 Wireless virtual device protocol-based industrial wireless data transmission method
CN101877783A (en) * 2009-11-06 2010-11-03 北京邦诺存储科技有限公司 Network video recorder cluster video monitoring system and method
CN102723094A (en) * 2012-06-15 2012-10-10 杭州海康威视数字技术股份有限公司 High-reliability and easily-extensible video storage and retrieval method and system thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090002157A1 (en) * 2007-05-08 2009-01-01 Donovan John J Audio analysis, storage, and alerting system for safety, security, and business productivity
CN101877783A (en) * 2009-11-06 2010-11-03 北京邦诺存储科技有限公司 Network video recorder cluster video monitoring system and method
CN101720134A (en) * 2009-11-17 2010-06-02 东北大学 Wireless virtual device protocol-based industrial wireless data transmission method
CN102723094A (en) * 2012-06-15 2012-10-10 杭州海康威视数字技术股份有限公司 High-reliability and easily-extensible video storage and retrieval method and system thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111428080A (en) * 2019-04-25 2020-07-17 杭州海康威视数字技术股份有限公司 Storage method, search method and device for video files
CN111428080B (en) * 2019-04-25 2024-02-27 杭州海康威视数字技术股份有限公司 Video file storage method, video file search method and video file storage device
CN114339380A (en) * 2022-01-06 2022-04-12 厦门亿联网络技术股份有限公司 Recording method, device, server and readable storage medium based on AA mode
CN114339380B (en) * 2022-01-06 2024-06-11 厦门亿联网络技术股份有限公司 Recording method, device, server and readable storage medium based on AA mode

Also Published As

Publication number Publication date
CN102723094A (en) 2012-10-10
CN102723094B (en) 2015-11-25

Similar Documents

Publication Publication Date Title
WO2013185434A1 (en) High-reliability, extensible video storage and search method and system thereof
US20230004531A1 (en) Synchronizing configuration of partner objects across distributed storage systems using transformations
WO2011002169A2 (en) High availability database management system and database management method using same
EP2619695B1 (en) System and method for managing integrity in a distributed database
JP4448719B2 (en) Storage system
US10530855B2 (en) Lock state synchronization for non-disruptive persistent operation
US9002799B2 (en) Systems and methods for resynchronizing information
US6173293B1 (en) Scalable distributed file system
CN111581284B (en) Database high availability method, device, system and storage medium
US7275177B2 (en) Data recovery with internet protocol replication with or without full resync
US7567991B2 (en) Replication of snapshot using a file system copy differential
JP5918244B2 (en) System and method for integrating query results in a fault tolerant database management system
WO2016070375A1 (en) Distributed storage replication system and method
US20050216788A1 (en) Fast backup storage and fast recovery of data (FBSRD)
US20040068523A1 (en) Method and system for full asynchronous master-to-master file synchronization
WO2021051492A1 (en) Database service node switching method, apparatus and device, and computer storage medium
US20150012497A1 (en) Cluster-wide unique id for object access control lists
JP2013544386A5 (en)
WO2015180434A1 (en) Data management method, node and system for database cluster
US20090063486A1 (en) Data replication using a shared resource
WO2019242115A1 (en) Data synchronization system and method
WO2016095329A1 (en) Log recording system and log recording operating method
CN106254161A (en) The quickly detection of node failure based on HDFS and restoration methods and system
WO2014094306A1 (en) Method and device for setting working mode of cache
JPH08185346A (en) Data duplicate system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12878830

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 20/02/2015)

122 Ep: pct application non-entry in european phase

Ref document number: 12878830

Country of ref document: EP

Kind code of ref document: A1