A multi-server video recording storage and playback system and method

The multi-server video storage and playback system solves the problem of video playback failure when a single node storage server is offline, realizes the sharing of video resources, saves storage space, and reduces costs.

CN118488220BActive Publication Date: 2025-10-17HANGZHOU EBOYLAMP ELECTRONICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410679347.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2025-10-17
Estimated Expiration
2044-05-29

AI Technical Summary

Technical Problem

In the prior art, when a single node storage server fails and goes offline, the video files cannot be directly played back, and the backup operation efficiency is low and the cost is high, and the hardware requirements increase.

Method used

A multi-server video storage and playback system is used. The service access gateway identifies the node server status, allocates online node servers, and sends video requests to the node servers. The main storage server is used for unified storage and management of video files, realizing video file sharing and directory retrieval. The node server only requires a small memory space.

Benefits of technology

It enables complete playback of video files on any node server, saving storage space and manpower and material costs, and improving the sharing and access efficiency of video resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118488220B_ABST
    Figure CN118488220B_ABST
Patent Text Reader

Abstract

The present application relates to the field of video monitoring technology, in particular to a video storage and playback system and method. The system comprises a video monitoring device, a plurality of node servers, a service access gateway, a total storage server, a video storage module, a video reading module and a client terminal. The video file transfer intermediation can be performed by the plurality of node servers connected with the video monitoring device, the video file is saved to the total storage server, and the directory allocation and directory retrieval of the video storage module and the video reading module are used to realize the function that any node server can obtain all video files. When reading, all video files in the total storage server can be found through directory retrieval, and the video resource sharing purpose is achieved by sending to the client terminal through any node server, and the purpose that the video file can be completely obtained at any node server is realized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of video monitoring, in particular to a video recording storage and playback system and method. BACKGROUND

[0002] In the field of video monitoring, especially in the field of domestic video recording storage technology, the domestic storage and playback system often transmits the real-time video stream of video devices such as cameras to the storage server for storage. For example, the Chinese patent document with publication number CN104394382A discloses a video monitoring recording storage method, device and system, which stores recording files through a storage server. With more and more video devices being connected, the recording files stored on the storage server are also increasing, and the amount of data being transmitted is also increasing. At this time, the existing technology often deploys multiple storage servers to solve the problems of insufficient storage space and performance.

[0003] When multiple node storage servers perform recording storage, although there is an upper layer total storage server to manage each node storage server, each node server is usually independent of each other, and the recording files are stored separately in the node storage server connected thereto. Therefore, when a node storage server is offline due to failure or power failure, the recording files on the node storage server cannot be read because the client terminal cannot access the node storage server. In order to view the recording on the node storage server, the disk of the node storage server often needs to be pulled out and inserted into another available node storage server for recording reading, which requires manual operation. Alternatively, when recording storage is performed, the recording files are backed up to other node storage servers regularly to ensure that other node storage servers can still read the recording files in the case of abnormality of a single node storage server.

[0004] In the above method, since a single node storage server cannot directly read the recording files stored on other node storage servers, when a node storage server fails and goes offline, and the recording files of the time period are saved to other node storage servers, even if the node storage server is online again, it will not be able to directly play back the recording files in the above time period that are not stored in its disk. Manual intervention is inefficient and will cause additional costs. In addition, backup and other operations will require higher storage space on the node storage server, increasing the cost of hardware arrangement. SUMMARY

[0005] The application aims to provide a multi-server video recording storage and playback system, which can solve the problem that the video cannot be played back completely when a single node storage server is offline, and achieve the purpose of video resource sharing; and each node storage server only needs a small memory space to complete the work, which greatly saves the storage space and saves the cost of manpower and material resources for the node storage server.

[0006] In order to achieve the above-mentioned purpose, the application mainly realizes the technical scheme as follows:

[0007] A multi-storage server video recording storage and playback system comprises a plurality of video monitoring devices, characterized in that it further comprises:

[0008] A service access gateway, which is used to identify the online state of a node server, connect the node server and the video monitoring device, and allocate a corresponding online node server for the video monitoring device;

