CN110996056B - Video storage method and device of cascade monitoring system - Google Patents

Video storage method and device of cascade monitoring system Download PDF

Info

Publication number
CN110996056B
CN110996056B CN201911215790.4A CN201911215790A CN110996056B CN 110996056 B CN110996056 B CN 110996056B CN 201911215790 A CN201911215790 A CN 201911215790A CN 110996056 B CN110996056 B CN 110996056B
Authority
CN
China
Prior art keywords
video data
memory card
local memory
storage
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911215790.4A
Other languages
Chinese (zh)
Other versions
CN110996056A (en
Inventor
王飞
李辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201911215790.4A priority Critical patent/CN110996056B/en
Publication of CN110996056A publication Critical patent/CN110996056A/en
Application granted granted Critical
Publication of CN110996056B publication Critical patent/CN110996056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a video storage method and a video storage device of a cascade monitoring system, wherein the method comprises the following steps: the cascade monitoring system judges whether the current residual memory of the local memory card is greater than or equal to a preset threshold value under the condition of detecting the network disconnection; if the current residual memory of the local memory card is larger than or equal to the preset threshold value, acquiring the data type of the video data acquired after the network is disconnected; the video data are screened according to the data types, and the screened video data are stored in the local memory card, so that the problem of how to store more useful data in a limited storage space through IPC local storage in the related technology during network disconnection can be solved, when a network disconnection event occurs, videos are classified according to the characteristics of video contents in a cascade network, and the storage of data of effective pictures is preferentially ensured under the extreme condition.

Description

Video storage method and device of cascade monitoring system
Technical Field
The invention relates to the field of security and protection streaming media, in particular to a video storage method and device of a cascade monitoring system.
Background
In a scene with a wide coverage range, such as a villa or a mall, the network coverage range is mostly increased by using the prior art scheme through repeater extension or networking.
When the network hard disk video recorder NVR is restarted or the network is disconnected, the video file is stored in an SD card of the network camera IPC, and when the network is recovered, the NVR sends a video downloading request in the network disconnection time period and restores the video file again. The SD card can only carry out local storage, the storage space is limited, and secondly, the characteristics of the security industry determine that the video has priority and more useful information can be stored in the limited storage space.
In the related art, no solution is provided for the problem of how to store more useful data in a limited storage space through IPC local storage when a network is disconnected.
Disclosure of Invention
The embodiment of the invention provides a video storage method and a video storage device of a cascade monitoring system, which are used for at least solving the problem of how to store more useful data in a limited storage space through IPC local storage in the related art when a network is disconnected.
According to an embodiment of the present invention, there is provided a video storage method of a cascade monitoring system, including:
the cascade monitoring system judges whether the current residual memory of the local memory card is greater than or equal to a preset threshold value under the condition of detecting the network disconnection;
if the current residual memory of the local memory card is larger than or equal to the preset threshold value, acquiring the data type of the video data acquired after the network is disconnected;
and screening the video data according to the data type, and storing the screened video data into the local memory card.
Optionally, the screening the video data according to the data type, and storing the screened video data in the local memory card includes:
reserving first target video data of a predetermined data type in the video data;
storing the first target video data into the local memory card.
Optionally, the method further comprises:
if the current residual memory of the local memory card is smaller than the preset threshold value, under the condition that video data under a static scene exists in the local memory card, after deleting part or all of the video data under the static scene according to the storage time sequence, storing the first target video data into the local memory card;
and under the condition that video data under a static scene does not exist in the local memory card and video data which are not in the preset data type exist, deleting part or all of the video data which are not in the preset data type according to the storage time sequence, and then storing the first target video data into the local memory card.
Optionally, the method further comprises:
and sending the first target video data to a cascaded subordinate cascade node under the condition that the video data under a static scene does not exist in the local storage card and the video data of the non-predetermined data type does not exist, and sending a first prompt message to the subordinate cascade node, wherein the first prompt message is used for prompting the subordinate cascade node to store the first target video data in a local storage card of the subordinate cascade node.
Optionally, the method further comprises:
and if the current residual memory of the local memory card is smaller than the preset threshold value, sending a notification message to a lower cascade node of the cascade, wherein the notification message is used for notifying the lower cascade node of a network disconnection event.
Optionally, after sending the notification message to the lower cascade node of the cascade, the method further includes:
receiving second target video data of a preset data type sent by the lower cascade node;
judging whether the current residual memory of the local memory card is greater than or equal to the preset threshold value;
and if the current residual memory of the local memory card is greater than or equal to the preset threshold value, storing the second target video data into the local memory card.
Optionally, the method further comprises:
if the current residual memory of the local memory card is smaller than the preset threshold value, under the condition that video data under a static scene exists in the local memory card, after deleting part or all of the video data under the static scene according to the storage time sequence, storing the second target video data into the local memory card;
and under the condition that the local memory card does not have video data in a static scene and has video data which is not in the preset data type, deleting part or all of the video data which is not in the preset data type according to the storage time sequence, and then storing the second target video data into the local memory card.
Optionally, the method further comprises:
and sending the second target video data to the subordinate cascade node and sending a second prompt message to the subordinate cascade node under the condition that the local storage card does not have video data in a static scene and does not have video data of a non-predetermined data type, wherein the second prompt message is used for prompting the subordinate cascade node to store the second target video data in a local storage card of the subordinate cascade node and prompting the subordinate cascade node to store the target video data of the predetermined data type collected or received after the current time.
According to another embodiment of the present invention, there is also provided a video storage device of a cascade monitoring system, including:
the first judgment module is used for judging whether the current residual memory of the local memory card is greater than or equal to a preset threshold value or not when the cascade monitoring system detects the network disconnection;
the acquisition module is used for acquiring the data type of the video data acquired after the network is disconnected if the current residual memory of the local memory card is greater than or equal to the preset threshold;
and the first storage module is used for screening the video data according to the data type and storing the screened video data into the local storage card.
Optionally, the first storage module includes:
the reservation submodule is used for reserving first target video data of a preset data type in the video data;
and the first storage submodule is used for storing the first target video data into the local storage card.
Optionally, the apparatus further comprises:
the second storage submodule is used for storing the first target video data into the local storage card after deleting part or all of the video data under the static scene according to the storage time sequence under the condition that the video data under the static scene exists in the local storage card if the current residual memory of the local storage card is smaller than the preset threshold;
and the third storage submodule is used for storing the first target video data into the local storage card after deleting part or all of the video data which are not in the preset data type according to the storage time sequence under the condition that the video data in the static scene do not exist in the local storage card and the video data which are not in the preset data type exist.
Optionally, the apparatus further comprises:
the sending submodule is configured to send the first target video data to a cascaded subordinate cascade node and send a first prompt message to the subordinate cascade node when the local memory card does not have video data in a static scene and does not have video data of a non-predetermined data type, where the first prompt message is used to prompt the subordinate cascade node to store the first target video data in a local memory card of the subordinate cascade node.
Optionally, the apparatus further comprises:
a first sending module, configured to send a notification message to a cascaded subordinate cascaded node if the current remaining memory of the local memory card is smaller than the predetermined threshold, where the notification message is used to notify the subordinate cascaded node of a network outage event.
Optionally, the apparatus further comprises:
the receiving module is used for receiving second target video data of a preset data type sent by the lower cascade node;
a second judging module, configured to judge whether a current remaining memory of the local memory card is greater than or equal to the predetermined threshold;
and the second storage module is used for storing the second target video data into the local storage card if the current residual memory of the local storage card is greater than or equal to the preset threshold value.
Optionally, the apparatus further comprises:
a third storage module, configured to, if the current remaining memory of the local memory card is smaller than the predetermined threshold, store the second target video data in the local memory card after deleting part or all of the video data in the static scene according to the storage time sequence when the video data in the static scene exists in the local memory card;
and the fourth storage module is configured to, in a case that the local storage card does not have video data in a static scene and has video data of a non-predetermined data type, delete part or all of the video data of the non-predetermined data type according to a chronological order of storage, and store the second target video data in the local storage card.
Optionally, the apparatus further comprises:
a second sending module, configured to send, when there is no video data in a static scene in the local storage card and there is no video data that is not of the predetermined data type, the second target video data to the subordinate cascade node, and send a second prompt message to the subordinate cascade node, where the second prompt message is used to prompt the subordinate cascade node to store the second target video data in a local storage card of the subordinate cascade node, and prompt the subordinate cascade node to store the target video data of the predetermined data type that is collected or received after the current time.
According to a further embodiment of the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the cascade monitoring system judges whether the current residual memory of the local memory card is greater than or equal to the preset threshold value under the condition of detecting the network disconnection; if the current residual memory of the local memory card is larger than or equal to the preset threshold value, acquiring the data type of the video data acquired after the network is disconnected; the video data are screened according to the data types, and the screened video data are stored in the local memory card, so that the problem of how to store more useful data in a limited storage space through IPC local storage in the related technology during network disconnection can be solved, when a network disconnection event occurs, videos are classified according to the characteristics of video contents in a cascade network, and the storage of data of effective pictures is preferentially ensured under the extreme condition.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a mobile terminal of a video storage method of a cascade monitoring system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a video storage method of a tandem surveillance system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a networking topology of a monitoring cascade system according to an embodiment of the invention;
FIG. 4 is a flow diagram of a broken network keep-alive storage in a cascading system in accordance with an embodiment of the present invention;
fig. 5 is a block diagram of a video storage device of a cascading monitoring system according to an embodiment of the invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a video storage method of a tandem monitoring system according to an embodiment of the present invention, as shown in fig. 1, a mobile terminal 10 may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, and optionally, the mobile terminal may further include a transmission device 106 for a communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to the message receiving method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a video storage method of a cascade monitoring system operating in the mobile terminal or the network architecture is provided, and fig. 2 is a flowchart of the video storage method of the cascade monitoring system according to the embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, the cascade monitoring system judges whether the current residual memory of the local memory card is larger than or equal to a preset threshold value under the condition of detecting the network disconnection;
the predetermined threshold in the embodiment of the present invention may be set according to actual situations, and for example, may be set to 500KB, 1000KB, or the like.
Step S204, if the current residual memory of the local memory card is greater than or equal to the preset threshold, acquiring the data type of the video data acquired after the network is disconnected;
that is, if the storage space is sufficient, the data can be directly stored.
And step S206, screening the video data according to the data type, and storing the screened video data into the local memory card.
Due to insufficient residual memory, a part of the stored data can be deleted and then stored, and specific deleted content can be carried out according to the priority of the video data, for example, data with low priority can be deleted, certain type of video data can also be deleted, and further, first target video data with a preset data type in the video data is reserved; storing the first target video data into the local memory card. The predetermined data type may be preset, for example, it may be a key frame, i.e. a part or all of non-key frames are deleted, and a space for storing the key frame collected after the network is disconnected is set.
Through the steps S202 to S206, the cascade monitoring system determines whether the current remaining memory of the local memory card is greater than or equal to the predetermined threshold value when detecting the network outage; if the current residual memory of the local memory card is larger than or equal to the preset threshold value, acquiring the data type of the video data acquired after the network is disconnected; the video data are screened according to the data types, and the screened video data are stored in the local memory card, so that the problem of how to store more useful data in a limited storage space through IPC local storage in the related technology during network disconnection can be solved, when a network disconnection event occurs, videos are classified according to the characteristics of video contents in a cascade network, and the storage of data of effective pictures is preferentially ensured under the extreme condition.
In an optional embodiment, if the current remaining memory of the local memory card is smaller than the predetermined threshold, in the case that video data in a static scene exists in the local memory card, after deleting part or all of the video data in the static scene according to the storage time sequence, since the video data in a dynamic scene is important, that is, the priority of the video data in the dynamic scene is higher than that of the video data in the static scene, the video data in the part or all of the static scene may be deleted according to the storage time sequence, and the first target video data may be stored in the local memory card; and under the condition that video data under a static scene does not exist in the local memory card and video data which is not in the preset data type exists, deleting part or all of the video data which is not in the preset data type according to the storage time sequence, for example deleting part or all of non-key frames, and storing the first target video data into the local memory card.
In another optional embodiment, when there is no video data in a static scene and no video data of a non-predetermined data type in the local memory card, that is, when there is insufficient memory in the local memory card and the stored video data are all relatively important video data, the first target video data is sent to a cascaded subordinate cascade node, the cascaded subordinate cascade node stores the video data, specifically, a first prompt message is sent to the subordinate cascade node, and the subordinate cascade node stores the first target video data in a local memory card of the subordinate cascade node according to the first prompt message.
In the embodiment of the present invention, if the current remaining memory of the local memory card is smaller than the predetermined threshold, a notification message is sent to a cascaded subordinate cascade node to notify the subordinate cascade node of a network disconnection event, so that the subordinate cascade node knows the network disconnection event. Further, after sending the notification message to the cascaded subordinate cascading nodes, receiving second target video data of a predetermined data type sent by the subordinate cascading nodes; judging whether the current residual memory of the local memory card is greater than or equal to the preset threshold value; and if the current residual memory of the local memory card is greater than or equal to the preset threshold value, storing the second target video data into the local memory card.
In an optional embodiment, if the current remaining memory of the local memory card is smaller than the predetermined threshold, in the case that video data in a static scene exists in the local memory card, after deleting part or all of the video data in the static scene according to the storage time sequence, storing the second target video data in the local memory card; and under the condition that the local memory card does not have video data in a static scene and has video data which is not in the preset data type, deleting part or all of the video data which is not in the preset data type according to the storage time sequence, and then storing the second target video data into the local memory card.
In another optional embodiment, in a case that there is no video data in a static scene in the local memory card and there is no video data of a type other than the predetermined data type, the second target video data is sent to the lower cascade node, and a second prompt message is sent to the lower cascade node, and the lower cascade node stores the second target video data in the local memory card of the lower cascade node according to the second prompt message and stores the target video data of the predetermined data type collected or received after the current time.
Fig. 3 is a schematic diagram of a networking topology of a monitoring cascade system in which front-end devices IPC2/IPC3 are connected to a back-end storage device through IPC1 as a relay, and IPC4/IPC5 are connected to a storage device through a relay to IPC3 and then to IPC1 according to an embodiment of the present invention, as shown in fig. 3. In an actual use environment, due to unpredictability of a network environment, a situation that a certain link is disconnected may occur, a common processing mode in the security protection field is disconnected network continuous transmission, as long as the network is recovered within a certain time period, video data during the disconnected network period can be temporarily stored in an SD card (one of the above local memory cards) carried by the IPC, and continuous transmission is performed after the network is recovered. The embodiment of the invention realizes the remote storage of the disconnected network data and the selective storage according to the priority of the data.
Initial state: each IPC grades data according to the current scene, and the video importance of the dynamic detection is greater than that of the static scene.
And (3) grading the data source and the data frame, marking the frame type dimension, and marking each data frame as a data source, a data grade and a data type: for example, { IPC4, with motion detection, key frame } indicates that this data frame is the data frame of IPC4, and that there is motion detection during the current data period, this data frame is the key frame.
Fig. 4 is a flowchart of the broken network continuous transmission storage in the cascade system according to the embodiment of the present invention, as shown in fig. 4, the running state, for IPC in the whole network, executes the following processes:
step S401, starting the state, the data of the IPC itself or the data which is cascaded and forwarded by the IPC, and carrying out network transmission under the normal non-broken network scene.
Step S402, detecting whether the node network is disconnected or not or whether the superior node sends a network disconnection event to the node, if so, executing step S405; otherwise, executing S403;
and S403-S404, checking whether the SD card has the network disconnection video, and if so, informing the child node of network recovery.
Step S405, judging whether the SD card of the node is full, if so, executing steps S409 and S410, and if not, executing step S406;
step S406, if the card is not full, writing the card into a local SD card;
step S407, informing the child node of the network disconnection event;
step S408, judging whether the data frame is a data frame under a non-static scene, if not, executing step S409, otherwise, executing step S410;
step S409, discarding the frame;
step S410, detecting whether the video currently stored in the SD card has the video in the static scene, if so, executing step S411, otherwise, executing step S412;
step S411, discarding the video in partial static scene according to the order of storing the video, and storing the newly generated non-static scene data;
step S412, judging whether the frame is a key frame, if so, executing step S413, otherwise, executing step S414;
step S413 of discarding a part of the non-key frames in chronological order and storing the key frames;
in step S414, the frame is discarded.
The embodiment of the invention is used for the continuous transmission of the cascade system in the broken network by means of prioritizing the streaming media data frames and storing the data in different places, can integrally improve the utilization rate of the storage space, and preferentially ensures the storage of important data in the broken network environment.
Example 2
According to another embodiment of the present invention, there is also provided a video storage apparatus of a cascade monitoring system, and fig. 5 is a block diagram of the video storage apparatus of the cascade monitoring system according to the embodiment of the present invention, as shown in fig. 5, including:
the first judging module 52 is configured to, when the cascade monitoring system detects a network outage, judge whether the current remaining memory of the local memory card is greater than or equal to a predetermined threshold;
an obtaining module 54, configured to obtain a data type of video data acquired after a network outage if the current remaining memory of the local memory card is greater than or equal to the predetermined threshold;
the first storage module 56 is configured to filter the video data according to the data type, and store the filtered video data in the local memory card.
Optionally, the first storage module 56 includes:
the reservation submodule is used for reserving first target video data of a preset data type in the video data;
and the first storage submodule is used for storing the first target video data into the local storage card.
Optionally, the apparatus further comprises:
the second storage submodule is used for storing the first target video data into the local storage card after deleting part or all of the video data under the static scene according to the storage time sequence under the condition that the video data under the static scene exists in the local storage card if the current residual memory of the local storage card is smaller than the preset threshold;
and the third storage submodule is used for storing the first target video data into the local storage card after deleting part or all of the video data which are not in the preset data type according to the storage time sequence under the condition that the video data in the static scene do not exist in the local storage card and the video data which are not in the preset data type exist.
Optionally, the apparatus further comprises:
the sending submodule is configured to send the first target video data to a cascaded subordinate cascade node and send a first prompt message to the subordinate cascade node when the local memory card does not have video data in a static scene and does not have video data of a non-predetermined data type, where the first prompt message is used to prompt the subordinate cascade node to store the first target video data in a local memory card of the subordinate cascade node.
Optionally, the apparatus further comprises:
a first sending module, configured to send a notification message to a cascaded subordinate cascaded node if the current remaining memory of the local memory card is smaller than the predetermined threshold, where the notification message is used to notify the subordinate cascaded node of a network outage event.
Optionally, the apparatus further comprises:
the receiving module is used for receiving second target video data of a preset data type sent by the lower cascade node;
a second judging module, configured to judge whether a current remaining memory of the local memory card is greater than or equal to the predetermined threshold;
and the second storage module is used for storing the second target video data into the local storage card if the current residual memory of the local storage card is greater than or equal to the preset threshold value.
Optionally, the apparatus further comprises:
a third storage module, configured to, if the current remaining memory of the local memory card is smaller than the predetermined threshold, store the second target video data in the local memory card after deleting part or all of the video data in the static scene according to the storage time sequence when the video data in the static scene exists in the local memory card;
and the fourth storage module is configured to, in a case that the local storage card does not have video data in a static scene and has video data of a non-predetermined data type, delete part or all of the video data of the non-predetermined data type according to a chronological order of storage, and store the second target video data in the local storage card.
Optionally, the apparatus further comprises:
a second sending module, configured to send, when there is no video data in a static scene in the local storage card and there is no video data that is not of the predetermined data type, the second target video data to the subordinate cascade node, and send a second prompt message to the subordinate cascade node, where the second prompt message is used to prompt the subordinate cascade node to store the second target video data in a local storage card of the subordinate cascade node, and prompt the subordinate cascade node to store the target video data of the predetermined data type that is collected or received after the current time.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, the cascade monitoring system judges whether the current residual memory of the local memory card is larger than or equal to the preset threshold value under the condition of detecting the network disconnection;
s2, if the current residual memory of the local memory card is larger than or equal to the preset threshold, acquiring the data type of the video data acquired after the network is disconnected;
and S3, screening the video data according to the data type, and storing the screened video data in the local memory card.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Example 4
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, the cascade monitoring system judges whether the current residual memory of the local memory card is larger than or equal to the preset threshold value under the condition of detecting the network disconnection;
s2, if the current residual memory of the local memory card is larger than or equal to the preset threshold, acquiring the data type of the video data acquired after the network is disconnected;
and S3, screening the video data according to the data type, and storing the screened video data in the local memory card.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A video storage method of a cascade monitoring system is characterized by comprising the following steps:
the cascade monitoring system judges whether the current residual memory of the local memory card is greater than or equal to a preset threshold value under the condition of detecting the network disconnection;
if the current residual memory of the local memory card is larger than or equal to the preset threshold value, acquiring the data type of the video data acquired after the network is disconnected;
screening the video data according to the data type, and storing the screened video data in the local memory card, including:
reserving first target video data of a predetermined data type in the video data;
storing the first target video data into the local memory card;
if the current remaining memory of the local memory card is smaller than the predetermined threshold, sending the first target video data to a cascaded subordinate cascade node under the condition that the video data under a static scene does not exist in the local memory card and the video data of a non-predetermined data type does not exist, and sending a first prompt message to the subordinate cascade node, wherein the first prompt message is used for prompting the subordinate cascade node to store the first target video data in the local memory card of the subordinate cascade node.
2. The method of claim 1, further comprising:
under the condition that video data under a static scene exist in the local memory card, after deleting part or all of the video data under the static scene according to the storage time sequence, storing the first target video data into the local memory card;
and under the condition that video data under a static scene does not exist in the local memory card and video data which are not in the preset data type exist, deleting part or all of the video data which are not in the preset data type according to the storage time sequence, and then storing the first target video data into the local memory card.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and if the current residual memory of the local memory card is smaller than the preset threshold value, sending a notification message to a lower cascade node of the cascade, wherein the notification message is used for notifying the lower cascade node of a network disconnection event.
4. The method of claim 3, wherein after sending the notification message to a subordinate tandem node of the cascade, the method further comprises:
receiving second target video data of a preset data type sent by the lower cascade node;
judging whether the current residual memory of the local memory card is greater than or equal to the preset threshold value;
and if the current residual memory of the local memory card is greater than or equal to the preset threshold value, storing the second target video data into the local memory card.
5. The method of claim 4, further comprising:
if the current residual memory of the local memory card is smaller than the preset threshold value, under the condition that video data under a static scene exists in the local memory card, after deleting part or all of the video data under the static scene according to the storage time sequence, storing the second target video data into the local memory card;
and under the condition that the local memory card does not have video data in a static scene and has video data which is not in the preset data type, deleting part or all of the video data which is not in the preset data type according to the storage time sequence, and then storing the second target video data into the local memory card.
6. The method of claim 5, further comprising:
and sending the second target video data to the subordinate cascade node and sending a second prompt message to the subordinate cascade node under the condition that the local storage card does not have video data in a static scene and does not have video data of a non-predetermined data type, wherein the second prompt message is used for prompting the subordinate cascade node to store the second target video data in a local storage card of the subordinate cascade node and prompting the subordinate cascade node to store the target video data of the predetermined data type collected or received after the current time.
7. A video storage device for a cascade monitoring system, comprising:
the first judgment module is used for judging whether the current residual memory of the local memory card is greater than or equal to a preset threshold value or not when the cascade monitoring system detects the network disconnection;
the acquisition module is used for acquiring the data type of the video data acquired after the network is disconnected if the current residual memory of the local memory card is greater than or equal to the preset threshold;
the first storage module is used for screening the video data according to the data type and storing the screened video data into the local storage card;
wherein the first storage module comprises:
the reservation submodule is used for reserving first target video data of a preset data type in the video data;
the first storage submodule is used for storing the first target video data into the local storage card;
the device further comprises:
a sending submodule, configured to send the first target video data to a cascaded subordinate cascade node and send a first prompt message to the subordinate cascade node if the current remaining memory of the local memory card is smaller than the predetermined threshold, and if there is no video data in a static scene and no video data of a non-predetermined data type in the local memory card, where the first prompt message is used to prompt the subordinate cascade node to store the first target video data in the local memory card of the subordinate cascade node.
8. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 6 when executed.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
CN201911215790.4A 2019-12-02 2019-12-02 Video storage method and device of cascade monitoring system Active CN110996056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911215790.4A CN110996056B (en) 2019-12-02 2019-12-02 Video storage method and device of cascade monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911215790.4A CN110996056B (en) 2019-12-02 2019-12-02 Video storage method and device of cascade monitoring system

Publications (2)

Publication Number Publication Date
CN110996056A CN110996056A (en) 2020-04-10
CN110996056B true CN110996056B (en) 2021-12-17

Family

ID=70089335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911215790.4A Active CN110996056B (en) 2019-12-02 2019-12-02 Video storage method and device of cascade monitoring system

Country Status (1)

Country Link
CN (1) CN110996056B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586349B (en) * 2020-04-16 2022-01-11 浙江大华技术股份有限公司 Data outage and continuous transmission method and system for monitoring equipment
CN112560802A (en) * 2021-01-24 2021-03-26 中天恒星(上海)科技有限公司 Data processing method and system for distributable data storage library
CN113206965B (en) * 2021-03-12 2022-12-06 浙江大华技术股份有限公司 Consultation storage method, system and related device for regional monitoring video

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101415107A (en) * 2007-10-19 2009-04-22 深圳中兴力维技术有限公司 A kind of reliable multilevel medium storage method
CN103702136A (en) * 2013-12-23 2014-04-02 乐视致新电子科技(天津)有限公司 Storage method and device of multimedia data
CN105430480A (en) * 2015-11-13 2016-03-23 Tcl集团股份有限公司 Method and system for storing video data
CN107959812A (en) * 2016-10-18 2018-04-24 杭州萤石网络有限公司 Storage method, device, system and the routing device of monitoring data
CN109495720A (en) * 2018-11-14 2019-03-19 沈阳安网信息技术有限公司 A kind of stagewise monitoring system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5225781B2 (en) * 2008-08-07 2013-07-03 パナソニック株式会社 Monitoring system
CN109951665A (en) * 2019-03-18 2019-06-28 浙江大华技术股份有限公司 Storage method, device, storage medium and the electronic device of video data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101415107A (en) * 2007-10-19 2009-04-22 深圳中兴力维技术有限公司 A kind of reliable multilevel medium storage method
CN103702136A (en) * 2013-12-23 2014-04-02 乐视致新电子科技(天津)有限公司 Storage method and device of multimedia data
CN105430480A (en) * 2015-11-13 2016-03-23 Tcl集团股份有限公司 Method and system for storing video data
CN107959812A (en) * 2016-10-18 2018-04-24 杭州萤石网络有限公司 Storage method, device, system and the routing device of monitoring data
CN109495720A (en) * 2018-11-14 2019-03-19 沈阳安网信息技术有限公司 A kind of stagewise monitoring system

Also Published As

Publication number Publication date
CN110996056A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN110996056B (en) Video storage method and device of cascade monitoring system
CN108337333B (en) IP address management method, management device, network video recorder and storage medium
CN109992427B (en) DPI association rule backfill processing method, device, equipment and medium
CN113364682B (en) Data transmission method and device, storage medium and electronic device
CN107204924B (en) Link discovery method and device
CN111901881B (en) Transmission method and device
CN102404710B (en) Method, device and system for contract signing data management of machine type communication device
CN106712989B (en) QoS management method and device
CN112866646A (en) Smart community data acquisition method and system based on Bluetooth Mesh
CN107241216A (en) Maintain the method and device of the stable transmission of critical data
CN111050356B (en) Data transmission processing method and device, storage medium and electronic device
RU2696950C1 (en) Method and system for processing bearer channel and associated device
CN106452905A (en) Message processing method and device
CN107181929A (en) Method and apparatus for video monitoring
CN112437146B (en) Equipment state synchronization method, device and system
EP3174322A1 (en) Method for deleting notification resource, and common service entity
US20170346675A1 (en) Distributed trace of network procedures for network elements in cloud deployment
CN107819684B (en) Synchronous processing method and device
CN112188456B (en) Bluetooth device data acquisition method and device, storage medium and electronic device
CN113645103A (en) Method and device for detecting communication link abnormity between video monitoring platform and front-end equipment
CN115883466B (en) Switch control method and device, storage medium and electronic device
CN112566278A (en) Method and system for determining master device, storage medium, and electronic apparatus
CN114245052B (en) Video data storage method and device, storage medium and electronic device
CN112383686B (en) Video processing method, video processing device, storage medium and electronic device
CN106714199B (en) Method and device for acquiring network state information of bearer network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant