Video data storage method, video data storage system and monitoring component

By monitoring the component in the video data storage system in response to the abnormal status information of the main control component, obtaining temporary video information, and stop obtaining video information after the main control component returns to normal, the problem of video data loss caused by restarting the hard disk recorder is solved, and the integrity and continuity of the video data are achieved.

CN119562022AInactive Publication Date: 2025-03-04ZHEJIANG DAHUA TECH CO LTD
View PDF 14 Cites 0 Cited by

Patent Information

Application Number
CN202510097153.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-22
Publication Date
2025-03-04
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, the problem of restarting the hard disk recorder leads to loss of video data, and there is a lack of effective solutions.

Method used

In the monitoring component of the video data storage system, in response to the abnormal status information sent by the master control component, the temporary video information is started to be obtained from the camera component, and the video information is stopped after the master control component returns to normal state. At the same time, the main control component sends a request for extracting information to obtain temporary video information, which is used to complete the target video file.

Benefits of technology

It realizes seamless connection of the video data acquisition process, avoids video data loss caused by abnormal video recorder and ensures the integrity and continuity of video data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119562022A_ABST
    Figure CN119562022A_ABST
Patent Text Reader

Abstract

The invention relates to a video data storage method, a video data storage system and a monitoring component, the video data storage method is applied to the monitoring component of the video data storage system, and comprises the following steps: in response to first information sent by a main control component, starting to acquire temporary video information from a camera component, the second information sent by the main control component is received; the first information is used for indicating that the main control assembly is in an abnormal working state; the second information is used for indicating the master control assembly to recover from the abnormal working state to the normal working state; in response to an information extraction request sent by the main control component, sending the temporary video information to the main control component, so that the main control component complements the target video file according to the temporary video information; the problem of video data loss caused by abnormity of the video recorder in the video data storage process in the prior art is avoided, and the integrity and continuity of the video data are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data storage, and in particular to a video data storage method, a video data storage system, and a monitoring component. Background Art

[0002] In common surveillance equipment scenarios, DVRs and several front-end cameras are generally deployed. Front-end cameras are mainly used for video acquisition, while DVRs are responsible for centrally storing video data collected by multiple front-end cameras for subsequent video review and retrieval. Although DVRs generally run more stably with the development of software and hardware technology, they may still encounter restarts; when the device restarts, the DVR stops recording, which directly leads to the loss of video data during this period.

[0003] There is no effective solution to the problem of video data loss in the video data storage process in the prior art. Summary of the invention

[0004] Based on this, it is necessary to provide a video data storage method, a video data storage system and a monitoring component to address the above technical problems.

[0005] In a first aspect, the present application provides a video data storage method, which is applied to a monitoring component of a video data storage system; the video data storage system further includes a main control component connected to the monitoring component in communication, and a camera component connected to the monitoring component and the main control component in communication; the method includes: In response to the first information sent by the main control component, start to obtain temporary video information from the camera component until receiving the second information sent by the main control component; the first information is used to indicate that the main control component is in an abnormal working state; the second information is used to indicate that the main control component recovers from the abnormal working state to a normal working state; In response to the information extraction request sent by the main control component, the temporary video information is sent to the main control component, so that the main control component completes the target video file according to the temporary video information.

[0006] In one embodiment, the first information includes interrupt information; and in response to the first information sent by the main control component, starting to obtain temporary video information from the camera component includes: According to the interruption information in the first information, a target interruption program corresponding to the interruption information is run to enable the monitoring component to enter a working mode and start acquiring temporary video information from the camera component.

[0007] In one embodiment, the step of receiving the second information sent by the main control component includes: In response to the second information sent by the main control component, the target interrupt program is interrupted to make the monitoring component enter a low power consumption mode and stop acquiring temporary video information from the camera component.

[0008] In one embodiment, the first information further includes an abnormality indicator; and the method further includes: In response to the information extraction request sent by the main control component, the abnormality identification is sent to the main control component, so that the main control component determines the abnormal cause corresponding to the main control component according to the abnormality identification.

[0009] In one embodiment, the method further comprises: When the video data storage system is in a power-on initialization stage, the camera component configuration information sent by the main control component is received, and a communication connection is established with the camera component according to the camera component configuration information.

[0010] In a second aspect, the present application further provides a video data storage method, which is applied to a main control component of a video data storage system; the method comprises: When the main control component is in an abnormal working state, sending first information to the monitoring component, so that the monitoring component responds to the first information and starts to obtain temporary video information from the camera component; When the main control component recovers from an abnormal working state to a normal working state, sending second information to the monitoring component so that the monitoring component stops acquiring temporary video information from the camera component in response to the second information; Send an information extraction request to the monitoring component, receive the temporary video information sent by the monitoring component in response to the information extraction request, and complete the target video file according to the temporary video information.