[0009] A plurality of node servers, which are used to receive video monitoring device information and video recording requests issued by the service access gateway, pull real-time code stream data for transcoding to obtain video recording files, and receive video recording playback instructions from a client terminal and send video recording playback code stream data to the client terminal;

[0010] A total storage server, which is connected with the node servers and is used to receive, send and store video recording files, and comprises a disk storage unit for storing video recording files;

[0011] A video recording storage module, which is arranged in the node server and is used to receive real-time code stream data and transcode and save the data as video recording files, establish a storage directory in the disk storage unit according to the number of the node server, and store the video recording files in the disk storage space under the storage directory;

[0012] A video recording reading module, which is arranged in the node server and is used to find and read target video recording files in the disk storage space and arrange all the target video recording files into a playback queue;

[0013] A client terminal, which is connected with the service access gateway and is used to issue playback instructions and receive the playback queue and render the playback queue to form a playback picture.

[0014] Thus, the video monitoring device is used to collect video recording files, and in actual application, a large number of video monitoring devices are often connected, which are deployed at different points. When the system is deployed, all the video monitoring devices are connected to the service access gateway through multiple networks and multiple switches for unified management.

[0015] When storage is performed, the service access gateway allocates a corresponding online node server for all video monitoring devices, and sends the video monitoring device information corresponding to the video recording request to the node server, and the node server transmits the video recording file to the total storage server for storage. After receiving the video recording request and the video monitoring device information, the node server directly requests the video monitoring device to play real-time video, and converts the received real-time code stream data into a video recording file.

[0016] The service access gateway is connected with the client terminal through a network, and the specific connection form can be wired or wireless. The user can access the node server through the client terminal, obtain the required playback queue through the node server, that is, obtain the required video recording playback code stream data, and render the playback picture on the client terminal. The service access gateway can be a switch device, and the client terminal is a PC device or a handheld mobile device running a video recording management software.

[0017] When a node server is unexpectedly offline, the video recording request of the video monitoring device corresponding to the node server will be redistributed through the service access gateway and executed through other normal node servers, and stored in the total storage server.

[0018] The total storage server is used for receiving, sending and storing video recording files, and includes a disk storage unit. All node servers are connected with the disk storage unit to upload and store video recording files. When reading, the total storage server sends the video recording files stored in the disk storage unit to the node server that makes the request. Since the disk storage unit has a large storage capacity, it is not necessary to set a large-capacity storage in each node server to store video recording files, thereby saving resources of each node server.

[0019] The video recording storage module is arranged in the node server, and is mainly used for establishing a storage directory in the disk storage unit according to the number of the node server, and storing the video recording file in the disk storage space under the storage directory. The storage disk in the disk storage unit of the total storage server can be mounted on multiple node servers through Ipsan and other methods. Each node server has its own independent number, and the video recording storage module establishes a corresponding storage directory in the disk storage unit according to the number. Each storage directory occupies a storage partition in the disk storage unit, and the storage directory is equivalent to an index file. The storage partition under the storage directory stores information of all video recording files uploaded to the disk storage space through the node server. The information records camera ID, video recording start time node, video recording end time node, video recording duration information, frame rate data and the like of the video recording file. The video recording reading module can obtain the target video recording file required by the client according to the above information to form a playback queue, and send it to the client terminal through the service access gateway. The video recording file in the playback queue can be read in sequence during playback.

[0020] The video reading module is arranged in the node server, and is used for searching all storage directories, and specifically, all target video files required in the playback command are found by searching all storage directory information.

[0021] When the node server A is offline due to failure, the service access gateway allocates the node server B to execute the video monitoring device A video recording request previously allocated on the node server A. The node server B connects the video monitoring device A and acquires real-time code stream data of the video monitoring device A, and stores the real-time code stream data in a storage space under a storage directory B in the disk storage unit. At this time, the storage space under the storage directory A and the storage space under the storage directory B both store video files uploaded from the video monitoring device A, but the time nodes of the video files are different. When reading, if the customer specifies the node server B as an execution server through the customer terminal and sends a playback instruction to the node server B, the video reading unit in the node server B searches all storage directories in the disk storage unit, including the storage directory A and the storage directory B, finds the target video files in the storage directories, extracts the target video files from the disk storage unit, and sends the target video files to the customer terminal.

