Distributed video management and control method and system based on private protocol

By loading private protocols in a distributed video recording system and uniformly managing the device, the existing system's inefficient video data transmission and processing are solved, efficient storage and accurate retrieval are achieved, and the reliable operation of the device and data security are ensured.

CN119743495AActive Publication Date: 2025-04-01HUIZHIAN INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411956947.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-29
Publication Date
2025-04-01
Estimated Expiration
2044-12-29

AI Technical Summary

Technical Problem

The existing distributed storage systems are difficult to use high-performance communication protocols to transmit video data, and there are inefficient problems in processing and retrieval of video data. They cannot flexibly control different video recording devices to convert video data streams, which reduces the retrieval and processing efficiency and accuracy of video data.

Method used

By loading the private protocol to the external interface layer, monitoring the connected distributed video recording device, identifying the target video recording device in a mobilized state, sending video configuration instructions to the target device to perform video recording tasks, and efficiently and uniformly manage the devices through the external interface layer, achieving efficient storage and accurate retrieval and processing of video recording data.

Benefits of technology

It realizes efficient storage and accurate retrieval and processing of video data, ensures the reliable operation of distributed video recording devices, and makes full use of storage space and ensures data security through adjustment of data storage strategies of hard disk devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119743495A_ABST
    Figure CN119743495A_ABST
Patent Text Reader

Abstract

The invention provides a distributed video recording management and control method and system based on a private protocol, and the method comprises the steps: loading the private protocol to an external interface layer, monitoring a distributed video recording device connected to the external interface layer, recognizing a target video recording device in an adjustable state, and transmitting a video recording configuration instruction to the target video recording device so as to execute a video recording task. Carrying out stream pulling from the target video equipment to obtain video stream data and storing the video stream data; the video playback layer is used for pushing the stored video stream data based on a playback request received by the external interface layer so as to execute a video playback task, so that efficient storage and accurate retrieval and processing of the video data are realized, and reliable operation of the distributed video equipment is ensured; and the hard disk device connected with the underlying library is checked, and video stream data storage state information in the hard disk device is determined, so that data storage strategy adjustment is performed on the hard disk device, the storage space of the hard disk device is fully utilized, and the video data storage security is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of video surveillance processing, and in particular to a distributed video recording control method and system based on a private protocol. Background Art

[0002] With the popularization of applications such as video security monitoring and drone monitoring, the storage demand for video data has increased dramatically. Traditional single-machine storage methods cannot meet the requirements of efficient storage and processing of large amounts of video data, so a distributed storage system is needed to expand the storage capacity and processing capabilities of video data. Existing distributed storage systems have difficulty using high-performance communication protocols such as gRPC for video data transmission, and have certain limitations in processing and retrieving video data. When it is necessary to retrieve a specific segment from a long video file, the specific segment can only be located by sequentially reading the entire video file, resulting in low retrieval efficiency. It can be seen that the existing distributed storage system cannot flexibly control different recording devices to convert recording data bitstreams, which reduces the efficiency and accuracy of recording data retrieval and processing, and cannot improve the storage security of recording data on hard disk devices. Summary of the invention

[0003] The purpose of the present invention is to provide a distributed video recording control method and system based on a private protocol, load the private protocol into the external interface layer, monitor the distributed video recording devices connected to the external interface layer, identify the target video recording device in an adjustable state, send the video recording configuration instruction to the target video recording device to execute the video recording task, and efficiently and uniformly manage the distributed video recording devices through the external interface layer, which is conducive to the flexible expansion of the storage capacity and processing capacity of the video recording data; pull the video stream data from the target video recording device and store the video stream data; based on the playback request received by the external interface layer, push the stored video stream data to execute the video playback task, realize the efficient storage and accurate retrieval and processing of the video data, and ensure the reliable operation of the distributed video recording device; also check the hard disk device connected to the bottom library to determine the video stream data storage status information in the hard disk device, so as to adjust the data storage strategy of the hard disk device, make full use of the storage space of the hard disk device and ensure the security of the video data storage.

[0004] The present invention is achieved through the following technical solutions:

[0005] The distributed video recording control method based on the private protocol includes:

[0006] Loading a private protocol into an external interface layer, monitoring distributed video recording devices connected to the external interface layer, and identifying a target video recording device in a movable state; based on a video recording request received by the external interface layer, sending a video recording configuration instruction to the target video recording device, so that the target video recording device executes a video recording task;

[0007] Based on the execution process information of the video recording task, the target video recording device is pulled to obtain video recording stream data, thereby storing the video recording stream data; based on the playback request received by the external interface layer, the stored video recording stream data is pushed to execute the video playback task;

[0008] The hard disk device connected to the bottom library is checked to determine the video stream data storage status information in the hard disk device; based on the video stream data storage status information, the data storage strategy of the hard disk device is adjusted.

[0009] Optionally, the private protocol is loaded into the external interface layer, the distributed video recording devices connected to the external interface layer are monitored, and the target video recording device in the movable state is identified; based on the video recording request received by the external interface layer, a video recording configuration instruction is sent to the target video recording device, so that the target video recording device performs the video recording task, including:

[0010] The gRPC protocol and the RTSP protocol are loaded into the external interface layer, and the distributed video recording devices connected to the external interface layer are monitored to obtain the available video recording operation resource information of all video recording devices; based on the available video recording operation resource information, it is determined whether the video recording device is in a video recording operation overload state; if not, the video recording device is determined as a target video recording device in an adjustable state; if so, the video recording device is not determined as a target video recording device in an adjustable state;

[0011] The video recording request received by the external interface layer is parsed and processed to determine the video recording parameters; based on the video recording parameters, a video recording configuration instruction is sent to the target video recording device to enable the target video recording device to start the hardware and software to execute the video recording task; wherein the video recording configuration instruction includes a video recording device hardware control instruction and a video recording device software control instruction.

[0012] Optionally, judging whether the video recording device is in a video recording operation overload state based on the available video recording operation resource information includes:

[0013] Real-time monitoring of the operating parameters of the video recording device, wherein the operating parameters of the video recording device include the number of video streams, video frame rate, network bandwidth utilization, memory utilization, and overload duration;

[0014] Obtaining a first load state evaluation coefficient using the number of video streams, the video frame rate, and the duration of overload;

[0015] The first load state evaluation coefficient is obtained by the following formula:

[0016]

[0017] Where S represents the first load state evaluation coefficient; n represents the number of unit times that the video recording device has been running; G i represents the number of video streams corresponding to the i-th unit time; P zi represents the video frame rate corresponding to the i-th unit time; T i represents the duration of overload corresponding to the i-th unit time; T c Indicates the preset overload continuous duration reference value; G b represents the standard deviation of the number of video streams corresponding to n unit time; T b It represents the standard deviation of the duration of overload corresponding to n units of time;

[0018] Obtaining a compensation coefficient using the network bandwidth utilization and memory utilization;