[0011] In one of the embodiments, completing the target video file according to the temporary video information includes: Extracting features from the temporary video information to obtain target feature values; According to the target feature value and the temporary video information, the target video file stored in the main control component is completed to obtain a completed video file.

[0012] In one embodiment, the method further comprises: receiving an abnormality indicator sent by the monitoring component in response to the request to extract information; According to the abnormal identification, the abnormal cause corresponding to the main control component is determined.

[0013] In one embodiment, the method further comprises: When the video data storage system is in a power-on initialization stage, camera component configuration information is sent to the monitoring component, so that the monitoring component establishes a communication connection with the camera component according to the camera component configuration information.

[0014] In a third aspect, the present application further provides a video data storage system, the video data storage system comprising a monitoring component, a main control component connected to the monitoring component in communication, and a camera component connected to the monitoring component and the main control component in communication; the monitoring component and the main control component are independently powered; The monitoring component is used to execute the video data storage method described in any one of the embodiments of the first aspect above; The main control component is used to execute the video data storage method described in any one of the embodiments of the second aspect above.

[0015] In one embodiment, the monitoring component includes a first power module and at least one first storage medium; the main control component includes a second power module and at least one second storage medium; The first power module and the second power module are independent of each other; The first storage medium is used to store temporary video information and abnormal identification; The second storage medium is used to store the target video file; The capacity of the first storage medium is smaller than the capacity of the second storage medium.

[0016] In a fourth aspect, the present application also provides a monitoring component that can be applied to the video data storage system described in any one of the embodiments of the third aspect above.

[0017] The above-mentioned video data storage method, video data storage system and monitoring component, the video data storage method is applied to the monitoring component of the video data storage system, including: in response to the first information sent by the main control component, start to obtain temporary video information from the camera component until receiving the second information sent by the main control component; wherein the first information is used to indicate that the main control component is in an abnormal working state; the second information is used to indicate that the main control component recovers from the abnormal working state to the normal working state; based on the first information, it can ensure that the monitoring device responds to the abnormal working state of the main control device in time, so as to quickly take over the video data acquisition task and ensure the integrity of the video data; based on the second information, it can ensure that when the main control device recovers to the normal working state, the monitoring device is controlled to exit the working mode in time to reduce unnecessary resource consumption; further, by responding to the information extraction request sent by the main control component, the temporary video information is sent to the main control component, so that the main control component completes the target video file according to the temporary video information, based on which, the seamless connection of the video data acquisition process is achieved, avoiding the problem of video data loss caused by the abnormality of the recorder in the video data storage process in the prior art, and ensuring the integrity and continuity of the video data. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0019] Figure 1 A schematic diagram of the structure of a video data storage system in one embodiment; Figure 2 A schematic diagram of a flow chart of a video data storage method in one embodiment; Figure 3 A schematic diagram of a flow chart of a video data storage method in another embodiment; Figure 4 A schematic diagram of a flow chart of steps for completing a target video file in one embodiment; Figure 5 The figure is a flowchart of a video data storage method in a specific embodiment. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0021] With the development of software and hardware technologies, hard disk recorders usually run more stably, but they may still encounter restarts, which mainly include two categories: the first category is normal restarts. For example, restarts caused by equipment upgrades, normal equipment operation and maintenance, etc.; specifically, as the equipment running time increases, the frequent application and release of memory by the equipment will cause the equipment memory to become more and more fragmented, which may eventually lead to insufficient memory. Therefore, the equipment also needs to be restarted regularly during normal operation. The second category is abnormal restarts. For example, there are software vulnerabilities, abnormal power failures in the equipment, etc. When the device restarts abnormally, the hard disk recorder will stop recording, which will directly lead to the loss of video data during this period. Based on this, the present application aims to provide a video data storage method to solve the problem of video data loss caused by hard disk recorder restart in the above-mentioned prior art.

[0022] In one embodiment, the video data storage method is applied to Figure 1 The monitoring component 100 in the video data storage system shown; the video data storage system also includes a main control component 200 communicatively connected to the monitoring component 100, and a camera component 300 communicatively connected to the monitoring component 100 and the main control component 200.

[0023] Among them, the monitoring component 100 includes a first control unit, a first power module and at least one first storage medium; wherein the first control unit is used to execute the video data storage method; the first power module can be but is not limited to a rechargeable power module; the first power module is used to supply power to the monitoring component 100, and is also used to store power while supplying power to the monitoring component 100 to ensure the reliability and stability of the power supply.