[0022] The video file transmission mediation is performed by the plurality of node servers connected with the video monitoring device, the video files acquired by the plurality of video monitoring devices arranged in a scattered manner are stored in the total storage server, the directory allocation and the directory search of the video storage module and the video reading module are performed, the function that all video files can be acquired by any node server is realized, when a certain node server is unexpectedly offline, the video recording request of the video monitoring device corresponding to the node server can be executed by other node servers through the allocation of the service access gateway, and the video file is uploaded to the total storage server. When reading, all video files can be found in the total storage server through the directory search, and the video files are sent to the customer terminal through any node server, so that the video resource sharing is achieved, and the purpose that the video file can be completely acquired at any node is achieved.

[0023] As a preferred embodiment of the application, the video reading module comprises a data source module, the data source module is used for searching and acquiring the target video file according to the playback command, and adding the target video file to a playback queue.

[0024] The video reading module comprises the data source module, all video monitoring devices have independent IDs, when the user initiates a playback request through a certain node server, the ID of the video monitoring device and the playback time period are selected, the data source module globally searches all storage directories according to the above screening conditions, finds all associated target video files, and adds the target video files to the playback queue. When playing back, the video file content in the playback queue can be read in sequence, and the video file content is transmitted to the customer terminal through the network.

[0025] As a preferred embodiment of the present application, the data source module comprises a disk scanning unit for automatically scanning all storage directories stored in the disk storage unit according to a preset time interval.

[0026] Since each video monitoring device connected to each node server continuously transmits real-time video code streams, each node server will always write video files, and therefore the storage directory information stored in the disk storage unit is continuously changing. The disk scanning unit can load all relevant storage directories stored in the disk storage unit into the memory space of the node server where the disk scanning unit is located according to a preset time. For example, when scanning, the disk scanning unit searches for directories with a name similar to CCF_xxxx in the disk storage unit according to a playback instruction, where CCF represents the name of the node server, and the number "xxxx" after the underscore represents the ID of the node server and the number of video files. After finding all storage directories meeting the playback requirements, the disk scanning unit loads the storage directories into the memory of the node server where the disk scanning unit is located. When scanning the disk, the scanning time interval can be set, for example, scanning once every 1 min, which can avoid excessive video playback channels and long scanning time, thereby saving scanning resources.

[0027] A video storage and playback method for multiple storage servers, characterized in that the method comprises:

[0028] S01, a video monitoring device is connected to a service access gateway, and the service access gateway allocates an online node server for the video monitoring device after receiving a video recording request and sends the video monitoring device information and the video recording request to the node server;

[0029] S02, a video storage module establishes a storage directory in a disk storage unit in a total storage server according to the number of the node server, and sends a video file received by the node server to a disk storage space under the established storage directory;

[0030] S03, a client terminal sends a playback command to the node server through the service access gateway, a video reading module finds all storage directories in the disk storage unit according to the playback command, acquires a target video file under the storage directory, and arranges the target video file into a playback queue;

[0031] S04, the node server reads the video files in the playback queue in sequence and transmits the video files to the client terminal, and the client terminal decodes the video stream after receiving the video files and then renders a playback picture.

[0032] As a preferred embodiment of the present application, in step S02, a step of establishing a read-write storage space is further included, specifically, the video storage module divides a storage area in the disk storage unit and sets it as a read-write storage space.

[0033] Thus, each node server has a corresponding read-write storage space in the disk storage space, and the node server can establish a storage directory in the area, save the storage directory information in the read-write storage space, and write the video file to be stored into the read-write storage space. The storage directory information corresponds to the video file and serves as information guidance. When reading, the node server corresponding to the read-write storage space can directly obtain the target video file saved therein.