[0019] The compensation coefficient is obtained by the following formula:

[0020]

[0021] Where, J represents the compensation coefficient; n represents the number of unit time that the video recording device has been running; B i represents the network bandwidth utilization rate corresponding to the i-th unit time; P ni represents the memory utilization corresponding to the i-th unit time; P zb represents the standard deviation of the video frame rate corresponding to the i-th unit time; G b Indicates the standard deviation of the number of video streams corresponding to n unit time;

[0022] Obtaining a load evaluation parameter using the compensation coefficient and a first load state evaluation coefficient;

[0023] The load evaluation parameter is obtained by the following formula:

[0024]

[0025] Wherein, F represents the load evaluation parameter; F0 represents the preset load evaluation parameter basic value; J represents the compensation coefficient; S represents the first load state evaluation coefficient;

[0026] comparing the load evaluation parameter with a preset evaluation parameter threshold;

[0027] When the load evaluation parameter exceeds a preset evaluation parameter threshold, it is determined that the video recording device is in a video recording operation overload state.

[0028] Optionally, based on the execution process information of the video recording task, a stream pulling operation is performed on the target video recording device to obtain video stream data, thereby storing the video stream data; based on the playback request received by the external interface layer, a stream pushing operation is performed on the stored video stream data, thereby executing the video playback task, including:

[0029] Based on the execution process information of the video recording task, determine the recording time axis change information of the video recording task; based on the recording time axis change information, determine the start time information of the stream pulling operation for the target video recording device; based on the start time information of the stream pulling operation, generate the RTSP URL of the stream pulling operation, thereby pulling the stream to obtain the video stream data, and store the video stream data in the hardware device;

[0030] The playback request received by the external interface layer is parsed and processed to obtain the RTSP URL address of the video stream data to be played back; the RTSP URL address is compared with the RTSP URL address of the stored video stream data, and a streaming operation is performed on at least part of the video stream data in the stored video stream data, so as to execute the video playback task.

[0031] Optionally, the hard disk device connected to the bottom library is checked to determine the video stream data storage status information in the hard disk device; and based on the video stream data storage status information, the data storage strategy of the hard disk device is adjusted, including:

[0032] Check the storage intervals of the hard disk device connected to the bottom library to obtain the video stream data storage status information of each storage interval in the hard disk device; wherein the video stream data storage status information includes the video stream data storage capacity and video stream data storage time of each storage interval;

[0033] Based on the video stream data storage status information, determine the storage priority of newly added video stream data in all storage intervals in the hard disk device; based on the storage priority of newly added video stream data and the attribute information of the video stream data currently needed to be stored in the hard disk device, format at least one storage interval and perform new video stream data storage processing.

[0034] The distributed video recording control system based on private protocol includes:

[0035] A video recording device identification module, used to load a private protocol into the external interface layer, monitor the distributed video recording devices connected to the external interface layer, and identify the target video recording device in a movable state;

[0036] A video recording task execution control module, configured to send a video recording configuration instruction to the target video recording device based on the video recording request received by the external interface layer, so that the target video recording device executes the video recording task;

[0037] A data stream pulling and storage module, used to pull the stream from the target video recording device based on the execution process information of the video recording task, obtain the video stream data, and store the video stream data;

[0038] A data streaming and playback module, used to perform a streaming operation on the stored video stream data based on the playback request received by the external interface layer, so as to execute the video playback task;

[0039] A hard disk device checking module, used to check the hard disk device connected to the bottom library, and determine the storage status information of the video stream data in the hard disk device;

[0040] The data storage strategy adjustment module is used to adjust the data storage strategy of the hard disk device based on the video stream data storage status information.

[0041] Optionally, the video recording device identification module is used to load a private protocol into the external interface layer, monitor the distributed video recording devices connected to the external interface layer, and identify the target video recording device in a movable state, including:

[0042] The gRPC protocol and the RTSP protocol are loaded into the external interface layer, and the distributed video recording devices connected to the external interface layer are monitored to obtain the available video recording operation resource information of all video recording devices; based on the available video recording operation resource information, it is determined whether the video recording device is in a video recording operation overload state; if not, the video recording device is determined as a target video recording device in an adjustable state; if so, the video recording device is not determined as a target video recording device in an adjustable state;

[0043] The video recording task execution control module is used to send a video recording configuration instruction to the target video recording device based on the video recording request received by the external interface layer, so that the target video recording device executes the video recording task, including:

[0044] The video recording request received by the external interface layer is parsed and processed to determine the video recording parameters; based on the video recording parameters, a video recording configuration instruction is sent to the target video recording device to enable the target video recording device to start the hardware and software to execute the video recording task; wherein the video recording configuration instruction includes a video recording device hardware control instruction and a video recording device software control instruction.

[0045] Optionally, judging whether the video recording device is in a video recording operation overload state based on the available video recording operation resource information includes:

[0046] Real-time monitoring of the operating parameters of the video recording device, wherein the operating parameters of the video recording device include the number of video streams, video frame rate, network bandwidth utilization, memory utilization, and overload duration;

[0047] Obtaining a first load state evaluation coefficient using the number of video streams, the video frame rate, and the duration of overload;

[0048] The first load state evaluation coefficient is obtained by the following formula:

[0049]

[0050] Where S represents the first load state evaluation coefficient; n represents the number of unit times that the video recording device has been running; G i represents the number of video streams corresponding to the i-th unit time; P zi represents the video frame rate corresponding to the i-th unit time; T i represents the duration of overload corresponding to the i-th unit time; T c Indicates the preset overload continuous duration reference value; G b represents the standard deviation of the number of video streams corresponding to n unit time; T b It represents the standard deviation of the duration of overload corresponding to n units of time;

[0051] Obtaining a compensation coefficient using the network bandwidth utilization and memory utilization;

[0052] The compensation coefficient is obtained by the following formula:

[0053]

[0054] Where, J represents the compensation coefficient; n represents the number of unit time that the video recording device has been running; B i represents the network bandwidth utilization rate corresponding to the i-th unit time; P ni represents the memory utilization corresponding to the i-th unit time; P zb represents the standard deviation of the video frame rate corresponding to the i-th unit time; G b Indicates the standard deviation of the number of video streams corresponding to n unit time;

[0055] Obtaining a load evaluation parameter using the compensation coefficient and a first load state evaluation coefficient;

[0056] The load evaluation parameter is obtained by the following formula:

[0057]

[0058] Wherein, F represents the load evaluation parameter; F0 represents the preset load evaluation parameter basic value; J represents the compensation coefficient; S represents the first load state evaluation coefficient;

[0059] comparing the load evaluation parameter with a preset evaluation parameter threshold;

[0060] When the load evaluation parameter exceeds a preset evaluation parameter threshold, it is determined that the video recording device is in a video recording operation overload state.