[0024] Among them, the first storage medium is used to store temporary video information and abnormal identification; the first storage medium can be but is not limited to an SD card or eMMC, and no specific limitation is made here.

[0025] The temporary video information refers to the video data collected by the monitoring component 100 from the camera component during the period when the main control component 200 recovers from an abnormal working state to a normal working state.

[0026] Among them, the abnormality mark is used to characterize the abnormality type of the main control component 200. The abnormality type of the main control component 200 may include, but is not limited to, voltage abnormality, software abnormality, etc., which are not specifically limited here; wherein, voltage abnormality, such as voltage fluctuation, or power failure, etc.; software abnormality, such as active restart, restart triggered by software vulnerability, etc. It can be understood that each abnormality type has a unique corresponding abnormality mark, so that the main control component 200 can accurately locate the cause of the abnormality.

[0027] The main control component 200 includes a second control unit, a second power supply module and at least one second storage medium; wherein the second control unit is used to execute the video data storage method.

[0028] It should be noted that the first power module and the second power module are independent of each other, so that when the second power module of the main control component 200 is powered off, the monitoring component 100 is powered based on the first power mode to ensure the reliability of the monitoring component 100.

[0029] The second storage medium is used to store video files; the second storage medium may be, but is not limited to, a hard disk, and is not specifically limited here.

[0030] It should be noted that the capacity of the first storage medium of the monitoring component 100 is smaller than the capacity of the second storage medium of the main control component 200. Since the restart time of the main control component 200 will not be too long, for example, generally within 5 minutes, a small-capacity storage medium can be selected as the first storage medium of the monitoring component 100 to reduce the waste of resources. It can be understood that "small capacity" is relative to the capacity of the second storage medium in the main control component 200.

[0031] For example, taking a high-definition camera that supports H.264 format 4K resolution as an example, the storage space required for 5 minutes of video data from one high-definition camera is approximately (16Mb (bitrate) / 8)×5×60=600MB. If the monitoring component 100 is connected to a total of 100 of the above-mentioned high-definition cameras, it can be concluded that the total amount of video data for 5 minutes is 600MB×100=60GB. Based on this, selecting a small-capacity storage medium as the first storage medium of the monitoring component 100, such as a 128GB SD card or eMMC, can effectively reduce the waste of resources.

[0032] In an exemplary embodiment, a communication connection is established between the monitoring component 100 and the main control component 200 via a high-speed bus.

[0033] Among them, the high-speed bus refers to a communication path that can provide high-bandwidth, low-latency data transmission. It is used to connect different components and ensure efficient data exchange between components.

[0034] It can be understood that realizing communication between the monitoring component 100 and the main control component 200 based on a high-speed bus can ensure the data transmission rate and improve the timeliness and reliability of data interaction between the monitoring component 100 and the main control component 200.

[0035] In an exemplary embodiment, see Figure 1The video data storage system also includes a network switch 400; the camera component 300 includes a camera device; the camera component 300 is connected to the monitoring component 100 and the main control component 200 through the network switch 400; the network switch 400 can be but is not limited to a network switch chip, which is not specifically limited here.

[0036] In an exemplary embodiment, the monitoring component 100 and the main control component 200 are each equipped with a network card for realizing data transmission and communication.

[0037] In one embodiment, Figure 2 As shown, Figure 2 The flowchart of a video data storage method in one embodiment is shown; the video data storage method is applied to the monitoring component of the above-mentioned video data storage system, and includes the following steps: Step S201, in response to the first information sent by the main control component, start to obtain temporary video information from the camera component until the second information sent by the main control component is received.

[0038] The first information is used to indicate that the main control component is in an abnormal working state; the second information is used to indicate that the main control component recovers from the abnormal working state to the normal working state.

[0039] It should be noted that the reasons why the main control component is in an abnormal working state may be, but is not limited to, voltage abnormality, software abnormality, etc., which are not specifically limited here.

[0040] The first information includes at least interrupt information, which is used to trigger the monitoring component to take over the video data acquisition task of the main control component to start acquiring temporary video information from the camera component. The second information is used to terminate the monitoring component from acquiring temporary video information from the camera component.

[0041] In an exemplary embodiment, the first information is also used to trigger the monitoring component to record and store the abnormal identification fed back by the main control component; wherein the abnormal identification is used to characterize the abnormal type of the main control component. The abnormal type of the main control component may include, but is not limited to, voltage abnormality, software abnormality, etc.; wherein, voltage abnormality, such as voltage fluctuation, or power failure, etc.; software abnormality, such as active restart, restart triggered by software vulnerability, etc. It is understandable that each abnormal type has a unique corresponding abnormal identification so that the main control component can accurately locate the cause of the abnormality.