[0034] As a preferred embodiment of the present application, in step S03, when obtaining the target video file under the storage directory, a step of establishing a read-only storage space is further included, specifically, the data source module establishes a read-only storage space in the disk storage unit, and the read-only storage space is used to obtain the target video file saved in the read-write storage space corresponding to a node server other than the node server.

[0035] Since each node server has a read-write storage space in the disk storage unit, a node server needs to establish a read-only storage space in the read-write storage space of another node server in order to access the video file uploaded by the other node server. The node server can only obtain the storage directory and the video file in the read-only storage space and cannot write into it, which is to ensure that the data in the storage space will not be abnormal. Further, in this way, any node server can obtain the video file of all other node servers, realize the function of global search, and the storage space is a read-only space, so the node servers will not interfere with each other.

[0036] As a preferred embodiment of the present application, the disk scanning unit scans all the storage directories stored in the disk storage unit at every preset time interval. The time interval value is selected in the range of 10 seconds to 2 minutes.

[0037] Since each camera connected to each node server continuously uploads video files, the storage directory information stored in the disk storage unit continuously changes, and the disk scanning unit can automatically scan all the storage directories stored in the disk storage unit according to the preset time. When scanning the disk, the scanning time interval can be set, for example, only one scanning is needed within 1 minute, which can avoid too many video playback channels and too long scanning time. Selecting 30 seconds to 1 minute as the time interval value selection range can better coordinate the process operation of each module.

[0038] As a preferred embodiment of the present application, the S03 further comprises a playback queue confirmation step:

[0039] After the data source module acquires the target video recording files, it arranges all the target video recording files in a playback queue in chronological order. If the total duration of the playback queue completely covers the target duration in the playback command, the confirmation of the playback queue is completed. If the total duration of the playback queue cannot completely cover the target duration in the playback command, the target video recording files are re-searched and the playback queue is re-acquired.

[0040] Thus, the data source module confirms the playback queue by duration coverage. For example, when the playback command uploaded by a certain node server is to play back the video recording of a 1st video monitoring device in the time period of 10:00-11:45, the data source module in the node server searches for the target video recording files in all the storage directories, acquires the target video recording files, extracts the start node time and duration information, arranges them according to the time nodes, for example, CCF_1001 is the video recording of the 1st video monitoring device in the time period of 10:00-10:45, and CCF_1002 is the video recording of the 1st video monitoring device in the time period of 10:45-11:45, and arranges the two to obtain a playback queue. Then, the total duration information of the playback queue is compared with the total duration information in the playback request command. If the total duration of the playback queue completely covers the target duration in the playback command, the confirmation of the playback queue is completed. If the total duration of the playback queue cannot completely cover the target duration in the playback command, the target video recording files are re-searched and the playback queue is re-acquired. If the playback queue is confirmed, the node server sends the confirmed playback queue to the service access gateway, and then to the client terminal. The client terminal renders the received playback queue to form a playback picture.

[0041] As a preferred embodiment of the present application, the data source module acquires the target video recording files in the storage directories in the following order: first, all the target video recording files in the readable and writable storage space are acquired. If a complete playback queue is acquired, the process is ended. If a complete playback queue is not acquired, all the target video recording files in the read-only storage space are acquired. If a complete playback queue is acquired, the process is ended. If a complete playback queue is not acquired, a loop acquisition operation is performed.

[0042] When the target video file is acquired, the data source module firstly searches the acquired storage directory in the read-write storage space, acquires all target video files in the time period according to the video monitoring device ID, start node time and time length information, and determines the playback queue according to the time length coverage method. If the complete playback queue is acquired, the process is ended. If the complete playback queue is not acquired, the data source module performs the acquisition action on the read-only storage space in all node servers, acquires the playback queue, and if the complete playback queue is acquired, the process is ended. If the complete playback queue is not acquired, the read-only storage space is searched circularly. Thus, the video playback requirement of the complete time queue can be acquired by any one node server, and the function that the video files uploaded by the node server can still be accessed by other node servers in the case that the current node server is offline can be ensured.

[0043] In summary, the present application has the following beneficial effects:

