Distributed video recording management method and system based on private protocol implementation
By loading a private protocol into the distributed recording system, monitoring and controlling the recording devices to perform recording tasks, and combining this with adjustments to the storage strategy of the hard disk devices, the problems of low efficiency in recording data retrieval and insufficient storage security in existing technologies are solved, achieving efficient storage and reliable operation.
Patent Information
- Application Number
- CN202411956947.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-29
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2044-12-29
AI Technical Summary
Existing distributed storage systems struggle to utilize high-performance communication protocols for video data transmission, resulting in low efficiency in retrieval of recorded data, an inability to flexibly control recording devices for bitstream conversion, reduced storage and processing efficiency of recorded data, and an inability to improve the storage security of hard disk devices.
By loading a private protocol into the external interface layer, the system listens for and identifies target recording devices in an adjustable state, sends recording configuration commands to execute recording tasks, and performs pull and push streaming operations. It also adjusts data storage strategies based on the storage status information of the hard disk device to ensure efficient storage and security of recording data.
It enables efficient storage and accurate retrieval of video data, expands storage capacity and processing capabilities, and ensures the reliable operation of distributed recording devices and the storage security of hard disk devices.
Smart Images

Figure CN119743495B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of video monitoring processing, and particularly to a distributed video recording management method and system based on a private protocol. BACKGROUND
[0002] With the popularity of video security monitoring and unmanned aerial vehicle monitoring applications, the storage demand of 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 distributed storage systems are needed to expand the storage capacity and processing capacity of video data. The existing distributed storage system cannot use high-performance communication protocols such as gRPC for video data transmission, and has certain limitations in processing and retrieving video data. When retrieving a specific segment from a long video file, only the entire video file can be sequentially read to locate the specific segment, resulting in low retrieval efficiency. It can be seen that the existing distributed storage system cannot flexibly control the video data stream conversion of different video recording devices, reduces the retrieval and processing efficiency and accuracy of video recording data, and cannot improve the storage security of video recording data of hard disk devices. SUMMARY
[0003] The purpose of the present application is to provide a distributed video recording management method and system based on a private protocol, load the private protocol to the external interface layer, listen to the distributed video recording devices connected to the external interface layer, identify the target video recording device in the mobilizable 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 flexibly expanding the storage capacity and processing capacity of video recording data. The video stream data is obtained by pulling the stream from the target video recording device and storing the video stream data. Based on the playback request received by the external interface layer, the stored video stream data is pushed to execute the video playback task, realizing efficient storage and accurate retrieval and processing of video recording data, and ensuring reliable operation of the distributed video recording device. The hard disk device connected to the underlying library is also investigated to determine the video stream data storage state information in the hard disk device, so as to adjust the data storage strategy of the hard disk device, fully utilize the storage space of the hard disk device, and ensure the storage security of the video recording data.
[0004] The present application is achieved by the following technical solutions:
[0005] The distributed video recording management method based on a private protocol comprises:
[0006] The private protocol is loaded to the external interface layer, the distributed video recording devices connected to the external interface layer are listened to, and the target video recording device in the mobilizable state is identified. Based on the video recording request received by the external interface layer, the video recording configuration instruction is sent to the target video recording device, so that the target video recording device executes the video recording task.
[0007] based on the execution process information of the recording task, performing a pull stream operation on the target recording device to obtain recording stream data, and storing the recording stream data; based on the playback request received by the external interface layer, performing a push stream operation on the stored recording stream data to execute a recording playback task;
[0008] checking the hard disk device connected to the underlying library to determine recording stream data storage state information in the hard disk device; based on the recording stream data storage state information, adjusting the data storage strategy of the hard disk device.
[0009] Optionally, a private protocol is loaded to the external interface layer, a distributed recording device connected to the external interface layer is monitored, and a target recording device in a mobilizable state is identified; based on a recording recording request received by the external interface layer, a recording configuration instruction is sent to the target recording device to make the target recording device execute a recording task, including:
[0010] The gRPC protocol and the RTSP protocol are loaded to the external interface layer, the distributed recording device connected to the external interface layer is monitored, and available recording operation resource information of all recording devices is obtained; based on the available recording operation resource information, it is determined whether the recording device is in a recording operation overload state; if not, the recording device is determined as a target recording device in a mobilizable state; if yes, the recording device is not determined as a target recording device in a mobilizable state.
[0011] The recording recording request received by the external interface layer is analyzed and processed to determine recording recording parameters; based on the recording recording parameters, a recording configuration instruction is sent to the target recording device to make the target recording device start hardware and software, thereby executing a recording task; wherein the recording configuration instruction includes a recording device hardware control instruction and a recording device software control instruction.
[0012] Optionally, based on the available recording operation resource information, it is determined whether the recording device is in a recording operation overload state, including:
[0013] The running parameters of the recording device are monitored in real time, wherein the running parameters of the recording device include the number of recording streams, the recording frame rate, the network bandwidth utilization rate, the memory utilization rate, and the overload duration;
[0014] The number of recording streams, the recording frame rate, and the overload duration are used to obtain a first load state evaluation coefficient;
[0015] The first load state evaluation coefficient is obtained by the following formula:
[0016]
[0017] wherein S represents a first load state evaluation coefficient; n represents the number of unit time that the video recording device has run through; G i represents the number of video recording streams corresponding to the i-th unit time; P zi represents the frame rate of video recording corresponding to the i-th unit time; T i represents the overload duration corresponding to the i-th unit time; T c represents a preset reference value of continuous overload duration; G b represents the standard deviation of the number of video recording streams corresponding to n unit time; T b represents the standard deviation of the overload duration corresponding to n unit time;
[0018] a compensation coefficient is obtained by using the network bandwidth utilization rate and the memory utilization rate;
[0019] wherein the compensation coefficient is obtained by the following formula:
[0020]
[0021] wherein J represents a compensation coefficient; n represents the number of unit time that the video recording device has run through; B i represents the network bandwidth utilization rate corresponding to the i-th unit time; P ni represents the memory utilization rate corresponding to the i-th unit time; P zb represents the standard deviation of the frame rate of video recording corresponding to the i-th unit time; G b represents the standard deviation of the number of video recording streams corresponding to n unit time;
[0022] a load evaluation parameter is obtained by using the compensation coefficient and the first load state evaluation coefficient;
[0023] wherein the load evaluation parameter is obtained by the following formula:
[0024]
[0025] wherein F represents a load evaluation parameter; F0 represents a preset basic value of the load evaluation parameter; J represents a compensation coefficient; S represents a first load state evaluation coefficient;
[0026] the load evaluation parameter is compared with a preset evaluation parameter threshold value;
[0027] when the load evaluation parameter exceeds the preset evaluation parameter threshold value, 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, the target video recording device is pulled for stream operation to obtain video stream data, and the video stream data is stored in this way; based on the playback request received by the external interface layer, the stored video stream data is pushed for stream operation to execute the video playback task, including:
[0029] 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 pull stream operation start time information of the target video recording device is determined; based on the pull stream operation start time information, the RTSP URL of the pull stream operation is generated, the video stream data is pulled, and the video stream data is stored in the hardware device;
[0030] The playback request received by the external interface layer is parsed 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, at least part of the video stream data in the stored video stream data is pushed for stream operation, and the video playback task is executed in this way.
[0031] Optionally, the hard disk device connected to the underlying library is investigated to determine the video stream data storage state information in the hard disk device; based on the video stream data storage state information, the data storage strategy of the hard disk device is adjusted, including:
[0032] The storage interval of the hard disk device connected to the underlying library is investigated to obtain the video stream data storage state information of all storage intervals in the hard disk device; wherein the video stream data storage state information includes the video stream data storage amount and the video stream data storage time of each storage interval;
[0033] Based on the video stream data storage state information, the new video stream data storage priority of all storage intervals in the hard disk device is determined; based on the new video stream data storage priority and the attribute information of the video stream data currently required to be stored in the hard disk device, at least one storage interval is formatted and processed for new video stream data storage.
[0034] The distributed video recording management system based on the private protocol includes:
[0035] The video recording device identification module is used to load the private protocol to the external interface layer, listen to the distributed video recording device connected to the external interface layer, and identify the target video recording device in the mobilizable state;
[0036] The video recording task execution control module is configured to send a video recording configuration instruction to the target video recording device based on a video recording request received by the external interface layer, so that the target video recording device executes a video recording task.
[0037] The data pull stream and storage module is configured to perform a pull stream operation on the target video recording device based on execution process information of the video recording task, to obtain video stream data, and store the video stream data.
[0038] The data push stream and playback module is configured to perform a push stream operation on the stored video stream data based on a playback request received by the external interface layer, to execute a video recording playback task.
[0039] The hard disk device troubleshooting module is configured to troubleshoot a hard disk device connected to the underlying library, and determine video stream data storage state information in the hard disk device.
[0040] The data storage strategy adjustment module is configured to adjust a data storage strategy of the hard disk device based on the video stream data storage state information.
[0041] Optionally, the video recording device identification module is configured to load a private protocol to the external interface layer, listen to distributed video recording devices connected to the external interface layer, and identify a target video recording device in a mobilizable state, including:
[0042] The gRPC protocol and the RTSP protocol are loaded to the external interface layer, the distributed video recording devices connected to the external interface layer are listened to, and available video recording operation resource information of all video recording devices is obtained. 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 the target video recording device in the mobilizable state. If yes, the video recording device is not determined as the target video recording device in the mobilizable state.
[0043] The video recording task execution control module is configured to send a video recording configuration instruction to the target video recording device based on a video recording request received by the external interface layer, so that the target video recording device executes a video recording task, including:
[0044] The video recording request received by the external interface layer is analyzed and processed to determine a video recording parameter. Based on the video recording parameter, a video recording configuration instruction is sent to the target video recording device, so that the target video recording device starts hardware and software, thereby executing a video recording task. The video recording configuration instruction includes a video recording device hardware control instruction and a video recording device software control instruction.
[0045] Optionally, 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, including:
[0046] monitoring running parameters of the video recording device in real time, wherein the running parameters of the video recording device include a number of video recording streams, a video frame rate, a network bandwidth utilization rate, a memory utilization rate, and an overload duration;
[0047] obtaining a first load state evaluation coefficient using the number of video recording streams, the video frame rate, and the overload duration;
[0048] wherein the first load state evaluation coefficient is obtained by the following formula:
[0049]
[0050] wherein S represents the first load state evaluation coefficient; n represents a number of unit times that the video recording device has been running; G i represents the number of video recording 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 overload duration corresponding to the i-th unit time; T c represents a preset overload continuous time reference value; G b represents a standard deviation of the number of video recording streams corresponding to n unit times; T b represents a standard deviation of the overload duration corresponding to n unit times;
[0051] obtaining a compensation coefficient using the network bandwidth utilization rate and the memory utilization rate;
[0052] wherein the compensation coefficient is obtained by the following formula:
[0053]
[0054] wherein J represents the compensation coefficient; n represents a number of unit times 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 rate corresponding to the i-th unit time; P zb represents a standard deviation of the video frame rate corresponding to the i-th unit time; G b represents a standard deviation of the number of video recording streams corresponding to n unit times;
[0055] obtaining a load evaluation parameter using the compensation coefficient and the first load state evaluation coefficient;
[0056] wherein the load evaluation parameter is obtained by the following formula:
[0057]
[0058] Wherein, F represents a load evaluation parameter; F0 represents a preset load evaluation parameter base value; J represents a compensation coefficient; and S represents a first load state evaluation coefficient.
[0059] The load evaluation parameter is compared with a preset evaluation parameter threshold value.
[0060] When the load evaluation parameter exceeds the preset evaluation parameter threshold value, it is determined that the video recording device is in a video recording operation overload state.
[0061] Optionally, the data pull stream and storage module is configured to perform a pull stream operation on the target video recording device based on execution process information of the video recording task, to obtain video stream data, and store the video stream data, including:
[0062] Based on the execution process information of the video recording task, recording time axis change information of the video recording task is determined; based on the recording time axis change information, pull stream operation start time information of the target video recording device is determined; based on the pull stream operation start time information, an RTSP URL of the pull stream operation is generated, to obtain video stream data by pulling, and store the video stream data to the hardware device;
[0063] The data push stream and playback module is configured to perform a push stream operation on the stored video stream data based on a playback request received by the external interface layer, to execute a video recording playback task, including:
[0064] The playback request received by the external interface layer is parsed to obtain an RTSP URL address of the video stream data to be played back; the RTSP URL address is compared with an RTSP URL address of the stored video stream data, at least part of the video stream data in the stored video stream data is operated by push stream, and a video recording playback task is executed.
[0065] Optionally, the hard disk device troubleshooting module is configured to troubleshoot the hard disk device connected to the underlying library, to determine video stream data storage state information in the hard disk device, including:
[0066] The hard disk device connected to the underlying library is troubleshooted in a storage interval, to obtain video stream data storage state information of all storage intervals in the hard disk device; wherein, the video stream data storage state information includes video stream data storage amount and video stream data storage time of each storage interval.
[0067] The data storage strategy adjustment module is configured to adjust the data storage strategy of the hard disk device based on the video stream data storage state information, including:
[0068] Determine the new video stream data storage priority level of all storage areas in the hard disk device based on the video stream data storage state information; and perform formatting processing and new video stream data storage processing on at least one storage area based on the new video stream data storage priority level and attribute information of the video stream data currently required to be stored by the hard disk device.
[0069] Compared with the prior art, the present application has the following beneficial effects:
[0070] The distributed video management and control method and system based on a private protocol provided by the present application load the private protocol to an external interface layer, listen to distributed video equipment connected to the external interface layer, identify target video equipment in a mobilizable state, send a video configuration instruction to the target video equipment to execute a video task, efficiently and uniformly manage the distributed video equipment through the external interface layer, and facilitate flexible expansion of storage capacity and processing capacity of video data; pull video stream data from the target video equipment and store the video stream data; based on a playback request received by the external interface layer, push the stored video stream data to execute a video playback task, efficiently store and accurately search and process video data, and ensure reliable operation of the distributed video equipment; the hard disk equipment connected to the underlying library is also investigated, video stream data storage state information in the hard disk equipment is determined, the data storage strategy of the hard disk equipment is adjusted, the storage space of the hard disk equipment is fully utilized, and the security of video data storage is ensured. BRIEF DESCRIPTION OF DRAWINGS
[0071] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort based on these drawings. Among them:
[0072] Figure 1 The flowchart of the distributed video management and control method based on a private protocol provided by the present application.
[0073] Figure 2 The structure diagram of the distributed video management and control system based on a private protocol provided by the present application. DETAILED DESCRIPTION
[0074] In order to make the above objectives, characteristics and advantages of the present application more obvious and easy to understand, the specific embodiments of the present application are described in detail below with reference to the drawings. It can be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application. In addition, it should be noted that, for the purpose of description, only the parts related to the present application are shown in the drawings, rather than all the structures. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of the present application.
[0075] The terms "comprising" and "having" and any variations thereof in the present application are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products or devices.
[0076] In this paper, the term "embodiment" means that the specific features, structures or characteristics described in conjunction with the embodiment can be included in at least one embodiment of the present application. The phrase appears at various places in the specification does not necessarily refer to the same embodiment, nor is it mutually exclusive or alternative to other embodiments. Those skilled in the art explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0077] Please refer to Figure 1 An embodiment of the present application provides a distributed video recording management method based on a private protocol. The distributed video recording management method based on the private protocol comprises:
[0078] The private protocol is loaded to an external interface layer, the target video recording device in the adjustable state is identified by monitoring the distributed video recording device connected to the external interface layer, and the video recording configuration instruction is sent 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;
[0079] Based on the execution process information of the video recording task, the target video recording device is pulled to perform the stream operation, and the video stream data is obtained to store the video stream data; based on the playback request received by the external interface layer, the stored video stream data is pushed to perform the stream operation, so as to execute the video playback task;
[0080] The hard disk device connected to the underlying library is investigated to determine the video stream data storage state information in the hard disk device; based on the video stream data storage state information, the data storage strategy of the hard disk device is adjusted.
[0081] The distributed video recording management method based on the private protocol has the beneficial effects that the private protocol is loaded to the external interface layer, the distributed video recording device connected to the external interface layer is listened to, the target video recording device in the mobilizable state is identified, the video recording configuration instruction is sent to the target video recording device to execute the video recording task, the distributed video recording device is efficiently and uniformly managed through the external interface layer, the storage capacity and processing capacity of the video recording data are flexibly expanded; the video stream data is obtained by pulling the stream from the target video recording device and the video stream data is stored; the video playback request received based on the external interface layer is pushed to the stored video stream data to execute the video playback task, the efficient storage and accurate retrieval and processing of the video data are realized, and the reliable operation of the distributed video recording device is ensured; the hard disk device connected to the bottom layer library is investigated, the video stream data storage state information in the hard disk device is determined, the data storage strategy of the hard disk device is adjusted, the storage space of the hard disk device is fully utilized, and the storage safety of the video recording data is ensured.
[0082] In another embodiment, the private protocol is loaded to the external interface layer, the distributed video recording device connected to the external interface layer is listened to, and the target video recording device in the mobilizable state is identified; based on the video recording request received by the external interface layer, the video recording configuration instruction is sent to the target video recording device, so that the target video recording device executes the video recording task, including:
[0083] The gRPC protocol and the RTSP protocol are loaded to the external interface layer, the distributed video recording device connected to the external interface layer is listened to, and the available video recording operation resource information of all video recording devices is obtained; based on the available video recording operation resource information, it is judged whether the video recording device is in the video recording operation overload state; if not, the video recording device is determined as the target video recording device in the mobilizable state; if yes, the video recording device is not determined as the target video recording device in the mobilizable state;
[0084] The video recording request received by the external interface layer is analyzed and processed to determine the video recording parameter; based on the video recording parameter, the video recording configuration instruction is sent to the target video recording device, so that the target video recording device starts hardware and software, thereby executing the video recording task; wherein the video recording configuration instruction includes the video recording device hardware control instruction and the video recording device software control instruction.
[0085] The beneficial effects of the above embodiments, the distributed video recording storage system mainly includes three structural layers of external interface layer, core service and bottom layer library; wherein the external interface layer can compatible support gRPC protocol and RTSP protocol, realize the communication interaction of the external interface layer through gRPC protocol and RTSP protocol; the core service is used for providing VSS_gRPC external interface service, VSS_config configuration management service, VSS_ss storage service, VSS_storage hard disk management service, VSS_rtsp service; the bottom layer library is used for providing libFS file system operation and libhd hard disk operation. In order to carry out comprehensive code stream conversion of video data of the distributed video recording device, the gRPC protocol and the RTSP protocol are loaded to the external interface layer, so that the private protocol of the distributed video recording device can be connected, and the operation reliability of the distributed video recording device is improved. The distributed video recording device connected to the external interface layer is monitored, and the available video recording operation resource information of all video recording devices is obtained; wherein the available video recording operation resource information can include but is not limited to the amount of computing resources that can be used by the video recording device during the video recording operation. The available video recording operation resource information is compared with the threshold value, and it is judged whether the video recording device is in the overload state of video recording operation, so as to screen and identify the target video recording device in the mobilizable state from the distributed video recording device, so as to accurately control the target video recording device in the subsequent. The video recording request received by the external interface layer is analyzed and processed, and the video recording parameter is determined; wherein the video recording parameter can include but is not limited to the space direction, the shooting focal length and the field of view range and other parameters of the video recording. Based on the video recording parameter, the video recording configuration instruction is sent to the target video recording device, so that the target video recording device starts hardware and software, so as to execute the video recording task; wherein the hardware can be but is not limited to the optical lens of the target video recording device, and the software can be but is not limited to the shooting operation software (such as shooting anti-shake control software) installed in the target video recording device, so as to comprehensively control the target video recording device at the hardware and software level.
[0086] In another embodiment, based on the available video recording operation resource information, it is judged whether the video recording device is in the overload state of video recording operation, comprising:
[0087] The running parameters of the video recording device are monitored in real time, wherein the running 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 overload duration;
[0088] The first load state evaluation coefficient is obtained by using the number of video streams, the video frame rate and the overload duration;
[0089] Wherein, the first load state evaluation coefficient is obtained by the following formula:
[0090]
[0091] wherein S represents a first load state evaluation coefficient; n represents a number of unit time that the video recording device has run through; G i represents a number of video recording streams corresponding to the i-th unit time; P zi represents a frame rate of video recording corresponding to the i-th unit time; T i represents a duration of overload corresponding to the i-th unit time; T c represents a preset reference value of duration of overload; G b represents a standard deviation of number of video recording streams corresponding to n unit time; T b represents a standard deviation of duration of overload corresponding to n unit time;
[0092] a compensation coefficient is obtained by using the network bandwidth utilization rate and the memory utilization rate;
[0093] wherein the compensation coefficient is obtained by the following formula:
[0094]
[0095] wherein J represents a compensation coefficient; n represents a number of unit time that the video recording device has run through; B i represents a network bandwidth utilization rate corresponding to the i-th unit time; P ni represents a memory utilization rate corresponding to the i-th unit time; P zb represents a standard deviation of frame rate of video recording corresponding to the i-th unit time; G b represents a standard deviation of number of video recording streams corresponding to n unit time;
[0096] a load evaluation parameter is obtained by using the compensation coefficient and the first load state evaluation coefficient;
[0097] wherein the load evaluation parameter is obtained by the following formula:
[0098]
[0099] wherein F represents a load evaluation parameter; F0 represents a preset basic value of load evaluation parameter; J represents a compensation coefficient; S represents a first load state evaluation coefficient;
[0100] the load evaluation parameter is compared with a preset evaluation parameter threshold value;
[0101] when the load evaluation parameter exceeds the preset evaluation parameter threshold value, it is determined that the video recording device is in a video recording operation overload state.
[0102] The beneficial effects of the above embodiments are that by monitoring the running parameters of the video recording equipment in real time (such as the number of video recording streams, the video frame rate, the network bandwidth utilization, the memory utilization, and the overload duration), the running state of the video recording equipment can be grasped 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 equipment. This accurate evaluation helps to discover the possible overload problem of the equipment in time. The technical solution not only considers the number of video recording streams and the video frame rate, which are two key factors directly affecting the video quality, but also introduces parameters such as network bandwidth utilization, memory utilization, and overload duration. This comprehensive consideration can more comprehensively reflect the overall load state of the video recording equipment. By calculating the standard deviation of the number of video recording streams and the overload duration, as well as the standard deviation of the video frame rate, the scheme can consider the fluctuation of the load in different time periods, so as to more accurately evaluate the load stability of the equipment. The formula and parameters (such as the preset overload continuous duration reference value, the preset load evaluation parameter basic value, etc.) in the technical solution can be adjusted according to the actual situation to adapt to the needs of different video recording equipment and different application scenarios. By setting the evaluation parameter threshold, the scheme can flexibly judge whether the video recording equipment 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 video recording equipment is in a video recording operation overload state and issue a warning. This helps to discover and solve problems in time and prevent equipment damage due to long-term overload operation. Through this early warning mechanism, the operator can take measures in advance (such as increasing equipment, optimizing network bandwidth, upgrading memory, etc.) to ensure the stable operation and high-quality service of the video recording equipment.
[0103] In summary, the technical effects of the technical solution on performance indicators mainly include real-time monitoring and accurate evaluation, comprehensive consideration of multiple factors, flexibility and adaptability, and early warning and prevention. These effects collectively improve the running efficiency and stability of the video recording equipment, and reduce the equipment failure rate and maintenance cost.
[0104] In another embodiment, based on the execution process information of the video recording task, the target video recording equipment is subjected to a pull stream operation to obtain video stream data, and the video stream data is stored; based on the playback request received by the external interface layer, a push stream operation is performed on the stored video stream data to execute a video playback task, including:
[0105] Based on the execution process information of the video recording task, recording time axis change information of the video recording task is determined; based on the recording time axis change information, pull stream operation start time information of the target video recording device is determined; based on the pull stream operation start time information, an RTSP URL of the pull stream operation is generated, so as to pull the video stream data, and the video stream data is stored to the hardware device;
[0106] The playback request received by the external interface layer is analyzed 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 at least part of the video stream data in the stored video stream data is pushed to perform a video playback task.
[0107] The beneficial effects of the above embodiments are that the target video recording device executes the video recording task according to 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, based on the execution process information of the video recording task, recording time axis change information of the video recording task is determined, which can include but is not limited to start and end time information corresponding to each execution process included in the video recording task; based on the recording time axis change information, pull stream operation start time information of the target video recording device is determined, so as to generate an RTSP URL of the pull stream operation, thereby pulling the video stream data, and storing the video stream data to the hardware device. By generating the RTSP URL to identify the video stream data generated by the video recording device, it is convenient to subsequently query the stored video stream data. In addition, the playback request received by the external interface layer is analyzed 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 at least part of the video stream data in the stored video stream data is pushed to perform a video playback task, thereby realizing efficient storage, accurate retrieval and processing of the video stream data.
[0108] In another embodiment, the hard disk device connected to the underlying library is investigated to determine the video stream data storage state information in the hard disk device; based on the video stream data storage state information, the data storage strategy of the hard disk device is adjusted, including:
[0109] The storage intervals of the hard disk device connected to the underlying library are investigated to obtain the video stream data storage state information of all storage intervals in the hard disk device; wherein the video stream data storage state information includes the video stream data storage amount and the video stream data storage time of each storage interval;
[0110] Based on the video stream data storage state information, the priority of the new video stream data storage of all storage areas in the hard disk device is determined; and based on the priority of the new video stream data storage and the attribute information of the video stream data currently required to be stored in the hard disk device, at least one storage area is formatted and the new video stream data storage processing is performed.
[0111] The above embodiment has the beneficial effect that the storage areas of the hard disk device connected with the underlying library are investigated to obtain the video stream data storage amount and the video stream data storage time of all storage areas in the hard disk device, so that the comprehensive and accurate data storage state query of all storage areas of the hard disk device is realized. Based on the video stream data storage state information, the priority of the new video stream data storage of all storage areas in the hard disk device is determined. Generally speaking, the smaller the video stream data storage amount of a storage area or the longer the video stream data storage time, the higher the priority of the new video stream data storage corresponding to the storage area. That is, when new video stream data needs to be stored, the new video stream data to be stored is preferentially stored in the storage area with the highest priority. Based on the priority of the new video stream data storage and the attribute information (such as the data amount of the video stream data) of the video stream data currently required to be stored in the hard disk device, at least one storage area is formatted and the new video stream data storage processing is performed, so that the corresponding storage area can be formatted to form an idle storage capacity to store the new video stream data, thereby realizing the efficient storage of the video stream data.
[0112] Please refer to Figure 2 An embodiment provided by the present application is a distributed video management and control system based on a private protocol. The distributed video management and control system based on the private protocol comprises:
[0113] A video device identification module, configured to load the private protocol to an external interface layer, listen to the distributed video device connected to the external interface layer, and identify a target video device in a mobilizable state;
[0114] A video task execution control module, configured to send a video configuration instruction to the target video device based on the video recording request received by the external interface layer, so that the target video device executes a video task;
[0115] A data pull stream and storage module, configured to perform a pull stream operation on the target video device based on the execution process information of the video task, obtain video stream data, and store the video stream data;
[0116] A data push stream and playback module, configured to perform a push stream operation on the stored video stream data based on the playback request received by the external interface layer, so as to execute a video playback task;
[0117] The hard disk device checking module is configured to check a hard disk device connected to the underlying library, and determine storage state information of video stream data in the hard disk device.
[0118] The data storage strategy adjustment module is configured to adjust a data storage strategy of the hard disk device based on the storage state information of the video stream data.
[0119] The distributed video management and control system based on the private protocol loads the private protocol to the external interface layer, listens to the distributed video devices connected to the external interface layer, identifies the target video device in the mobilizable state, sends the video configuration instruction to the target video device to execute the video task, and efficiently and uniformly manages the distributed video devices through the external interface layer, which is conducive to flexibly expanding the storage capacity and processing capacity of the video data. The video stream data is obtained by pulling the stream from the target video device, 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, efficient storage, accurate retrieval and processing of the video data are realized, and reliable operation of the distributed video device is ensured. The hard disk device connected to the underlying library is also checked to determine the storage state information of the video stream data in the hard disk device, so as to adjust the data storage strategy of the hard disk device, fully utilize the storage space of the hard disk device, and ensure the storage safety of the video data.
[0120] In another embodiment, the video device identification module is configured to load the private protocol to the external interface layer, listen to the distributed video devices connected to the external interface layer, and identify the target video device in the mobilizable state, including:
[0121] The gRPC protocol and the RTSP protocol are loaded to the external interface layer, the distributed video devices connected to the external interface layer are listened to, and the available video operation resource information of all video devices is obtained. Based on the available video operation resource information, it is judged whether the video device is in a video operation overload state. If not, the video device is determined as the target video device in the mobilizable state. If yes, the video device is not determined as the target video device in the mobilizable state.
[0122] The video task execution control module is configured to send a video configuration instruction to the target video device based on the video recording request received by the external interface layer, so that the target video device executes the video task, including:
[0123] The video recording request received by the external interface layer is analyzed 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, so that the target video recording device starts hardware and software, thereby executing a 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 above embodiment has the beneficial effect that the distributed video recording storage system mainly includes three structural layers of an external interface layer, a core service and a bottom layer library; wherein the external interface layer can be compatible with gRPC protocol and RTSP protocol, realizing communication 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 bottom layer library is used to provide libFS file system operation and libhd hard disk operation. In order to comprehensively convert the code stream of the video recording data of the distributed video recording device, the gRPC protocol and the RTSP protocol are loaded to the external interface layer, so as to be connected with the private protocol of the distributed video recording device, and the operation reliability of the distributed video recording device is improved. The distributed video recording device connected to the external interface layer is listened to to obtain the available video recording operation resource information of all video recording devices; wherein the available video recording operation resource information can include but is not limited to the amount of computing resources that can be used by the video recording device in the video recording operation process. The available video recording operation resource information is compared with the threshold value 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 the mobilizable state from the distributed video recording device, so as to accurately control the target video recording device in the subsequent process. The video recording request received by the external interface layer is analyzed and processed to determine the video recording parameters; wherein the video recording parameters can include but are not limited to the spatial orientation, shooting focal length and field of view range and other parameters of the video recording. 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 hardware and software, thereby executing a video recording task; wherein the hardware can be but is not limited to the optical lens of the target video recording device, and the software can be but is not limited to the shooting operation software (such as shooting anti-shake control software) installed in the target video recording device, so as to comprehensively control the target video recording device at the hardware and software level.
[0125] In another embodiment, based on the available video recording operation resource information, determining whether the video recording device is in a video recording operation overload state, comprising:
[0126] Real-time monitoring of the running parameters of the video recording device, wherein the running parameters of the video recording device include the number of video recording streams, the video frame rate, the network bandwidth utilization, the memory utilization and the overload duration;
[0127] The first load state evaluation coefficient is obtained by using the number of video recording streams, the video frame rate and the overload duration;
[0128] The first load state evaluation coefficient is obtained by using the number of video recording streams, the video frame rate and the overload duration;
[0129]
[0130] wherein S represents the first load state evaluation coefficient; n represents the number of unit time that the video recording device has been running; G i represents the number of video recording 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 overload duration corresponding to the i-th unit time; T c represents the preset overload continuous time reference value; G b represents the standard deviation of the number of video recording streams corresponding to n unit time; T b represents the standard deviation of the overload duration corresponding to n unit time;
[0131] The compensation coefficient is obtained by using the network bandwidth utilization and the memory utilization;
[0132] The compensation coefficient is obtained by using the network bandwidth utilization and the memory utilization;
[0133]
[0134] 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 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 represents the standard deviation of the number of video recording streams corresponding to n unit time;
[0135] The load evaluation parameter is obtained by using the compensation coefficient and the first load state evaluation coefficient;
[0136] The load evaluation parameter is obtained by using the compensation coefficient and the first load state evaluation coefficient;
[0137]
[0138] wherein F represents a load evaluation parameter; F0 represents a preset load evaluation parameter base value; J represents a compensation coefficient; and S represents a first load state evaluation coefficient.
[0139] comparing the load evaluation parameter with a preset evaluation parameter threshold value;
[0140] when the load evaluation parameter exceeds the preset evaluation parameter threshold value, determining that the video recording device is in a video recording operation overload state.
[0141] The above-mentioned embodiments have the beneficial effects of real-time monitoring of the running parameters of the video recording device (such as the number of video streams, the video frame rate, the network bandwidth utilization rate, the memory utilization rate, and the overload duration), which enables real-time monitoring of the running state of the video recording device. Using these parameters, the first load state evaluation coefficient and the compensation coefficient are calculated by the above-mentioned formula, thereby accurately evaluating the load state of the video recording device. This accurate evaluation helps to timely discover possible overload problems of the device. The technical solution not only considers the number of video streams and the video frame rate, which are two key factors directly affecting the video quality, but also introduces parameters such as network bandwidth utilization rate, memory utilization rate, and overload duration. This comprehensive consideration 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 overload duration, as well as the standard deviation of the video frame rate, the scheme can take into account the fluctuations of the load at different time periods, thereby more accurately evaluating the load stability of the device. The formula and parameters in the technical solution (such as the preset overload continuous duration reference value, the preset load evaluation parameter base value, etc.) can be adjusted according to actual conditions to adapt to the needs of different video recording devices and different application scenarios. By setting the evaluation parameter threshold value, the scheme can flexibly determine whether the video recording device is in an overload state, thereby taking appropriate measures in a timely manner to avoid device damage or degradation of service quality. When the load evaluation parameter exceeds the preset evaluation parameter threshold value, the technical solution can determine that the video recording device is in a video recording operation overload state and issue a warning. This helps to timely discover and solve problems and prevent damage to the device due to long-term overload operation. Through this early warning mechanism, the operator can take measures in advance (such as adding devices, optimizing network bandwidth, upgrading memory, etc.) to ensure the stable operation and high-quality service of the video recording device.
[0142] In summary, the technical effects of the technical solution on performance indicators mainly include real-time monitoring and accurate evaluation, comprehensive consideration of multiple factors, flexibility and adaptability, and early warning and prevention. These effects collectively improve the running efficiency and stability of the video recording device, reduce the device failure rate and maintenance cost.
[0143] In another embodiment, the data pull stream and storage module is configured to perform a pull stream operation on the target video recording device based on the execution process information of the video recording task to obtain video stream data, and store the video stream data, including:
[0144] 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 pull stream operation start time information of the target video recording device; based on the pull stream operation start time information, generate the RTSP URL of the pull stream operation, and pull stream to obtain the video stream data, and store the video stream data to the hardware device;
[0145] The data push stream and playback module is configured to perform a push stream operation on the stored video stream data based on the playback request received by the external interface layer to execute a video playback task, including:
[0146] The playback request received by the external interface layer is analyzed 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 at least part of the video stream data in the stored video stream data is pushed to execute a video playback task.
[0147] The beneficial effects of the above embodiments are that the target video recording device executes the video recording task according to the corresponding recording process in chronological order. In order to orderly pull stream and store the video data generated during the execution of the video recording task, based on the execution process information of the video recording task, the recording time axis change information of the video recording task is determined, which can include but is not limited to the start and end time information corresponding to each execution process included in the video recording task. Based on the recording time axis change information, the pull stream operation start time information of the target video recording device is determined to generate the RTSP URL of the pull stream operation, so as to pull stream to obtain the video stream data, and store the video stream data to the hardware device. By generating the RTSP URL to identify the video stream data generated by the video recording device, it is convenient to query the stored video stream data in the future. In addition, the playback request received by the external interface layer is analyzed 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 at least part of the video stream data in the stored video stream data is pushed to execute a video playback task, realizing efficient storage, accurate retrieval and processing of the video stream data.
[0148] In another embodiment, the hard disk device troubleshooting module is configured to troubleshoot the hard disk device connected to the underlying library to determine the video stream data storage state information in the hard disk device, including:
[0149] The storage area of the hard disk device connected to the underlying library is investigated to obtain the respective video stream data storage state information of all storage areas in the hard disk device; wherein the video stream data storage state information includes the video stream data storage amount and the video stream data storage time of each storage area;
[0150] The data storage strategy adjustment module is configured 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 state information, the new video stream data storage priority of all storage areas in the hard disk device is determined; based on the new video stream data storage priority and the attribute information of the video stream data currently required to be stored by the hard disk device, at least one storage area is formatted and new video stream data is stored.
[0152] The above embodiments have the beneficial effects that the storage areas of the hard disk device connected to the underlying library are investigated to obtain the respective video stream data storage amount and the video stream data storage time of all storage areas in the hard disk device, realizing comprehensive and accurate data storage state query of all storage areas of the hard disk device. Based on the video stream data storage state information, the new video stream data storage priority of all storage areas in the hard disk device is determined. Generally speaking, the smaller the video stream data storage amount of a storage area or the longer the video stream data storage time, the higher the corresponding new video stream data storage priority, that is, when new video stream data needs to be stored, the new video stream data to be stored will be stored in the storage area with the highest priority first; based on the new video stream data storage priority and the attribute information (such as the data amount of the video stream data) of the video stream data currently required to be stored by the hard disk device, at least one storage area is formatted and new video stream data is stored, so that the corresponding storage area can be formatted to form idle storage capacity to store new video stream data, realizing efficient storage of video stream data.
[0153] Overall, the distributed video recording management method and system based on the private protocol loads the private protocol to the external interface layer, listens to the distributed video recording device connected to the external interface layer, identifies the target video recording device in the mobilizable state, sends the video recording configuration instruction to the target video recording device to execute the video recording task, and efficiently and uniformly manages the distributed video recording device through the external interface layer, which is beneficial to flexibly expand the storage capacity and processing capacity of the video recording data; the video recording stream data is obtained by pulling the stream from the target video recording device and the video recording stream data is stored; based on the playback request received by the external interface layer, the stored video recording stream data is pushed to execute the video recording playback task, efficient storage of the video recording data and accurate retrieval and processing are realized, and reliable operation of the distributed video recording device is ensured; the hard disk device connected to the underlying library is also investigated, the video recording stream data storage state information in the hard disk device is determined, the data storage strategy of the hard disk device is adjusted, the storage space of the hard disk device is fully utilized, and the storage safety of the video recording data is ensured.
[0154] The above is only one specific embodiment of the present application, and any improvement made on the basis of the concept of the present application is considered to be within the protection scope of the present application.
Claims
1. A distributed video recording management method implemented based on a private protocol, characterized in that, The method comprises the following steps: loading a gRPC protocol and an RTSP protocol to an external interface layer, monitoring distributed recording devices connected to the external interface layer to obtain available recording operation resource information of all recording devices; determining whether the recording devices are in a recording operation overload state based on the available recording operation resource information; if not, determining the recording devices as target recording devices in a mobilizable state; sending a recording configuration instruction to the target recording devices based on a recording request received by the external interface layer, so that the target recording devices perform a recording task; performing a pull stream operation on the target recording devices based on execution process information of the recording task to obtain recording stream data, and storing the recording stream data; performing a push stream operation on the stored recording stream data based on a playback request received by the external interface layer to perform a recording playback task; checking a hard disk device connected to a bottom layer library to determine recording stream data storage state information in the hard disk device; adjusting a data storage strategy of the hard disk device based on the recording stream data storage state information; wherein, determining whether the recording devices are in a recording operation overload state based on the available recording operation resource information comprises: monitoring the running parameters of the recording devices in real time, wherein the running parameters of the recording devices include the number of recording streams, the recording frame rate, the network bandwidth utilization rate, the memory utilization rate, and the overload duration; obtaining a first load state evaluation coefficient using the number of recording streams, the recording frame rate, and the overload duration; Wherein, S represents the first load state evaluation coefficient; n represents the number of unit time that the video recording device has run through; G i represents the number of video recording streams corresponding to the i-th unit time; P zi represents the frame rate of video recording corresponding to the i-th unit time; T i represents the overload duration corresponding to the i-th unit time; T c represents the preset overload continuous duration reference value; G b represents the standard deviation of the number of video recording streams corresponding to n unit times; T b represents the standard deviation of the overload duration corresponding to n unit times; wherein, the first load state evaluation coefficient is obtained by the following formula: obtaining a compensation coefficient using the network bandwidth utilization rate and the memory utilization rate; wherein J represents a compensation coefficient; n represents the number of unit times that the video recording device has run through; B i represents the network bandwidth utilization rate corresponding to the i-th unit time; P ni represents the memory utilization rate corresponding to the i-th unit time; P zb represents the standard deviation of the video recording frame rate corresponding to the i-th unit time; G b represents the standard deviation of the number of video recording streams corresponding to n unit times; wherein, the compensation coefficient is obtained by the following formula: obtaining a load evaluation parameter using the compensation coefficient and the first load state evaluation coefficient; wherein, the load evaluation parameter is obtained by the following formula: wherein, F represents the load evaluation parameter; F0 represents a preset load evaluation parameter base value; J represents the compensation coefficient; and S represents the first load state evaluation coefficient; comparing the load evaluation parameter with a preset evaluation parameter threshold value; when the load evaluation parameter exceeds the preset evaluation parameter threshold value, it is determined that the recording devices are in a recording operation overload state.
2. The distributed recording management method based on a private protocol according to claim 1, wherein: after determining whether the recording devices are in a recording operation overload state, the method further comprises: if the recording devices are in a recording operation overload state, the recording devices are not determined as target recording devices in a mobilizable state; the method of sending a recording configuration instruction to the target recording devices based on a recording request received by the external interface layer, so that the target recording devices perform a recording task comprises: The video recording request received by the external interface layer is analyzed 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 hardware and software of the target video recording device, so as 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 management method based on a private protocol according to claim 1, characterized in that: Based on the execution process information of the video recording task, the target video recording 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, including: 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 pull stream operation start time information of the target video recording device is determined; based on the pull stream operation start time information, the RTSP URL of the pull stream operation is generated, the video stream data is obtained by pulling, and the video stream data is stored in the hardware device; The playback request received by the external interface layer is analyzed 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, at least part of the video stream data in the stored video stream data is pushed to execute the video playback task.
4. The distributed video recording management method based on a private protocol according to claim 1, characterized in that: The hard disk device connected to the underlying library is investigated to determine the video stream data storage state information in the hard disk device; Based on the video stream data storage state information, the data storage strategy of the hard disk device is adjusted, including: The storage interval of the hard disk device connected to the underlying library is investigated to obtain the video stream data storage state information of all storage intervals in the hard disk device; wherein the video stream data storage state information includes the video stream data storage amount and the video stream data storage time of each storage interval; Based on the video stream data storage state information, the priority of the newly added video stream data storage of all storage intervals in the hard disk device is determined; based on the priority of the newly added video stream data storage and the attribute information of the video stream data currently stored in the hard disk device, at least one storage interval is formatted and processed for newly added video stream data storage.
5. A distributed video recording management system implemented based on a private protocol, characterized in that, The video recording device identification module is used to load gRPC protocol and RTSP protocol to the external interface layer, listen to the distributed video recording devices connected to the external interface layer, and obtain the available video operation resource information of all video recording devices; based on the available video operation resource information, it is judged whether the video recording device is in a video operation overload state; if not, the video recording device is determined as a target video recording device in a mobilizable state; The video recording task execution control module is configured to send a video recording configuration instruction to the target video recording device based on a video recording request received by the external interface layer, so that the target video recording device executes a video recording task. The data pull streaming and storage module is configured to perform a pull streaming operation on the target video recording device based on execution process information of the video recording task, to obtain video stream data, and to store the video stream data. The data push streaming and playback module is configured to perform a push streaming operation on the stored video stream data based on a playback request received by the external interface layer, to execute a video recording playback task. The hard disk device troubleshooting module is configured to troubleshoot a hard disk device connected to the underlying library, to determine video stream data storage state information in the hard disk device. The data storage strategy adjustment module is configured to adjust a data storage strategy of the hard disk device based on the video stream data storage state information. The method further includes the following steps: Real-time monitoring of operation parameters of the video recording device, wherein the operation parameters of the video recording device include the number of video streams, the frame rate of video recording, the network bandwidth utilization rate, the memory utilization rate, and the overload duration. Obtaining a first load state evaluation coefficient by using the number of video streams, the frame rate of video recording, and the overload duration. The first load state evaluation coefficient is obtained by the following formula: Wherein, S represents the first load state evaluation coefficient; n represents the number of unit time that the video recording device has run through; G i represents the number of video recording streams corresponding to the i-th unit time; P zi represents the frame rate of video recording corresponding to the i-th unit time; T i represents the overload duration corresponding to the i-th unit time; T c represents the preset overload continuous duration reference value; G b represents the standard deviation of the number of video recording streams corresponding to n unit times; T b represents the standard deviation of the overload duration corresponding to n unit times; Obtaining a compensation coefficient by using the network bandwidth utilization rate and the memory utilization rate. The compensation coefficient is obtained by the following formula: wherein J represents a compensation coefficient; n represents the number of unit times that the video recording device has run through; B i represents the network bandwidth utilization rate corresponding to the i-th unit time; P ni represents the memory utilization rate corresponding to the i-th unit time; P zb represents the standard deviation of the video recording frame rate corresponding to the i-th unit time; G b represents the standard deviation of the number of video recording streams corresponding to n unit times; Obtaining a load evaluation parameter by using the compensation coefficient and the first load state evaluation coefficient. The load evaluation parameter is obtained by the following formula: Wherein, F represents the load evaluation parameter; F0 represents a preset load evaluation parameter base 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 value. When the load evaluation parameter exceeds the preset evaluation parameter threshold value, it is determined that the video recording device is in a video recording operation overload state.
6. The distributed video recording management system implemented based on a private protocol according to claim 5, wherein: The video recording device identification module is further configured to, after determining whether the video recording device is in a video recording operation overload state, if the video recording device is in a video recording operation overload state, not determining the video recording device as a target video recording device in a mobilizable state. The video recording task execution control module is configured to send a video recording configuration instruction to the target video recording device based on a video recording request received by the external interface layer, so that the target video recording device executes a video recording task, including: Analyzing and processing the video recording request received by the external interface layer to determine video recording parameters, and sending a video recording configuration instruction to the target video recording device based on the video recording parameters, so that the target video recording device starts hardware and software, thereby executing a 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. 7.The distributed video recording management system based on a private protocol, as claimed in claim 5, wherein: the data pull streaming and storage module is configured to perform a pull streaming operation on the target video recording device based on the execution process information of the video recording task to obtain video stream data, and store the video stream data, including: determining recording time axis change information of the video recording task based on the execution process information of the video recording task; determining a pull streaming operation start time information of the target video recording device based on the recording time axis change information; generating a RTSP URL of the pull streaming operation based on the pull streaming operation start time information, to thereby pull stream the video stream data, and store the video stream data to the hardware device; the data push streaming and playback module is configured to perform a push streaming operation on the stored video stream data based on the playback request received by the external interface layer, to thereby execute a video recording playback task, including: performing analysis and processing on the playback request received by the external interface layer to obtain a RTSP URL address of the video stream data to be played back; comparing the RTSP URL address with a RTSP URL address of the stored video stream data, and performing a push streaming operation on at least part of the video stream data in the stored video stream data, to thereby execute the video recording playback task. 8.The distributed video recording management system based on a private protocol, as claimed in claim 5, wherein: the hard disk device troubleshooting module is configured to troubleshoot the hard disk device connected to the underlying library, and determine video stream data storage state information in the hard disk device, including: performing storage interval troubleshooting on the hard disk device connected to the underlying library to obtain video stream data storage state information of all storage intervals in the hard disk device; wherein the video stream data storage state information includes video stream data storage amount and video stream data storage time of each storage interval; the data storage strategy adjustment module is configured to adjust a data storage strategy of the hard disk device based on the video stream data storage state information, including: determining an added video stream data storage priority level of all storage intervals in the hard disk device based on the video stream data storage state information; and performing format processing and added video stream data storage processing on at least one storage interval based on the added video stream data storage priority level and attribute information of the video stream data currently required to be stored by the hard disk device.
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