[0061] Optionally, the data stream pulling and storage module is used to pull the stream from the target video recording device based on the execution process information of the video recording task to obtain the video stream data, thereby storing the video stream data, including:

[0062] Based on the execution process information of the video recording task, determine the recording time axis change information of the video recording task; based on the recording time axis change information, determine the start time information of the stream pulling operation for the target video recording device; based on the start time information of the stream pulling operation, generate the RTSP URL of the stream pulling operation, thereby pulling the stream to obtain the video stream data, and store the video stream data in the hardware device;

[0063] The data push and playback module is used to push the stored video stream data based on the playback request received by the external interface layer, so as to perform the video playback task, including:

[0064] The playback request received by the external interface layer is parsed and processed to obtain the RTSP URL address of the video stream data to be played back; the RTSP URL address is compared with the RTSP URL address of the stored video stream data, and a streaming operation is performed on at least part of the video stream data in the stored video stream data, so as to execute the video playback task.

[0065] Optionally, the hard disk device checking module is used to check the hard disk device connected to the bottom library to determine the video stream data storage status information in the hard disk device, including:

[0066] Check the storage intervals of the hard disk device connected to the bottom library to obtain the video stream data storage status information of each storage interval in the hard disk device; wherein the video stream data storage status information includes the video stream data storage capacity and video stream data storage time of each storage interval;

[0067] The data storage strategy adjustment module is used to adjust the data storage strategy of the hard disk device based on the video stream data storage state information, including:

[0068] Based on the video stream data storage status information, determine the storage priority of newly added video stream data in all storage intervals in the hard disk device; based on the storage priority of newly added video stream data and the attribute information of the video stream data currently needed to be stored in the hard disk device, format at least one storage interval and perform new video stream data storage processing.

[0069] Compared with the prior art, the present invention has the following beneficial effects:

[0070] The distributed video recording control method and system based on the private protocol provided in the present application load the private protocol into the external interface layer, monitor the distributed video recording devices connected to the external interface layer, identify the target video recording devices in the adjustable state, send the video recording configuration instructions to the target video recording devices to execute the video recording task, and efficiently and uniformly manage the distributed video recording devices through the external interface layer, which is conducive to the flexible expansion of the storage capacity and processing power of the video recording data; pull the video stream data from the target video recording device and store the video stream data; based on the playback request received by the external interface layer, push the stored video stream data to execute the video playback task, realize the efficient storage and accurate retrieval and processing of the video data, and ensure the reliable operation of the distributed video recording devices; also check the hard disk devices connected to the underlying library to determine the video stream data storage status information in the hard disk device, so as to adjust the data storage strategy of the hard disk device, make full use of the storage space of the hard disk device and ensure the security of the video data storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:

[0072] Figure 1 A flow chart of a distributed video recording control method based on a private protocol provided by the present invention.

[0073] Figure 2 This is a schematic diagram of the structure of a distributed video recording control system based on a private protocol provided by the present invention. DETAILED DESCRIPTION

[0074] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some structures related to the present application are shown in the accompanying drawings, rather than all structures. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0075] The terms "including" and "having" and any variations thereof in this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0076] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0077] See also Figure 1 As shown, an embodiment of the present application provides a distributed video recording control method based on a private protocol. The distributed video recording control method based on a private protocol includes:

[0078] Load the private protocol into the external interface layer, monitor the distributed video recording devices connected to the external interface layer, and identify the target video recording device in the adjustable state; based on the video recording request received by the external interface layer, send the video recording configuration instruction to the target video recording device, so that the target video recording device executes the video recording task;

[0079] Based on the execution process information of the video task, the target video device is pulled to obtain video stream data, and the video stream data is stored; based on the playback request received by the external interface layer, the stored video stream data is pushed to execute the video playback task;

[0080] The hard disk device connected to the bottom library is checked to determine the video stream data storage status information in the hard disk device; based on the video stream data storage status information, the data storage strategy of the hard disk device is adjusted.

[0081] The beneficial effects of the above-mentioned embodiments are as follows: the distributed video recording control method based on the private protocol loads the private protocol into the external interface layer, monitors the distributed video recording devices connected to the external interface layer, identifies the target video recording devices in the adjustable state, sends the video recording configuration instructions to the target video recording devices to execute the video recording task, and efficiently and uniformly manages the distributed video recording devices through the external interface layer, which is conducive to the flexible expansion of the storage capacity and processing capacity of the video recording data; pulls the video stream data from the target video recording device and stores the video stream data; based on the playback request received by the external interface layer, pushes the stored video stream data to execute the video playback task, realizes the efficient storage and accurate retrieval and processing of the video data, and ensures the reliable operation of the distributed video recording devices; also checks the hard disk devices connected to the underlying library to determine the video stream data storage status information in the hard disk device, so as to adjust the data storage strategy of the hard disk device, make full use of the storage space of the hard disk device and ensure the security of the video data storage.

[0082] In another embodiment, a private protocol is loaded into an external interface layer, and distributed video recording devices connected to the external interface layer are monitored to identify a target video recording device in a movable state; based on a video recording request received by the external interface layer, a video recording configuration instruction is sent to the target video recording device to enable the target video recording device to perform a video recording task, including:

[0083] The gRPC protocol and the RTSP protocol are loaded into the external interface layer, and the distributed video recording devices connected to the external interface layer are monitored to obtain the available video recording operation resource information of all video recording devices; based on the available video recording operation resource information, it is determined whether the video recording device is in a video recording operation overload state; if not, the video recording device is determined as a target video recording device in a movable state; if so, the video recording device is not determined as a target video recording device in a movable state;

[0084] The video recording request received by the external interface layer is parsed and processed to determine the video recording parameters; based on the video recording parameters, a video recording configuration instruction is sent to the target video recording device to enable the target video recording device to start the hardware and software to execute the video recording task; wherein the video recording configuration instruction includes a video recording device hardware control instruction and a video recording device software control instruction.

[0085] The beneficial effects of the above embodiments are that the distributed video storage system mainly includes three structural layers: external interface layer, core service and underlying library; wherein, the external interface layer is compatible with and supports gRPC protocol and RTSP protocol, and realizes communication and interaction of the external interface layer through gRPC protocol and RTSP protocol; the core service is used to provide VSS_gRPC external interface service, VSS_config configuration management service, VSS_ss storage service, VSS_storage hard disk management service, VSS_rtsp service; the underlying library is used to provide libFS file system operation and libhd hard disk operation. In order to perform comprehensive bitstream conversion of video data for distributed video recording devices, the gRPC protocol and RTSP protocol are loaded into the external interface layer, so that it can be connected with the private protocol of distributed video recording devices, and the operation reliability of distributed video recording devices is improved. Then the distributed video recording devices connected to the external interface layer are monitored to obtain the available video recording operation resource information of all video recording devices; wherein, the available video recording operation resource information may include but is not limited to the amount of computing power resources that the video recording device can use during the video recording operation. Then, a threshold comparison is performed on the available video operation resource information to determine whether the video recording device is in a video recording operation overload state, so as to screen and identify the target video recording device in a movable state from the distributed video recording devices, so as to perform precise control on the target video recording device in the future. In addition, the video recording request received by the external interface layer is parsed and processed to determine the video recording parameters; wherein, the video recording parameters may include but are not limited to the spatial orientation of the video recording, the shooting focal length, the field of view range and other parameters. Then, based on the video recording parameters, a video recording configuration instruction is sent to the target video recording device, so that the target video recording device starts the hardware and software to perform the video recording task; wherein, the hardware may be but is not limited to the optical lens of the target video recording device, and the software may be but is not limited to the shooting operation software installed in the target video recording device (such as shooting anti-shake control software, etc.), so that the target video recording device is fully controlled at the hardware and software levels.