[0042] Exemplarily, when the main control component is in an abnormal working state, a first message is sent to the monitoring component; the monitoring component responds to the first message sent by the main control component and starts to obtain temporary video information from the camera component until the main control component recovers from the abnormal working state to the normal working state, and the monitoring component receives the second message sent by the main control component and stops obtaining temporary video information from the camera component.

[0043] Step S202, in response to the information extraction request sent by the main control component, the temporary video information is sent to the main control component, so that the main control component completes the target video file according to the temporary video information.

[0044] Among them, the information extraction request includes a video extraction request; the video extraction request is used to obtain temporary video information from the monitoring component; in an exemplary embodiment, the information extraction request also includes an exception identification extraction request; the exception identification extraction request is used to obtain the exception identification from the monitoring component.

[0045] The target video file refers to a video file that matches the temporary video information.

[0046] Exemplarily, when the main control component recovers from an abnormal working state to a normal working state, a video extraction request is sent to the monitoring component; the monitoring component responds to the video extraction request sent by the main control component and sends temporary video information to the main control component, so that the main control component completes the target video file according to the temporary video information to ensure the integrity and continuity of the target video file.

[0047] In this embodiment, based on the first information, it can ensure that the monitoring device responds to the abnormal working state of the main control device in time, so as to quickly take over the video data acquisition task to obtain temporary video information, laying a foundation for ensuring the integrity of the video data; based on the second information, it can ensure that when the main control device recovers from the abnormal working state to the normal working state, the monitoring device is controlled to exit the working mode in time to reduce unnecessary resource consumption; further, the monitoring component responds to the information extraction request sent by the main control component, and sends the temporary video information to the main control component, so that the main control component completes the target video file according to the temporary video information, thereby realizing seamless connection of the video data acquisition process, avoiding the problem of video data loss caused by recorder abnormality during video data storage in the prior art, and ensuring the integrity and continuity of the video data.

[0048] In one embodiment, the first information includes interrupt information; in response to the first information sent by the main control component, starting to obtain temporary video information from the camera component includes the following steps: According to the interruption information in the first information, a target interruption program corresponding to the interruption information is run to enable the monitoring component to enter a working mode and start acquiring temporary video information from the camera component.

[0049] Among them, the interrupt information can be but is not limited to voltage abnormality interrupt information or software reset interrupt information, which is not specifically limited here; it can be understood that the interrupt information has a unique corresponding target interrupt program; exemplarily, when the interrupt information is voltage abnormality interrupt information, the target interrupt program is the voltage abnormality interrupt processing routine; when the interrupt information is software reset interrupt information, the target interrupt program is the software reset interrupt processing routine.

[0050] It is understandable that during the power-on initialization phase of the monitoring component, the monitoring component needs to register an interrupt handling routine that matches the interrupt information sent by the main control component. The specific registration process is the same as the principle of the traditional interrupt handling routine registration process, so it will not be repeated here.

[0051] Among them, the target interrupt program is used to enable the monitoring component to collect the video information switch of the camera component and wake up the monitoring component to obtain temporary video information process.

[0052] The target interrupt program is also used to record and store the exception identifier. For example, assuming that the exception identifier corresponding to the voltage exception is 0x1, and the exception identifier corresponding to the software exception is 0x2; when the target interrupt program is a voltage exception interrupt processing routine, the voltage exception interrupt processing routine is used to record the exception identifier 0x1 corresponding to the main control component, and store the exception identifier 0x1 in the first storage medium corresponding to the monitoring component. When the target interrupt program is a software reset interrupt processing routine, the software reset interrupt processing routine is used to record the exception identifier 0x2 corresponding to the main control component, and store the exception identifier 0x2 in the first storage medium corresponding to the monitoring component.

[0053] In an exemplary embodiment, the monitoring component is provided with at least one interrupt information input port, and the main control component is provided with at least one interrupt information output port; wherein the interrupt information input port is connected to the interrupt information output port in a one-to-one correspondence.

[0054] Taking the abnormal type of the main control component as voltage abnormality as an example, when the main control component is in an abnormal working state due to the voltage abnormality, the voltage abnormality interrupt information is sent to the interrupt information input port connected to the voltage abnormality interrupt information output port in the monitoring component through the voltage abnormality interrupt information output port of the main control component, so that the monitoring component runs the target interrupt program corresponding to the voltage abnormality interrupt information, i.e., the voltage abnormality interrupt processing routine, according to the voltage abnormality interrupt information, thereby making the monitoring component enter the working mode, start to obtain temporary video information from the camera component, and store the temporary video information in the first storage medium; wherein the first storage medium can be but is not limited to a small-capacity storage medium, which is not specifically limited here.

[0055] It can be understood that when the abnormal type of the main control component is other types, the specific implementation method in which the monitoring component responds to the first information sent by the main control component and starts to obtain temporary video information from the camera component is the same as the implementation principle recorded in the above embodiment, and will not be repeated here.

[0056] In this embodiment, the monitoring component can respond to the abnormal working state of the main control component in a timely manner based on the interrupt information and the target interrupt program corresponding to the interrupt information, thereby ensuring that the video data acquisition task of the main control component is quickly taken over and the temporary video information is acquired in a timely manner, laying a foundation for ensuring the integrity and continuity of the video data. At the same time, based on the interrupt information and the target interrupt program, the real-time and reliability of the monitoring component's response to the working state of the main control component are improved.

[0057] In one embodiment, until the second information sent by the main control component is received, the following steps are included: In response to the second information sent by the main control component, the target interrupt program is interrupted to make the monitoring component enter a low power consumption mode and stop acquiring temporary video information from the camera component.

[0058] Among them, the second information is used to turn off the switch of the monitoring component collecting video information of the camera component, stop the monitoring component from obtaining temporary video information from the camera component, and stop related storage services.

[0059] Exemplarily, after the main control component recovers from an abnormal working state to a normal working state, the main control component sends a second message to the monitoring component to ensure that the monitoring component responds to the second message sent by the main control component, interrupts the target interrupt program, and then exits the working mode and enters a low power consumption mode, stops continuing to obtain temporary video information from the camera component, and reduces unnecessary resource consumption.

[0060] In this embodiment, based on the second information, it can be ensured that when the main control device is restored to a normal working state, the monitoring device is controlled to exit the working mode in time to reduce unnecessary resource consumption.

[0061] In one embodiment, the first information further includes an abnormality indicator, and the video data storage method further includes the following steps: In response to the information extraction request sent by the main control component, an abnormality identifier is sent to the main control component, so that the main control component determines the abnormal cause corresponding to the main control component according to the abnormality identifier.

[0062] The information extraction request includes an exception identification extraction request, and the exception identification extraction request is used to obtain the exception identification from the monitoring component.

[0063] Exemplarily, when the main control component recovers from an abnormal working state to a normal working state, the main control component sends a request for extracting the exception identification to the monitoring component, and the monitoring component receives and responds to the request for extracting the exception identification sent by the main control component, and sends the exception identification to the main control component, so that the main control component determines the abnormal cause corresponding to the main control component based on the exception identification.

[0064] In this embodiment, based on the abnormal identification, the main control component can accurately locate the cause of the abnormality, which helps to avoid misjudgment caused by manual judgment and ensures the accuracy of abnormality analysis.

[0065] In one embodiment, the video data storage method further comprises the following steps: When the video data storage system is in a power-on initialization stage, the camera component configuration information sent by the main control component is received, and a communication connection is established with the camera component according to the camera component configuration information.

[0066] Among them, the power-on initialization of the video data storage system refers to the power-on initialization of the main control component and the power-on initialization of the monitoring component; it should be noted that the power-on initialization of the main control component can refer to the initialization process and business of the traditional video data storage device, which will not be repeated here.

[0067] The monitoring component power-on initialization includes at least registering an interrupt processing routine, establishing a communication channel with the main control component, and establishing a communication channel with the camera component. It should be noted that during the monitoring component power-on initialization stage, the monitoring component is in a low power consumption mode.

[0068] Among them, registering the interrupt processing routine includes registering the interrupt processing routine matching the interrupt information sent by the main control component. The specific registration process is the same as the principle of the traditional interrupt processing routine registration process, which will not be repeated here.

[0069] Establishing a communication channel with the main control component, including establishing a communication channel with the main control component based on a high-speed bus, to achieve information exchange between the two parties.

[0070] Establishing a communication channel with the camera component includes receiving the camera component configuration information sent by the main control component, and establishing a communication connection with the camera component according to the camera component configuration information to achieve synchronization of the camera component configuration information between the monitoring component and the main control component.

[0071] It should be noted that when the main control component establishes a video channel with the camera component through the network, the camera component needs to be configured. Since the monitoring component also needs to establish a communication channel with the corresponding camera component to receive the video information collected by the camera component, the existing camera component configuration information of the main control component can be directly synchronized to the monitoring component to improve the initialization efficiency of the monitoring component and ensure the consistency of the configuration information.