[0044] The video file transfer intermediation is performed by the multiple node servers connected with the video monitoring devices, the multiple video files arranged in dispersion can be saved in the total storage server, the directory allocation and directory retrieval of the video storage module and the video reading module are performed, the function that all video files can be accessed by any one node server is realized, when a node server is unexpectedly offline, the video request of the video monitoring device corresponding to the node server can be distributed by the service access gateway, performed by other node servers, and the video file is uploaded to the total storage server. When reading, all video files can be found in the total storage server through directory retrieval, sent to the client terminal through any node server, the purpose of video resource sharing is achieved, the function that the video file can be completely acquired at any node is realized, the problem that the video cannot be completely played back when a single node server is offline is solved, the purpose of video resource sharing is achieved, and the node server only needs a small memory space to complete the work, the storage space is greatly saved, and the labor and material cost is reduced. BRIEF DESCRIPTION OF DRAWINGS

[0045] Figure 1 The system block diagram of the multi-server video storage and playback system is shown in the figure;

[0046] Figure 2 The system block diagram of the video reading module is shown in the figure;

[0047] Figure 3 The method flow chart of the multi-server video storage and playback method is shown in the figure. DETAILED DESCRIPTION

[0048] The preferred embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Anyone can implement the present disclosure in various forms without being limited by the embodiments set forth herein. Instead, these embodiments are provided to make the present disclosure more thorough and complete, and to convey the scope of the present disclosure to those skilled in the art.

[0049] As shown in Figure 1 , there are multiple sets of video monitoring devices, which can be in the form of various types of video recorders, monitoring probes, etc., and the spatial distribution can be centralized or scattered. 1, 2, 3...N represent N video monitoring devices arranged in parallel, and all video monitoring devices are connected to the node server through the service access gateway. The node server is arranged in multiple, and the service access gateway has the selection and distribution capability. When storing, the service access gateway will allocate the corresponding online node server for all video monitoring devices, and issue the video monitoring device information corresponding to the video recording request to the node server, and the node server will transmit the video recording file to the total storage server for storage. When a node server is offline due to power failure or other reasons, the service access gateway will automatically reassign other online node servers for the video recording unit corresponding to it, ensuring that the video recording file stream uploading action of the video recording unit will not be interrupted and will not cause accidental storage.

[0050] For example, when node server A is offline due to failure, the service access gateway assigns node server B to execute the video recording request of video monitoring device A previously assigned on node server A. Node server B will connect video monitoring device A and obtain real-time code stream data of video monitoring device A, and store it in the storage space under storage directory B in the disk storage unit. At this time, the storage space under storage directory A and the storage space under storage directory B both store video recording files uploaded from video monitoring device A, but the time nodes of each video recording file are different. When reading, if the customer specifies node server B as the execution server through the customer terminal and sends a playback instruction to it, the video reading unit in node server B finds all storage directories in the disk storage unit, including storage directory A and storage directory B, finds the target video recording file inside, extracts it from the disk storage unit and sends it to the customer terminal.

[0051] The service access gateway is connected to the customer terminal through wired / wireless network, and the user can access the node server through the customer terminal to obtain the required video playback through the node server.

[0052] As shown in Figure 1As shown, the node server is also provided with multiple, 1, 2, 3...N represent N node servers arranged in parallel, all node servers are connected with the total storage server, the total storage server is provided with a disk storage unit, the disk storage unit is composed of a plurality of large-capacity storage disks, the node server sends the video file to the disk storage unit for saving. Each node server includes a video storage module and a video reading module, the video storage module is mainly used to establish a storage directory in the disk storage unit according to the number of the node server, and store the video file in the disk storage space under the storage directory. The storage disks in the disk storage unit of the total storage server can be mounted on multiple node servers through Ipsan and other methods. Each node server has its own independent number, and the video storage module establishes a corresponding storage directory in the disk storage unit according to the number. The storage directory is equivalent to an index file, which records the information of all video files uploaded to the disk storage space through the node server. The information includes camera ID, video start time node, video end time node, video duration information and frame rate data, etc. The node server can obtain the playback queue formed by the target video file according to the above information, and send it to the client terminal through the service access gateway. Multiple node servers establish multiple corresponding storage directories in the disk storage unit.