[0086] In another embodiment, judging whether the video recording device is in a video recording operation overload state based on the available video recording operation resource information includes:

[0087] Real-time monitoring of the operating parameters of the video recording device, wherein the operating parameters of the video recording device include the number of video streams, video frame rate, network bandwidth utilization, memory utilization, and overload duration;

[0088] Obtaining a first load state evaluation coefficient using the number of video streams, the video frame rate, and the duration of overload;

[0089] The first load state evaluation coefficient is obtained by the following formula:

[0090]

[0091] Where S represents the first load state evaluation coefficient; n represents the number of unit times that the video recording device has been running; G i represents the number of video streams corresponding to the i-th unit time; P zi represents the video frame rate corresponding to the i-th unit time; T i represents the duration of overload corresponding to the i-th unit time; T c Indicates the preset overload continuous duration reference value; G b represents the standard deviation of the number of video streams corresponding to n unit time; T b It represents the standard deviation of the duration of overload corresponding to n units of time;

[0092] Obtaining a compensation coefficient using the network bandwidth utilization and memory utilization;

[0093] The compensation coefficient is obtained by the following formula:

[0094]

[0095] Where, J represents the compensation coefficient; n represents the number of unit time that the video recording device has been running; B i represents the network bandwidth utilization rate corresponding to the i-th unit time; P ni represents the memory utilization corresponding to the i-th unit time; P zb represents the standard deviation of the video frame rate corresponding to the i-th unit time; G b Indicates the standard deviation of the number of video streams corresponding to n unit time;

[0096] Obtaining a load evaluation parameter using the compensation coefficient and a first load state evaluation coefficient;

[0097] The load evaluation parameter is obtained by the following formula:

[0098]

[0099] Wherein, F represents the load evaluation parameter; F0 represents the preset load evaluation parameter basic value; J represents the compensation coefficient; S represents the first load state evaluation coefficient;

[0100] comparing the load evaluation parameter with a preset evaluation parameter threshold;

[0101] When the load evaluation parameter exceeds a preset evaluation parameter threshold, it is determined that the video recording device is in a video recording operation overload state.

[0102] The beneficial effect of the above embodiment is that by real-time monitoring of the operating parameters of the video recording device (such as the number of video streams, video frame rate, network bandwidth utilization, memory utilization and overload duration), the technical solution can grasp the operating status of the video recording device in real time. Using these parameters, the first load state evaluation coefficient and the compensation coefficient are calculated by the above formula, so as to accurately evaluate the load state of the video recording device. This accurate evaluation helps to timely discover the possible overload problems of the device. The technical solution not only considers the number of video streams and the video frame rate, which are the two key factors that directly affect the video quality, but also introduces parameters such as network bandwidth utilization, memory utilization and overload duration. This comprehensive consideration method can more comprehensively reflect the overall load state of the video recording device. By calculating the standard deviation of the number of video streams and the standard deviation of the overload duration, as well as the standard deviation of the video frame rate, the solution can take into account the fluctuation of the load in different time periods, so as to more accurately evaluate the load stability of the device. The formulas and parameters in the technical solution (such as the preset overload continuous duration reference value, the preset load evaluation parameter basic value, etc.) can be adjusted according to actual conditions to meet the needs of different video recording devices and different application scenarios. By setting the evaluation parameter threshold, the solution can flexibly determine whether the recording device is in an overload state, so as to take corresponding measures in time to avoid equipment damage or service quality degradation. When the load evaluation parameter exceeds the preset evaluation parameter threshold, the technical solution can determine that the recording device is in an overload state of recording operation and issue an early warning. This helps to discover and solve problems in a timely manner and prevent equipment from being damaged due to long-term overload operation. Through this early warning mechanism, operation and maintenance personnel can take measures in advance (such as adding equipment, optimizing network bandwidth, upgrading memory, etc.) to ensure the stable operation and high-quality service of the recording equipment.

[0103] In summary, the technical effects of this technical solution in terms of performance indicators are mainly reflected in real-time monitoring and accurate evaluation, comprehensive consideration of multiple factors, flexibility and adaptability, early warning and prevention, etc. These effects have jointly improved the operating efficiency and stability of the recording equipment and reduced the equipment failure rate and maintenance costs.

[0104] In another embodiment, based on the execution process information of the video recording task, a stream pulling operation is performed on the target video recording device to obtain video stream data, thereby storing the video stream data; based on the playback request received by the external interface layer, a stream pushing operation is performed on the stored video stream data, thereby executing the video playback task, including:

[0105] Based on the execution process information of the video recording task, the recording time axis change information of the video recording task is determined; based on the recording time axis change information, the start time information of the stream pulling operation for the target video recording device is determined; based on the start time information of the stream pulling operation, an RTSP URL of the stream pulling operation is generated, and the video stream data is obtained by stream pulling, and the video stream data is stored in the hardware device;

[0106] The playback request received by the external interface layer is parsed and processed to obtain the RTSP URL address of the video stream data to be played back; the RTSP URL address is compared with the RTSP URL address of the stored video stream data, and a streaming operation is performed on at least part of the video stream data in the stored video stream data, so as to execute the video playback task.

[0107] The beneficial effect of the above embodiment is that the target video recording device executes the video recording task by executing the corresponding recording process in chronological order. In order to orderly pull and store the video data generated during the execution of the video recording task, the recording time axis change information of the video recording task is determined based on the execution process information of the video recording task, wherein the recording time axis change information may include but is not limited to the start and end time information corresponding to each execution process included in the video recording task; then based on the recording time axis change information, the start time information of the pull operation of the target video recording device is determined, thereby generating the RTSP URL of the pull operation, thereby pulling the video stream data, and storing the video stream data in the hardware device, and the video stream data generated by the video recording device is identified by generating the RTSP URL, so as to facilitate the subsequent rapid query of the stored video stream data. In addition, the playback request received by the external interface layer is parsed and processed to obtain the RTSP URL address of the video stream data to be played back; the RTSP URL address is compared with the RTSP URL address of the stored video stream data, and the push operation is performed on at least part of the video stream data in the stored video stream data, thereby executing the video playback task, and realizing efficient storage and accurate retrieval and processing of the video stream data.