[0072] In this embodiment, when the video data storage system is in the power-on initialization stage, the initialization efficiency of the monitoring component is improved and the consistency of the configuration information is ensured by synchronizing the camera component configuration information sent by the main control component to the monitoring component.

[0073] In one embodiment, Figure 3 As shown, Figure 3 A schematic flow chart of a video data storage method in another embodiment; the video data storage method is applied to the main control component of the above-mentioned video data storage system, and includes the following steps: Step S301, when the main control component is in an abnormal working state, sends first information to the monitoring component, so that the monitoring component responds to the first information and starts to obtain temporary video information from the camera component.

[0074] Step S302, when the main control component recovers from the abnormal working state to the normal working state, sends second information to the monitoring component, so that the monitoring component responds to the second information and stops obtaining temporary video information from the camera component.

[0075] Step S303: Send an information extraction request to the monitoring component, receive temporary video information sent by the monitoring component in response to the information extraction request, and complete the target video file according to the temporary video information.

[0076] Among them, extracting information request includes extracting video request.

[0077] Exemplarily, after the initialization of the video data storage system is completed, the monitoring component is in a low-power consumption mode; when the main control component is in an abnormal working state after working for a period of time, a first message is sent to the monitoring component, so that the monitoring component responds to the first message, switches from the low-power consumption mode to the working mode, and starts to obtain temporary video information from the camera component, until the main control component recovers from the abnormal working state to the normal working state, and the main control component sends a second message to the monitoring component, so that the monitoring component responds to the second message, switches from the working mode to the low-power consumption mode, and stops continuing to obtain temporary video information from the camera component. Further, the main control component sends a video extraction request to the monitoring component, receives the temporary video information sent by the monitoring component in response to the video extraction request, and completes the target video file according to the temporary video information.

[0078] In this embodiment, based on the first information, it can ensure that the monitoring device responds to the abnormal working state of the main control device in time, so as to quickly take over the video data acquisition task to obtain temporary video information, laying a foundation for ensuring the integrity of the video data; based on the second information, it can ensure that when the main control device recovers from the abnormal working state to the normal working state, the monitoring device is controlled to exit the working mode in time to reduce unnecessary resource consumption; further, the monitoring component responds to the information extraction request sent by the main control component, and sends the temporary video information to the main control component, so that the main control component completes the target video file according to the temporary video information, thereby realizing seamless connection of the video data acquisition process, avoiding the problem of video data loss caused by recorder abnormality during video data storage in the prior art, and ensuring the integrity and continuity of the video data.

[0079] In one embodiment, Figure 4 As shown, Figure 4 The figure is a flow chart of the steps of completing the target video file in one embodiment; completing the target video file according to the temporary video information includes the following steps: Step S401, extracting features from temporary video information to obtain target feature values.

[0080] Among them, the target feature value at least includes a camera component identifier and a timestamp; wherein the camera component identifier is a unique identifier corresponding to the camera component, which is used to characterize the source of the temporary video information; the timestamp includes the recording start time and the recording end time, which is used to determine the specific position of the temporary video information on the timeline.

[0081] Step S402, according to the target feature value and the temporary video information, the target video file stored in the main control component is completed to obtain a completed video file.

[0082] The target video file refers to a video file stored in the second storage medium of the main control component and matching the temporary video information; it can be understood that the target video file and the temporary video information come from the same group of camera components.

[0083] Exemplarily, feature extraction is performed on temporary video information to obtain a camera component identifier and a timestamp; then, based on the camera component identifier, a target video file matching the temporary video information is determined from the second storage medium of the main control component; based on the timestamp and the temporary video information, the target video file is completed to obtain a completed video file.

[0084] In this embodiment, by extracting features from temporary video information to obtain target feature values, the target video file is completed and repaired based on the target feature values, thereby ensuring the continuity and integrity of the video data.

[0085] In one embodiment, the video data storage method further comprises the following steps: Step 1, receiving an abnormality indicator sent by a monitoring component in response to a request to extract information.

[0086] Step 2: Determine the abnormal cause corresponding to the main control component according to the abnormal identification.

[0087] The request for extracting information includes a request for extracting anomaly identification.

[0088] Exemplarily, after the main control component recovers from an abnormal working state to a normal working state, the main control component sends a request to extract the exception identification to the monitoring component, so that the monitoring component sends the exception identification to the main control component according to the request to extract the exception identification; the exception identification is then received by the main control component, and the abnormal cause corresponding to the main control component is determined according to the abnormal identification; for example, assuming that the abnormal identification is 0x1 indicating a voltage abnormality, when the abnormal identification received by the main control component is 0x1, according to the abnormal identification 0x1, it can be determined that the abnormal type corresponding to the main control component is a voltage abnormality, and then based on the abnormal type, the specific abnormal cause can be further determined, such as power failure, voltage fluctuation, etc.