[0053] As shown in Figure 1 and Figure 3 The video storage module is arranged in the node server, and the readable and writable storage space can be established in the disk storage unit according to the number of the node server. The space is used to establish a storage directory, and the video file is stored in the readable and writable storage space under the storage directory. Specifically, the video storage module divides the storage area in the disk storage unit and sets it as a readable and writable storage space. The storage directory information is saved in the readable and writable storage space, and the video file to be stored is written into the readable and writable storage space. The storage directory information corresponds to the video file and serves as its information guide. For example, when 10 node servers are connected to a total storage server, the disk storage unit of the total storage server is divided into 10 storage spaces, which respectively correspond to 10 storage directories related to the node server ID. The video file uploaded by each node server is stored in its own storage directory, i.e. in the corresponding readable and writable storage space.

[0054] As shown in Figure 2As shown, the video reading module includes a disk scanning unit and a data source module. The disk scanning unit can load all relevant storage directories stored in the disk storage unit into the memory space of the node server where the disk scanning unit is located according to a preset time. For example, when scanning, the disk scanning unit searches for directories with a name similar to CCF_xxxx in the disk storage unit according to the playback instruction, where CCF represents the node server name, and the number "xxxx" after "_" represents the ID and video file number of the node server. After finding all storage directories meeting the playback requirements, the disk scanning unit loads them into the self-contained memory of the node server where the disk scanning unit is located. When scanning the disk, the scanning time interval can be set, for example, scanning once within 1 min, which can avoid too many video playback routes, too long scanning time, waste of scanning resources, or the time interval value selected in the range of 10 seconds to 2 minutes, which can better cooperate with the process operation of each module. The data source module is used to search for target video files meeting the requirements in all storage directories loaded into the memory of the node server itself according to the target information in the playback command. When the location of the target video file in the storage directory is found, the data source module establishes a read-only space in the readable and writable storage space corresponding to the non-node server, acquires the video file stored therein according to the video monitoring device ID, start node time and duration information, and determines the playback queue according to the duration coverage method. For example, when the playback command uploaded by a certain node server is to play back the video of No. 1 video monitoring device in the time period of 10:00-11:45, the data source module in the node server will search for the target video file in all storage directories. After obtaining the target video file, the start node time and duration information are extracted, and they are arranged according to the time node, for example, CCF_1001 is the video of No. 1 video monitoring device in the time period of 10:00-10:45, and CCF_1002 is the video of No. 1 video monitoring device in the time period of 10:45-11:45. Arranging the two videos obtains the playback queue. Then, the total duration information of the playback queue is compared with the total duration information in the playback request command. If the total duration of the playback queue completely covers the target duration in the playback command, the confirmation of the playback queue is completed. If the total duration of the playback queue cannot completely cover the target duration in the playback command, the target video file is searched again and the playback queue is obtained. If the playback queue is confirmed, the node server sends the confirmed playback queue to the service access gateway and then to the client terminal. The client terminal renders the received playback queue to form a playback picture.

[0055] Thus, any node server can obtain the complete time queue video playback requirement, and other node servers can still access the video file uploaded by the node server in the case of the current node server being offline.

[0056] Having described several embodiments of the disclosure, the above description is illustrative and not restrictive. Many variations and modifications will become apparent to those skilled in the art upon consideration of the disclosure. The terms used in this description are intended to be interpreted broadly and in a manner consistent with the principles of the present technology. The scope of the technology should be determined not with reference to the above description, but should instead be determined with reference to the appended claims, alongside the full scope of equivalents to which such claims are entitled.

Claims