[0108] In another embodiment, the hard disk device connected to the bottom library is checked to determine the video stream data storage status information in the hard disk device; based on the video stream data storage status information, the data storage strategy of the hard disk device is adjusted, including:

[0109] Check the storage intervals of the hard disk device connected to the bottom library to obtain the video stream data storage status information of all storage intervals in the hard disk device; wherein the video stream data storage status information includes the video stream data storage capacity and video stream data storage time of each storage interval;

[0110] Based on the video stream data storage status information, determine the storage priority of newly added video stream data in all storage intervals in the hard disk device; based on the storage priority of newly added video stream data and the attribute information of the video stream data currently needed to be stored in the hard disk device, format at least one storage interval and perform new video stream data storage processing.

[0111] The beneficial effect of the above embodiment is that the storage interval of the hard disk device connected to the bottom library is checked to obtain the video stream data storage capacity and video stream data storage time of each storage interval in the hard disk device, so as to realize the comprehensive and accurate data storage status query of all storage intervals of the hard disk device. In addition, based on the video stream data storage status information, the newly added video stream data storage priority of all storage intervals in the hard disk device is determined. Generally speaking, if the video stream data storage capacity of a certain storage interval is smaller or the video stream data storage time is longer, the corresponding newly added video stream data storage priority is higher, that is, when newly added video stream data needs to be stored, the newly added video stream data needs to be stored will be stored in the storage interval with the highest priority first; then, based on the newly added video stream data storage priority and the attribute information of the video stream data currently needed to be stored by the hard disk device (such as the data volume of the video stream data), at least one storage interval is formatted and the newly added video stream data storage is processed, so that the corresponding storage interval can be formatted to form free storage capacity to store the newly added video stream data, so as to realize the efficient storage of the video stream data.

[0112] See also Figure 2 As shown, an embodiment of the present application provides a distributed video recording control system based on a private protocol. The distributed video recording control system based on a private protocol includes:

[0113] A video recording device identification module is used to load a private protocol into the external interface layer, monitor the distributed video recording devices connected to the external interface layer, and identify the target video recording device in a movable state;

[0114] A video recording task execution control module, configured to send a video recording configuration instruction to the target video recording device based on the video recording request received by the external interface layer, so that the target video recording device executes the video recording task;

[0115] The data stream pulling and storage module is used to pull the stream of the target video recording device based on the execution process information of the video recording task, obtain the video stream data, and store the video stream data;

[0116] The data push and playback module is used to push the stored video stream data based on the playback request received by the external interface layer, so as to perform the video playback task;

[0117] A hard disk device checking module is used to check the hard disk device connected to the bottom library and determine the storage status information of the video stream data in the hard disk device;

[0118] The data storage strategy adjustment module is used to adjust the data storage strategy of the hard disk device based on the video stream data storage state information.

[0119] The beneficial effects of the above-mentioned embodiments are as follows: the distributed video recording control system based on the private protocol loads the private protocol into the external interface layer, monitors the distributed video recording devices connected to the external interface layer, identifies the target video recording devices in the adjustable state, sends the video recording configuration instructions to the target video recording devices to execute the video recording task, and efficiently and uniformly manages the distributed video recording devices through the external interface layer, which is conducive to the flexible expansion of the storage capacity and processing capacity of the video recording data; pulls the video stream data from the target video recording device and stores the video stream data; based on the playback request received by the external interface layer, pushes the stored video stream data to execute the video playback task, realizes the efficient storage and accurate retrieval and processing of the video data, and ensures the reliable operation of the distributed video recording devices; also checks the hard disk devices connected to the underlying library to determine the video stream data storage status information in the hard disk device, so as to adjust the data storage strategy of the hard disk device, make full use of the storage space of the hard disk device and ensure the security of the video data storage.

[0120] In another embodiment, the video recording device identification module is used to load a private protocol into an external interface layer, monitor the distributed video recording devices connected to the external interface layer, and identify the target video recording device in a movable state, including:

[0121] The gRPC protocol and the RTSP protocol are loaded into the external interface layer, and the distributed video recording devices connected to the external interface layer are monitored to obtain the available video recording operation resource information of all video recording devices; based on the available video recording operation resource information, it is determined whether the video recording device is in a video recording operation overload state; if not, the video recording device is determined as a target video recording device in a movable state; if so, the video recording device is not determined as a target video recording device in a movable state;

[0122] The video recording task execution control module is used to send a video recording configuration instruction to the target video recording device based on the video recording request received by the external interface layer, so that the target video recording device executes the video recording task, including:

[0123] The video recording request received by the external interface layer is parsed and processed to determine the video recording parameters; based on the video recording parameters, a video recording configuration instruction is sent to the target video recording device to enable the target video recording device to start the hardware and software to execute the video recording task; wherein the video recording configuration instruction includes a video recording device hardware control instruction and a video recording device software control instruction.

[0124] The beneficial effects of the above embodiments are that the distributed video storage system mainly includes three structural layers: external interface layer, core service and underlying library; wherein, the external interface layer is compatible with and supports gRPC protocol and RTSP protocol, and realizes communication and interaction of the external interface layer through gRPC protocol and RTSP protocol; the core service is used to provide VSS_gRPC external interface service, VSS_config configuration management service, VSS_ss storage service, VSS_storage hard disk management service, VSS_rtsp service; the underlying library is used to provide libFS file system operation and libhd hard disk operation. In order to perform comprehensive bitstream conversion of video data for distributed video recording devices, the gRPC protocol and RTSP protocol are loaded into the external interface layer, so that it can be connected with the private protocol of distributed video recording devices, and the operation reliability of distributed video recording devices is improved. Then the distributed video recording devices connected to the external interface layer are monitored to obtain the available video recording operation resource information of all video recording devices; wherein, the available video recording operation resource information may include but is not limited to the amount of computing power resources that the video recording device can use during the video recording operation. Then, a threshold comparison is performed on the available video operation resource information to determine whether the video recording device is in a video recording operation overload state, so as to screen and identify the target video recording device in a movable state from the distributed video recording devices, so as to perform precise control on the target video recording device in the future. In addition, the video recording request received by the external interface layer is parsed and processed to determine the video recording parameters; wherein, the video recording parameters may include but are not limited to the spatial orientation of the video recording, the shooting focal length, the field of view range and other parameters. Then, based on the video recording parameters, a video recording configuration instruction is sent to the target video recording device, so that the target video recording device starts the hardware and software to perform the video recording task; wherein, the hardware may be but is not limited to the optical lens of the target video recording device, and the software may be but is not limited to the shooting operation software installed in the target video recording device (such as shooting anti-shake control software, etc.), so that the target video recording device is fully controlled at the hardware and software levels.