[0089] In this embodiment, based on the abnormal identification, the main control component can be assisted to accurately locate the cause of the abnormality, which helps to avoid misjudgment caused by manual judgment and ensures the accuracy of abnormality analysis.

[0090] In one embodiment, the video data storage method further comprises the following steps: When the video data storage system is in a power-on initialization stage, the camera component configuration information is sent to the monitoring component, so that the monitoring component establishes a communication connection with the camera component according to the camera component configuration information.

[0091] In this embodiment, the camera component configuration information is sent to the monitoring component by the main control component, which can improve the initialization efficiency of the monitoring component and ensure the consistency of the camera component configuration information of the monitoring component and the main control component.

[0092] In a specific embodiment, see Figure 5 , the video data storage method is applied to Figure 1 The video data storage system shown; the video data storage method comprises the following steps: Step S501, when the main control component is in an abnormal working state, sending first information to the monitoring component.

[0093] The first information includes interruption information and abnormal identification.

[0094] Step S502, the monitoring component receives and responds to the first information sent by the main control component, enters the working mode, starts to obtain temporary video information from the camera component, and stores the temporary video information and the abnormality mark in the first storage medium.

[0095] Step S503: When the main control component recovers from the abnormal working state to the normal working state, the second information is sent to the monitoring component.

[0096] Step S504, the monitoring component receives and responds to the second information sent by the main control component, enters a low power consumption mode, and stops acquiring temporary video information from the camera component.

[0097] It is understandable that after the main control component recovers from the abnormal working state to the normal working state, it will continue to perform the video data acquisition task.

[0098] Step S505: the main control component sends a video extraction request to the monitoring component.

[0099] Step S506, the monitoring component receives and responds to the video extraction request sent by the main control component, and sends the temporary video information to the main control component.

[0100] Step S507: the main control component receives the temporary video information and completes the target video file according to the temporary video information.

[0101] Step S508: the main control component sends a request for extracting an abnormality mark to the monitoring component.

[0102] Step S509: the monitoring component receives and responds to the request for extracting the abnormality mark sent by the main control component, and sends the abnormality mark to the main control component.

[0103] Step S510: the main control component receives the abnormality identification and determines the abnormality cause corresponding to the main control component according to the abnormality identification.

[0104] The above-mentioned video data storage method, based on the first information, can ensure that the monitoring device responds to the abnormal working state of the main control device in time, so as to quickly take over the video data acquisition task to obtain temporary video information, laying a foundation for ensuring the integrity of the video data; based on the second information, it can ensure that when the main control device recovers from the abnormal working state to the normal working state, the monitoring device is controlled to exit the working mode in time to reduce unnecessary resource consumption; further, the monitoring component responds to the information extraction request sent by the main control component, and sends the temporary video information to the main control component, so that the main control component completes the target video file according to the temporary video information, realizing the seamless connection of the video data acquisition process, avoiding the problem of video data loss caused by the abnormal recorder in the video data storage process in the prior art, and ensuring the integrity and continuity of the video data. At the same time, based on the abnormal identification, it is convenient for the main control component to accurately locate the cause of the abnormality, which helps to avoid misjudgment caused by manual judgment and ensures the accuracy of abnormal analysis.

[0105] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0106] Based on the same inventive concept, the embodiment of the present application also provides a video data storage system for implementing the video data storage method involved above. The implementation scheme for solving the problem provided by the system is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more video data storage system embodiments provided below can refer to the limitations on the video data storage method above, and will not be repeated here.

[0107] In an exemplary embodiment, Figure 1 As shown, a video data storage system is provided, which includes a monitoring component 100, a main control component 200 communicatively connected to the monitoring component 100, and a camera component 300 communicatively connected to the monitoring component 100 and the main control component 200; the monitoring component 100 and the main control component 200 are independently powered.

[0108] Among them, the monitoring component 100 includes a first power supply module and at least one first storage medium; the main control component 200 includes a second power supply module and at least one second storage medium; the first power supply module and the second power supply module are independent of each other; the first storage medium is used to store temporary video information and abnormal identification; the second storage medium is used to store target video files; wherein the capacity of the first storage medium is smaller than the capacity of the second storage medium.

[0109] The above-mentioned video data storage system, based on the monitoring component 100, can realize seamless connection of the video data acquisition process, avoid the problem of video data loss caused by abnormal recorder during video data storage in the prior art, and ensure the integrity and continuity of the video data.