1. A multi-storage server video storage and playback system, comprising multiple video surveillance devices, characterized in that: Also includes: A service access gateway, the service access gateway is used to identify the online status of the node server, connect the node server and the video surveillance device, and allocate a corresponding online node server to the video surveillance device; Multiple node servers, which are used to receive video surveillance device information and recording requests sent by the service access gateway; Pull real-time stream data for transcoding to obtain video files; Receive video playback instructions from the client terminal and send the video playback stream data to the client terminal; A general storage server, connected to the node server, for receiving, sending and storing video files; comprising a disk storage unit for storing video files; A video storage module is provided in the node server, and is used to receive the real-time code stream data, and transcode and save it as a video file; a storage directory is established in the disk storage unit according to the number of the node server, and the video file is stored in the disk storage space under the storage directory; A video reading module is provided in the node server and is used to search and read target video files in the disk storage space and organize all the target video files into a playback queue; The client terminal is connected to the service access gateway and is used to issue playback instructions, receive the playback queue, and render to form a playback screen.

2. A multi-storage server video storage and playback system according to claim 1, characterized in that: The video reading module includes a data source module, and the data source module is used to search and obtain a target video file according to a playback command, and add the target video file to a playback queue.

3. A multi-storage server video storage and playback system according to claim 2, characterized in that: The data source module includes a disk scanning unit, and the disk scanning unit is used to automatically scan all storage directories stored in the disk storage unit according to a preset time interval.

4. A method for storing and replaying video recordings on multiple storage servers, characterized in that: The method includes: S01. The video surveillance device is connected to the service access gateway. After receiving the recording request, the service access gateway allocates an online node server to the video surveillance device and sends the video surveillance device information and the recording request to the node server. S02. A video storage module is provided in the node server to receive real-time stream data, transcode and save it as a video file, and establish a storage directory in the disk storage unit of the main storage server according to the node server number, and send the video files received by the node server to the disk storage space under the established storage directory; S03. The client terminal sends a playback command to the node server through the service access gateway. The video reading module set in the node server searches all storage directories in the disk storage unit according to the playback command, obtains target video files in the storage directories, and organizes the target video files into a playback queue. S04. The node server sequentially reads the video files in the playback queue and transmits them to the client terminal. After receiving the video files, the client terminal decodes the video stream and then renders it to form a playback screen.

5. The method for storing and replaying video recordings on multiple storage servers according to claim 4, wherein: In step S02, a step of establishing a readable and writable storage space is also included, specifically: the video storage module divides a storage area in the disk storage unit and sets it as a readable and writable storage space.

6. A method for storing and replaying video recordings on multiple storage servers according to claim 5, characterized in that: When obtaining the target video file under the storage directory in step S03, it also includes a read-only storage space establishment step, specifically: the data source module establishes a read-only storage space in the disk storage unit, and the read-only storage space is used to obtain the target video file stored in the read-write storage space corresponding to the non-node server.

7. The method for storing and replaying video recordings on multiple storage servers according to claim 6, wherein: The data source module includes a disk scanning unit, which scans all storage directories stored in the disk storage unit at a preset time interval; the time interval value is selected in the range of 10 seconds to 2 minutes.

8. The method for storing and replaying video recordings on multiple storage servers according to claim 6, wherein: The S03 also includes a playback queue confirmation step: after the data source module obtains the target video file, it arranges all target video files in chronological order to obtain a playback queue; if the total duration of the playback queue completely covers the target duration in the playback command, the confirmation of the playback queue is completed; if the total duration of the playback queue cannot completely cover the target duration in the playback command, the target video file is searched again and the playback queue is obtained.

9. The method for storing and replaying video recordings on multiple storage servers according to claim 8, wherein: The order in which the data source module obtains the target video files in the storage directory is as follows: first, all target video files in the readable and writable storage space are obtained, and if a complete playback queue is obtained, the process is terminated; If the complete playback queue is not obtained, all target video files in the read-only storage space are obtained. If the complete playback queue is obtained, the process is terminated; if the complete playback queue is not obtained, a loop acquisition operation is performed.

Citation Information

Patent Citations

  • Storage method, device and system of video monitoring record

    CN104394382A

  • Distributed video monitoring storing system and method thereof

    CN104113735A

  • Cluster type photographing data storage system based on cloud storage

    CN106060173A