[0125] In another embodiment, judging whether the video recording device is in a video recording operation overload state based on the available video recording operation resource information includes:

[0126] Real-time monitoring of the operating parameters of the video recording device, wherein the operating parameters of the video recording device include the number of video streams, video frame rate, network bandwidth utilization, memory utilization, and overload duration;

[0127] Obtaining a first load state evaluation coefficient using the number of video streams, the video frame rate, and the duration of overload;

[0128] The first load state evaluation coefficient is obtained by the following formula:

[0129]

[0130] Where S represents the first load state evaluation coefficient; n represents the number of unit times that the video recording device has been running; G i represents the number of video streams corresponding to the i-th unit time; P zi represents the video frame rate corresponding to the i-th unit time; T i represents the duration of overload corresponding to the i-th unit time; T c Indicates the preset overload continuous duration reference value; G b represents the standard deviation of the number of video streams corresponding to n unit time; T b It represents the standard deviation of the duration of overload corresponding to n units of time;

[0131] Obtaining a compensation coefficient using the network bandwidth utilization and memory utilization;

[0132] The compensation coefficient is obtained by the following formula:

[0133]

[0134] Where, J represents the compensation coefficient; n represents the number of unit time that the video recording device has been running; B i represents the network bandwidth utilization rate corresponding to the i-th unit time; P ni represents the memory utilization corresponding to the i-th unit time; P zb represents the standard deviation of the video frame rate corresponding to the i-th unit time; G b Indicates the standard deviation of the number of video streams corresponding to n unit time;

[0135] Obtaining a load evaluation parameter using the compensation coefficient and a first load state evaluation coefficient;

[0136] The load evaluation parameter is obtained by the following formula:

[0137]

[0138] Wherein, F represents the load evaluation parameter; F0 represents the preset load evaluation parameter basic value; J represents the compensation coefficient; S represents the first load state evaluation coefficient;

[0139] comparing the load evaluation parameter with a preset evaluation parameter threshold;

[0140] When the load evaluation parameter exceeds a preset evaluation parameter threshold, it is determined that the video recording device is in a video recording operation overload state.

[0141] The beneficial effect of the above embodiment is that by real-time monitoring of the operating parameters of the video recording device (such as the number of video streams, video frame rate, network bandwidth utilization, memory utilization and overload duration), the technical solution can grasp the operating status of the video recording device in real time. Using these parameters, the first load state evaluation coefficient and the compensation coefficient are calculated by the above formula, so as to accurately evaluate the load state of the video recording device. This accurate evaluation helps to timely discover the possible overload problems of the device. The technical solution not only considers the number of video streams and the video frame rate, which are the two key factors that directly affect the video quality, but also introduces parameters such as network bandwidth utilization, memory utilization and overload duration. This comprehensive consideration method can more comprehensively reflect the overall load state of the video recording device. By calculating the standard deviation of the number of video streams and the standard deviation of the overload duration, as well as the standard deviation of the video frame rate, the solution can take into account the fluctuation of the load in different time periods, so as to more accurately evaluate the load stability of the device. The formulas and parameters in the technical solution (such as the preset overload continuous duration reference value, the preset load evaluation parameter basic value, etc.) can be adjusted according to actual conditions to meet the needs of different video recording devices and different application scenarios. By setting the evaluation parameter threshold, the solution can flexibly determine whether the recording device is in an overload state, so as to take corresponding measures in time to avoid equipment damage or service quality degradation. When the load evaluation parameter exceeds the preset evaluation parameter threshold, the technical solution can determine that the recording device is in an overload state of recording operation and issue an early warning. This helps to discover and solve problems in a timely manner and prevent equipment from being damaged due to long-term overload operation. Through this early warning mechanism, operation and maintenance personnel can take measures in advance (such as adding equipment, optimizing network bandwidth, upgrading memory, etc.) to ensure the stable operation and high-quality service of the recording equipment.

[0142] In summary, the technical effects of this technical solution in terms of performance indicators are mainly reflected in real-time monitoring and accurate evaluation, comprehensive consideration of multiple factors, flexibility and adaptability, early warning and prevention, etc. These effects have jointly improved the operating efficiency and stability of the recording equipment and reduced the equipment failure rate and maintenance costs.

[0143] In another embodiment, the data stream pulling and storage module is used to pull the stream of the target video recording device based on the execution process information of the video recording task to obtain the video stream data, thereby storing the video stream data, including:

[0144] Based on the execution process information of the video recording task, the recording time axis change information of the video recording task is determined; based on the recording time axis change information, the start time information of the stream pulling operation for the target video recording device is determined; based on the start time information of the stream pulling operation, an RTSP URL of the stream pulling operation is generated, and the video stream data is obtained by stream pulling, and the video stream data is stored in the hardware device;

[0145] The data push and playback module is used to push the stored video stream data based on the playback request received by the external interface layer, so as to perform the video playback task, including:

[0146] The playback request received by the external interface layer is parsed and processed to obtain the RTSP URL address of the video stream data to be played back; the RTSP URL address is compared with the RTSP URL address of the stored video stream data, and a streaming operation is performed on at least part of the video stream data in the stored video stream data, so as to execute the video playback task.

[0147] The beneficial effect of the above embodiment is that the target video recording device executes the video recording task by executing the corresponding recording process in chronological order. In order to orderly pull and store the video data generated during the execution of the video recording task, the recording time axis change information of the video recording task is determined based on the execution process information of the video recording task, wherein the recording time axis change information may include but is not limited to the start and end time information corresponding to each execution process included in the video recording task; then based on the recording time axis change information, the start time information of the pull operation of the target video recording device is determined, thereby generating the RTSP URL of the pull operation, thereby pulling the video stream data, and storing the video stream data in the hardware device, and the video stream data generated by the video recording device is identified by generating the RTSP URL, so as to facilitate the subsequent rapid query of the stored video stream data. In addition, the playback request received by the external interface layer is parsed and processed to obtain the RTSP URL address of the video stream data to be played back; the RTSP URL address is compared with the RTSP URL address of the stored video stream data, and the push operation is performed on at least part of the video stream data in the stored video stream data, thereby executing the video playback task, and realizing efficient storage and accurate retrieval and processing of the video stream data.

[0148] In another embodiment, the hard disk device checking module is used to check the hard disk device connected to the bottom library to determine the video stream data storage status information in the hard disk device, including:

[0149] Check the storage intervals of the hard disk device connected to the bottom library to obtain the video stream data storage status information of all storage intervals in the hard disk device; wherein the video stream data storage status information includes the video stream data storage capacity and video stream data storage time of each storage interval;

[0150] The data storage strategy adjustment module is used to adjust the data storage strategy of the hard disk device based on the video stream data storage state information, including:

[0151] Based on the video stream data storage status information, determine the storage priority of newly added video stream data in all storage intervals in the hard disk device; based on the storage priority of newly added video stream data and the attribute information of the video stream data currently needed to be stored in the hard disk device, format at least one storage interval and perform new video stream data storage processing.