[0110] In one embodiment, a monitoring component is provided, which can be applied to the video data storage system described in the above embodiment. The monitoring component includes a first storage medium; wherein the first storage medium is a small-capacity storage medium; wherein "small-capacity" refers to the capacity of the second storage medium of the main control component in the video data storage system.

[0111] The monitoring component can achieve seamless connection of the video data acquisition process, avoid the problem of video data loss caused by abnormal recorder during video data storage in the prior art, and ensure the integrity and continuity of the video data.

[0112] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0113] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0114] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0115] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0116] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A video data storage method, characterized in that: A monitoring component applied to a video data storage system; the video data storage system further comprises a main control component connected to the monitoring component in communication, and a camera component connected to the monitoring component and the main control component in communication; the method comprises: In response to the first information sent by the main control component, start to obtain temporary video information from the camera component until receiving the second information sent by the main control component; the first information is used to indicate that the main control component is in an abnormal working state; the second information is used to indicate that the main control component recovers from the abnormal working state to a normal working state; In response to the information extraction request sent by the main control component, the temporary video information is sent to the main control component, so that the main control component completes the target video file according to the temporary video information.

2. The method according to claim 1, characterized in that The first information includes interrupt information; and the step of starting to obtain temporary video information from the camera component in response to the first information sent by the main control component includes: According to the interruption information in the first information, a target interruption program corresponding to the interruption information is run to enable the monitoring component to enter a working mode and start acquiring temporary video information from the camera component.

3. The method according to claim 2, characterized in that The method of receiving the second information sent by the main control component includes: In response to the second information sent by the main control component, the target interrupt program is interrupted to make the monitoring component enter a low power consumption mode and stop acquiring temporary video information from the camera component.

4. The method according to claim 1, characterized in that: The first information also includes an abnormality mark; and the method further includes: In response to the information extraction request sent by the main control component, the abnormality identification is sent to the main control component, so that the main control component determines the abnormal cause corresponding to the main control component according to the abnormality identification.

5. The method according to claim 1, characterized in that The method further comprises: When the video data storage system is in a power-on initialization stage, the camera component configuration information sent by the main control component is received, and a communication connection is established with the camera component according to the camera component configuration information.

6. A video data storage method, characterized in that: A main control component applied to a video data storage system; the method comprises: When the main control component is in an abnormal working state, sending first information to the monitoring component, so that the monitoring component responds to the first information and starts to obtain temporary video information from the camera component; When the main control component recovers from an abnormal working state to a normal working state, sending second information to the monitoring component so that the monitoring component stops acquiring temporary video information from the camera component in response to the second information; Send an information extraction request to the monitoring component, receive the temporary video information sent by the monitoring component in response to the information extraction request, and complete the target video file according to the temporary video information.

7. The method according to claim 6, characterized in that The method of completing the target video file according to the temporary video information includes: Extracting features from the temporary video information to obtain target feature values; According to the target feature value and the temporary video information, the target video file stored in the main control component is completed to obtain a completed video file.

8. The method according to claim 6, characterized in that The method further comprises: receiving an abnormality indicator sent by the monitoring component in response to the request to extract information; According to the abnormal identification, the abnormal cause corresponding to the main control component is determined.

9. The method according to claim 6, characterized in that The method further comprises: When the video data storage system is in a power-on initialization stage, camera component configuration information is sent to the monitoring component, so that the monitoring component establishes a communication connection with the camera component according to the camera component configuration information.

10. A video data storage system, characterized in that: The video data storage system comprises a monitoring component, a main control component connected to the monitoring component in communication, and a camera component connected to the monitoring component and the main control component in communication; the monitoring component and the main control component are independently powered; The monitoring component is used to execute the video data storage method according to any one of claims 1 to 5; The main control component is used to execute the video data storage method described in any one of claims 6 to 9.

11. The video data storage system according to claim 10, characterized in that: The monitoring component includes a first power module and at least one first storage medium; the main control component includes a second power module and at least one second storage medium; The first power module and the second power module are independent of each other; The first storage medium is used to store temporary video information and abnormal identification; The second storage medium is used to store the target video file; The capacity of the first storage medium is smaller than the capacity of the second storage medium.

12. A monitoring component, characterized in that: The present invention can be applied to the video data storage system described in any one of claims 10 to 11.

Citation Information

Patent Citations

  • DVR (Digital Video Recorder) as well as data backup and recovery method and system thereof

    CN101873462A

  • Panoramic video synchronous splicing system and method and panoramic video display device

    CN107396068A

  • Method for realizing interrupt response by using BMC on Feiteng platform

    CN110888836A

  • Debugging backup method and server

    CN111221677A

  • Domestic Feiteng server supporting NVDIMM and data protection method

    CN113050896A