[0152] The beneficial effect of the above embodiment is that the storage interval of the hard disk device connected to the bottom library is checked to obtain the video stream data storage capacity and video stream data storage time of each storage interval in the hard disk device, so as to realize the comprehensive and accurate data storage status query of all storage intervals of the hard disk device. In addition, based on the video stream data storage status information, the newly added video stream data storage priority of all storage intervals in the hard disk device is determined. Generally speaking, if the video stream data storage capacity of a certain storage interval is smaller or the video stream data storage time is longer, the corresponding newly added video stream data storage priority is higher, that is, when newly added video stream data needs to be stored, the newly added video stream data needs to be stored will be stored in the storage interval with the highest priority first; then, based on the newly added video stream data storage priority and the attribute information of the video stream data currently needed to be stored by the hard disk device (such as the data volume of the video stream data), at least one storage interval is formatted and the newly added video stream data storage is processed, so that the corresponding storage interval can be formatted to form free storage capacity to store the newly added video stream data, so as to realize the efficient storage of the video stream data.

[0153] In general, the distributed video recording control method and system based on the private protocol loads the private protocol into the external interface layer, monitors the distributed video recording devices connected to the external interface layer, identifies the target video recording devices in the adjustable state, sends the video recording configuration instructions to the target video recording devices to execute the video recording task, and efficiently and uniformly manages the distributed video recording devices through the external interface layer, which is conducive to the flexible expansion of the storage capacity and processing capacity of the video recording data; pulls the video recording stream data from the target video recording device and stores the video recording stream data; based on the playback request received by the external interface layer, pushes the stored video recording stream data to execute the video recording playback task, realizes the efficient storage and accurate retrieval and processing of the video recording data, and ensures the reliable operation of the distributed video recording devices; also checks the hard disk devices connected to the bottom library, determines the video recording stream data storage status information in the hard disk device, and adjusts the data storage strategy of the hard disk device to make full use of the storage space of the hard disk device and ensure the security of the video recording data storage.

[0154] The above is only a specific implementation of the present invention, and any other improvements made based on the concept of the present invention are considered to be within the protection scope of the present invention.

Claims

1. A distributed video recording control method based on a private protocol, characterized in that: include: Loading a private protocol into an external interface layer, monitoring distributed video recording devices connected to the external interface layer, and identifying a target video recording device in an adjustable state; Based on the video recording request received by the external interface layer, a video recording configuration instruction is sent to the target video recording device, so that the target video recording device performs a video recording task; Based on the execution process information of the video recording task, a stream pulling operation is performed on the target video recording device to obtain video stream data, thereby storing the video stream data; Based on the playback request received by the external interface layer, a streaming operation is performed on the stored video stream data, thereby executing the video playback task; Check the hard disk device connected to the bottom library to determine the storage status information of the video stream data in the hard disk device; Based on the video stream data storage status information, the data storage strategy of the hard disk device is adjusted.

2. The distributed video recording control method based on a private protocol as claimed in claim 1, characterized in that: Loading a private protocol into an external interface layer, monitoring distributed video recording devices connected to the external interface layer, and identifying a target video recording device in an adjustable state; Based on the video recording request received by the external interface layer, a video recording configuration instruction is sent to the target video recording device so that the target video recording device performs a video recording task, including: The gRPC protocol and the RTSP protocol are loaded into the external interface layer, and the distributed video recording devices connected to the external interface layer are monitored to obtain the available video recording operation resource information of all video recording devices; based on the available video recording operation resource information, it is determined whether the video recording device is in a video recording operation overload state; if not, the video recording device is determined as a target video recording device in an adjustable state; if so, the video recording device is not determined as a target video recording device in an adjustable state; The video recording request received by the external interface layer is parsed and processed to determine the video recording parameters; based on the video recording parameters, a video recording configuration instruction is sent to the target video recording device to enable the target video recording device to start the hardware and software to execute the video recording task; wherein the video recording configuration instruction includes a video recording device hardware control instruction and a video recording device software control instruction.

3. The distributed video recording control method based on a private protocol as claimed in claim 2, characterized in that: Based on the available video recording operation resource information, determining whether the video recording device is in a video recording operation overload state includes: Real-time monitoring of operating parameters of the video recording device, wherein the operating parameters of the video recording device include the number of video streams, the video frame rate, the network bandwidth utilization, the memory utilization and the duration of overload; and obtaining a first load state evaluation coefficient using the number of video streams, the video frame rate and the duration of overload; The first load state evaluation coefficient is obtained by the following formula: Where S represents the first load state evaluation coefficient; n represents the number of unit times that the video recording device has been running; G i represents the number of video streams corresponding to the i-th unit time; P zi represents the video frame rate corresponding to the i-th unit time; T i represents the duration of overload corresponding to the i-th unit time; T c Indicates the preset overload continuous duration reference value; G b represents the standard deviation of the number of video streams corresponding to n unit time; T b It represents the standard deviation of the duration of overload corresponding to n units of time; Obtaining a compensation coefficient using the network bandwidth utilization and memory utilization; The compensation coefficient is obtained by the following formula: Wherein, J represents the compensation coefficient; n represents the number of unit time that the video recording device has been running; B i represents the network bandwidth utilization rate corresponding to the i-th unit time; P ni represents the memory utilization corresponding to the i-th unit time; P zb Indicates the standard deviation of the video frame rate corresponding to the i-th unit time; G b Indicates the standard deviation of the number of video streams corresponding to n unit time; Obtaining a load evaluation parameter using the compensation coefficient and a first load state evaluation coefficient; The load evaluation parameter is obtained by the following formula: Wherein, F represents the load evaluation parameter; F0 represents the preset load evaluation parameter basic value; J represents the compensation coefficient; S represents the first load state evaluation coefficient; comparing the load evaluation parameter with a preset evaluation parameter threshold; When the load evaluation parameter exceeds a preset evaluation parameter threshold, it is determined that the video recording device is in a video recording operation overload state.

4. The distributed video recording control method based on a private protocol as claimed in claim 1, characterized in that: Based on the execution process information of the video recording task, a stream pulling operation is performed on the target video recording device to obtain video stream data, thereby storing the video stream data; Based on the playback request received by the external interface layer, a streaming operation is performed on the stored video stream data to execute the video playback task, including: Based on the execution process information of the video recording task, determine the recording time axis change information of the video recording task; based on the recording time axis change information, determine the start time information of the stream pulling operation for the target video recording device; based on the start time information of the stream pulling operation, generate the RTSP URL of the stream pulling operation, thereby pulling the stream to obtain the video stream data, and store the video stream data in the hardware device; The playback request received by the external interface layer is parsed and processed to obtain the RTSP URL address of the video stream data to be played back; the RTSP URL address is compared with the RTSP URL address of the stored video stream data, and a streaming operation is performed on at least part of the video stream data in the stored video stream data, so as to execute the video playback task.

5. The distributed video recording control method based on a private protocol as claimed in claim 1, characterized in that: Check the hard disk device connected to the bottom library to determine the storage status information of the video stream data in the hard disk device; Based on the video stream data storage state information, adjusting the data storage strategy of the hard disk device includes: Check the storage intervals of the hard disk device connected to the bottom library to obtain the video stream data storage status information of each storage interval in the hard disk device; wherein the video stream data storage status information includes the video stream data storage capacity and video stream data storage time of each storage interval; Based on the video stream data storage status information, determine the storage priority of newly added video stream data in all storage intervals in the hard disk device; based on the storage priority of newly added video stream data and the attribute information of the video stream data currently needed to be stored in the hard disk device, format at least one storage interval and perform new video stream data storage processing.

6. A distributed video recording control system based on a private protocol, characterized in that: include: A video recording device identification module, used to load a private protocol into the external interface layer, monitor the distributed video recording devices connected to the external interface layer, and identify the target video recording device in a movable state; A video recording task execution control module, configured to send a video recording configuration instruction to the target video recording device based on the video recording request received by the external interface layer, so that the target video recording device executes the video recording task; A data stream pulling and storage module, used to pull the stream from the target video recording device based on the execution process information of the video recording task, obtain the video stream data, and store the video stream data; A data streaming and playback module, used to perform a streaming operation on the stored video stream data based on the playback request received by the external interface layer, so as to execute the video playback task; A hard disk device checking module, used to check the hard disk device connected to the bottom library, and determine the storage status information of the video stream data in the hard disk device; The data storage strategy adjustment module is used to adjust the data storage strategy of the hard disk device based on the video stream data storage status information.

7. The distributed video recording control system based on a private protocol as claimed in claim 6, characterized in that: The video recording device identification module is used to load the private protocol into the external interface layer, monitor the distributed video recording devices connected to the external interface layer, and identify the target video recording device in the adjustable state, including: The gRPC protocol and the RTSP protocol are loaded into the external interface layer, and the distributed video recording devices connected to the external interface layer are monitored to obtain the available video recording operation resource information of all video recording devices; based on the available video recording operation resource information, it is determined whether the video recording device is in a video recording operation overload state; if not, the video recording device is determined as a target video recording device in an adjustable state; if so, the video recording device is not determined as a target video recording device in an adjustable state; The video recording task execution control module is used to send a video recording configuration instruction to the target video recording device based on the video recording request received by the external interface layer, so that the target video recording device executes the video recording task, including: The video recording request received by the external interface layer is parsed and processed to determine the video recording parameters; based on the video recording parameters, a video recording configuration instruction is sent to the target video recording device to enable the target video recording device to start the hardware and software to execute the video recording task; wherein the video recording configuration instruction includes a video recording device hardware control instruction and a video recording device software control instruction.

8. The distributed video recording control system based on a private protocol as claimed in claim 7, characterized in that: Based on the available video recording operation resource information, determining whether the video recording device is in a video recording operation overload state includes: Real-time monitoring of operating parameters of the video recording device, wherein the operating parameters of the video recording device include the number of video streams, the video frame rate, the network bandwidth utilization, the memory utilization and the duration of overload; and obtaining a first load state evaluation coefficient using the number of video streams, the video frame rate and the duration of overload; The first load state evaluation coefficient is obtained by the following formula: Where S represents the first load state evaluation coefficient; n represents the number of unit times that the video recording device has been running; G i represents the number of video streams corresponding to the i-th unit time; P zi represents the video frame rate corresponding to the i-th unit time; T i represents the duration of overload corresponding to the i-th unit time; T c Indicates the preset overload continuous duration reference value; G b represents the standard deviation of the number of video streams corresponding to n unit time; T b It represents the standard deviation of the duration of overload corresponding to n units of time; Obtaining a compensation coefficient using the network bandwidth utilization and memory utilization; The compensation coefficient is obtained by the following formula: Wherein, J represents the compensation coefficient; n represents the number of unit time that the video recording device has been running; B i represents the network bandwidth utilization rate corresponding to the i-th unit time; P ni represents the memory utilization corresponding to the i-th unit time; P zb Indicates the standard deviation of the video frame rate corresponding to the i-th unit time; G b Indicates the standard deviation of the number of video streams corresponding to n unit time; Obtaining a load evaluation parameter using the compensation coefficient and a first load state evaluation coefficient; The load evaluation parameter is obtained by the following formula: Wherein, F represents the load evaluation parameter; F0 represents the preset load evaluation parameter basic value; J represents the compensation coefficient; S represents the first load state evaluation coefficient; comparing the load evaluation parameter with a preset evaluation parameter threshold; When the load evaluation parameter exceeds a preset evaluation parameter threshold, it is determined that the video recording device is in a video recording operation overload state.

9. The distributed video recording control system based on a private protocol as claimed in claim 6, characterized in that: The data stream pulling and storage module is used to pull the stream from the target video recording device based on the execution process information of the video recording task to obtain the video stream data, thereby storing the video stream data, including: Based on the execution process information of the video recording task, determine the recording time axis change information of the video recording task; based on the recording time axis change information, determine the start time information of the stream pulling operation for the target video recording device; based on the start time information of the stream pulling operation, generate the RTSP URL of the stream pulling operation, thereby pulling the stream to obtain the video stream data, and store the video stream data in the hardware device; The data push and playback module is used to push the stored video stream data based on the playback request received by the external interface layer, so as to perform the video playback task, including: The playback request received by the external interface layer is parsed and processed to obtain the RTSP URL address of the video stream data to be played back; the RTSP URL address is compared with the RTSP URL address of the stored video stream data, and a streaming operation is performed on at least part of the video stream data in the stored video stream data, so as to execute the video playback task.

10. The distributed video recording control system based on a private protocol as claimed in claim 6, characterized in that: The hard disk device checking module is used to check the hard disk device connected to the bottom library to determine the video stream data storage status information in the hard disk device, including: Check the storage intervals of the hard disk device connected to the bottom library to obtain the video stream data storage status information of each storage interval in the hard disk device; wherein the video stream data storage status information includes the video stream data storage capacity and video stream data storage time of each storage interval; The data storage strategy adjustment module is used to adjust the data storage strategy of the hard disk device based on the video stream data storage state information, including: Based on the video stream data storage status information, determine the storage priority of newly added video stream data in all storage intervals in the hard disk device; based on the storage priority of newly added video stream data and the attribute information of the video stream data currently needed to be stored in the hard disk device, format at least one storage interval and perform new video stream data storage processing.

Citation Information

Patent Citations

  • Method and system for playing back videos in video monitoring system and network monitoring client side

    CN101873481A

  • Video data storage method, device and system, electronic equipment and storage medium

    CN113986611A

  • Audio and video storage method and network video recording equipment

    CN115623151A