CN109996022B - Monitoring storage capacity expansion method and video monitoring system - Google Patents

Monitoring storage capacity expansion method and video monitoring system Download PDF

Info

Publication number
CN109996022B
CN109996022B CN201711498558.7A CN201711498558A CN109996022B CN 109996022 B CN109996022 B CN 109996022B CN 201711498558 A CN201711498558 A CN 201711498558A CN 109996022 B CN109996022 B CN 109996022B
Authority
CN
China
Prior art keywords
video stream
monitoring
video
storage
nvr
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
CN201711498558.7A
Other languages
Chinese (zh)
Other versions
CN109996022A (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 Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201711498558.7A priority Critical patent/CN109996022B/en
Publication of CN109996022A publication Critical patent/CN109996022A/en
Application granted granted Critical
Publication of CN109996022B publication Critical patent/CN109996022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/78Television signal recording using magnetic recording
    • H04N5/781Television signal recording using magnetic recording on disks or drums
    • 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

Abstract

The invention relates to the technical field of video monitoring, in particular to a monitoring storage capacity expansion method and a video monitoring system, wherein the method comprises the following steps: VM controls the storage of the monitoring video stream to VM side storage space or NVR, the storage position of the monitoring video stream is controlled and switched after the VM side storage space or the NVR is fully stored, a storage space is opened up on one side of the VM, the monitoring video stream is respectively and continuously stored to the VM and the NVR in sequence, the capacity of the video monitoring system for storing the monitoring video is effectively enlarged, meanwhile, the integrity and the continuity of the monitoring video can be guaranteed, the cost is effectively reduced, and the requirement for expanding the storage period of the monitoring video can be met.

Description

Monitoring storage capacity expansion method and video monitoring system
Technical Field
The invention relates to the technical field of video monitoring, in particular to a monitoring storage capacity expansion method and a video monitoring system.
Background
Most of the existing video monitoring hardware devices only have enough storage space to store one month of monitoring video, however, the recent new policy of ministry of public security requires that the video retention period is at least three months, which only needs enough storage resource space to meet the requirement for a newly-built video monitoring project, but for the existing basic video access management system, such as NVR, because the existing basic video access management system is limited by local storage capacity, access performance specification and design structure, the expansion requirement of such large capacity cannot be met, and therefore, a method or a device for low-cost and high-efficiency monitoring video storage capacity expansion is continuously developed and designed.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a monitoring storage capacity expansion method to solve the problem of insufficient storage space of the existing video monitoring system.
It is another object of the present invention to provide a video surveillance system to improve the above mentioned problems.
The technical scheme adopted by the invention is as follows:
a monitoring storage capacity expansion method is applied to a video monitoring system, the system comprises a camera, a Network Video Recorder (NVR) and a video management server (VM) which are in communication connection, and the method comprises the following steps: the VM is provided with a storage space for storing a monitoring video stream with preset duration; the VM receives a monitoring video stream of a camera and controls a VM side storage space or an NVR to store the monitoring video stream; the VM stores first storage time of the monitoring video stream stored in the VM side storage space and second storage time of the monitoring video stream stored in the NVR; obtaining a first storage time length of the monitoring video stream stored in the VM side storage space and a second storage time length of the monitoring video stream stored in the NVR; and when the first storage duration reaches a first threshold value or the second storage duration reaches a second threshold value, the VM controls the storage position of the switching monitoring video stream, and the monitoring video stream is stored on the stored monitoring video stream in an overlaying mode.
Further, the step of receiving, by the VM, a monitoring video stream, and controlling a VM-side storage space to store the monitoring video stream includes: the VM sends a control instruction to adjust the disk attribute of the NVR to be in a read-only mode; the VM receives a monitoring video stream of the camera and controls the monitoring video stream to be stored in a VM side storage space; the VM records first storage time of the monitoring video stream on the VM side storage space, wherein the first storage time comprises starting time and ending time.
Further, the VM receives a surveillance video stream, and the step of controlling the NVR to store the surveillance video stream includes: the VM sends a control instruction to adjust the disk attribute of the NVR into a read-write mode; the NVR stores the monitoring video stream; the VM records a second storage time of the surveillance video stream on the NVR, wherein the second storage time comprises a starting time and an ending time.
Further, the method also comprises the step of reading and playing the stored monitoring video stream, and comprises the following steps: the VM receives a video playing request input by a user, wherein the video playing request comprises a time period of a target video; obtaining a target video from the VM side storage space or the NVR according to the time period; and playing the target video.
Further, the step of obtaining the target video from the VM-side storage space according to the time period includes: the VM searches whether the target video is stored in a VM side storage space or not according to the first storage time and the time period of the target video in the video playing request; when the time period of the target video intersects with the first storage time, marking the part of the time period of the target video, which is positioned in the first storage time.
Further, the step of obtaining the target video from the NVR according to the time period includes: the VM searches whether the target video is stored in the NVR according to the second storage time and the time period of the target video in the video playing request; when the time period of the target video intersects with the second storage time, marking the part of the time period of the target video, which is positioned in the second storage time.
Further, the step of playing the target video includes: acquiring a storage path of the marked target video in the VM side storage space; and playing the monitoring video stream stored in the storage path through an RTSP protocol.
Further, the step of playing the target video further includes: acquiring a target video of which the time period is located in the NVR of the marked target video; and playing the obtained target video.
A video monitoring system comprises a camera, a Network Video Recorder (NVR) and a video management server (VM) which are in communication connection: the VM is used for setting a storage space for storing a monitoring video stream with preset duration; the NVR is used for storing the monitoring video stream of the camera; the VM is used for receiving the monitoring video stream and controlling a VM side storage space or an NVR to store the monitoring video stream; the VM is used for storing first storage time of the monitoring video stream stored in the VM side storage space and second storage time of the monitoring video stream stored in the NVR; obtaining a first storage time length of the monitoring video stream stored in the VM side storage space and a second storage time length of the monitoring video stream stored in the NVR; and the VM is also used for controlling the storage position of the switching monitoring video stream and storing the monitoring video stream on the stored monitoring video stream in a covering manner when the first storage time length reaches a first threshold value or the second storage time length reaches a second threshold value.
Further, the VM is further configured to receive a video playing request input by a user, where the video playing request includes a time period of a target video; the VM obtains a target video from the VM side storage space or the NVR according to the time period; and the VM plays the target video.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a monitoring storage capacity expansion method and a video monitoring system, wherein the method comprises the following steps: the VM sets a storage space for storing a monitoring video stream with preset duration; the VM receives a monitoring video stream of a camera and controls a VM side storage space or an NVR to store the monitoring video stream; the VM stores first storage time of the monitoring video stream stored in the VM side storage space and second storage time of the monitoring video stream stored in the NVR; obtaining a first storage time length of the monitoring video stream stored in the VM side storage space and a second storage time length of the monitoring video stream stored in the NVR; when the first storage duration reaches a first threshold value or the second storage duration reaches a second threshold value, the VM controls the switching of the storage position of the monitoring video stream, and the monitoring video stream is stored in the stored monitoring video stream in a covering manner.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 shows a schematic diagram of a video surveillance system provided by the present invention.
FIG. 2 is a flow chart illustrating a method for monitoring storage capacity expansion.
FIG. 3 shows a flowchart of steps S211 to S213.
FIG. 4 shows a flowchart of steps S221 to S223.
FIG. 5 shows a flow chart of the steps of playing a surveillance video.
FIG. 6 shows a flowchart of steps S611 to S612.
FIG. 7 shows a flowchart of steps S621 to S622.
FIG. 8 shows a flowchart of steps S711 to S712.
FIG. 9 shows a flowchart of steps S721-S722.
Icon: 100-video surveillance system; 110-a camera; 130-video management server VM; 150-network video recorder NVR.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should also be noted that relational terms such as first and second, and the like, may be used solely herein to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
The monitoring storage capacity expansion method provided by the present invention can be used in the Video monitoring system 100 shown in fig. 1, where the Video monitoring system 110 includes a Video camera 110, a Network Video Recorder 150 (NVR), and a Video Management server 130 (VM). The video camera is in communication connection with a Network Video Recorder (NVR) 150 (NVR), the video camera is also in communication connection with a video management server (VM) 130 (VM), and the NVR150 is in communication connection with the VM 130.
First embodiment
The embodiment provides a monitoring storage capacity expansion method, which is used for expanding the storage space of a displayed video monitoring system 100, so that the requirement of expanding the retention period of a monitoring video record can be met. The video monitoring system 100 comprises a camera 110, a Network Video Recorder (NVR) 150 and a video management server (VM) 130, wherein the camera 110 is in communication connection with the NVR150, and both the camera 110 and the NVR150 are in communication connection with the VM 130.
Referring to fig. 2, fig. 2 is a flowchart illustrating a monitoring storage capacity expansion method according to this embodiment. The monitoring storage capacity expansion method provided by the embodiment includes steps S10-S50.
Step S10: VM130 sets a storage space for storing the monitoring video stream with a predetermined duration.
A storage space for storing the monitoring video stream sent by the camera 110 is set at the VM130 side, the size of the storage space may be set as a space for storing the monitoring video stream with a preset duration, and the storage space may be set according to a monitoring video retention period that needs to be extended, for example, in this embodiment, the preset duration may be 60 days, but is not limited thereto.
Step S20: VM130 receives the surveillance video stream of camera 110, and controls the storage space on VM130 side or NVR150 to store the surveillance video stream.
The VM130 receives the monitoring video stream sent by the camera 110, and controls the monitoring video stream to be stored in a storage space on the VM130 side or a local disk of the NVR 150.
When VM130 controls VM130 side storage space to store the monitoring video stream, step S20 includes the following sub-steps: please refer to fig. 3 for steps S211 to S213.
Step S211: VM130 sends a control command to adjust the disk attribute of NVR150 to read-only mode.
The VM130 sends a control instruction to the NVR150, for example, sends an sip message to the NVR150, where the sip message includes fields such as ReadOnlyMode, and the NVR150 receives the instruction, and modifies the read-write attribute of the local disk of the NVR150 into a read-only mode according to the fields such as ReadOnlyMode in the control instruction, so as to ensure that the monitoring video stream sent by the current camera 110 is only stored at the VM130 side. For example, a plug-in or device may be deployed on NVR150, and the device functions include processing communication commands with VM130 and modifying read and write properties of the local disk of NVR 150. In this embodiment, the plug-in or the device sets the read-write attribute of the NVR150 to the read-only mode in response to the sip message of the VM 130.
Step S212: the VM130 receives the surveillance video stream of the camera 110, and controls the surveillance video stream to be stored in the storage space on the VM130 side.
VM130 stores the received monitoring video stream to a storage space on the VM130 side.
Step S213: VM130 records a first storage time of the monitoring video stream on the VM130 side storage space.
The VM130 records a first storage time of the monitoring video stream stored in the storage space of the VM130 side, where the first storage time includes a start time and an end time, and a difference between the end time and the start time is a first storage duration of the monitoring video stream stored in the storage space of the VM130 side.
The VM130 may establish a database to store a first storage time, including a start time and an end time, of the surveillance video stream stored in the storage space of the VM 130.
It can be understood that, in the embodiment, the first storage duration is less than a preset duration. I.e. the first storage period is less than 60 days.
When VM130 controls NVR150 to store the surveillance video stream, step S20 includes the following sub-steps: please refer to fig. 4 for steps S221 to S223.
Step S221: the VM130 sends a control instruction to adjust the disk attribute of the NVR150 to a read-write mode.
The VM130 sends a control instruction to the NVR150, for example, sends an sip message, where the sip message carries fields such as ReadWriteMode, and the NVR150 sets the read-write attribute of the body disk of the NVR150 to a readable-write mode according to the fields such as ReadWriteMode carried in the sip message.
Step S222: the NVR150 stores a surveillance video stream.
The local disk attribute of the NVR150 sets a read-write mode, receives the monitoring video stream sent by the camera 110, and stores the monitoring video stream.
Step S223: the VM130 records a second storage time of the surveillance video stream on the NVR150, the second storage time including a start time and an end time.
When NVR150 starts storing the surveillance video stream, VM130 records the start time and the end time when NVR150 starts storing, that is, the second storage time of the surveillance video stream on NVR 150.
The difference between the start time and the end time is a second storage duration, and it can be understood that the second storage duration is less than or equal to the maximum duration of the monitoring video stream that the NVR150 can store, in this embodiment, the NVR150 can store the monitoring video stream for 30 days, and then the second storage duration is less than or equal to 30 days.
Step S30: the VM130 stores a first storage time of the monitoring video stream stored in the storage space on the VM130 side and a second storage time of the monitoring video stream stored in the NVR 150.
VM130 establishes a database for storing a first storage time of the surveillance video stream stored in the storage space of VM130 side, including a start time and an end time of the surveillance video stream stored in the storage space of VM130 side, and for storing a second storage time of the surveillance video stream in NVR150, including a start time and an end time of the surveillance video stream stored in NVR 150.
According to the starting time and the ending time of the storage of the monitoring video stream in the storage space of the VM130 side, the first storage duration of the storage of the monitoring video stream in the storage space of the VM130 side can be obtained.
According to the second storage time of the surveillance video stream on the NVR150, a second storage duration of the surveillance video stream on the NVR150 can be obtained.
Step S40: when the first storage duration reaches a first threshold or the second storage duration reaches a second threshold, the VM130 controls to switch the storage position of the surveillance video stream, and stores the surveillance video stream on the stored surveillance video stream in an overlaying manner.
In this embodiment, to ensure the integrity and continuity of the monitoring video stream, the monitoring video stream is continuously stored in the storage space of the VM130 or the NVR150 according to the chronological order. When the storage space on one side is full, the VM130 controls to switch the storage location of the monitoring video stream, for example, when the first storage duration of the stored monitoring video stream on the VM130 side reaches a first threshold, for example, the first threshold may be 60 days. When the first storage duration reaches 60 days, at this time, the storage space on the VM130 side is already full, the VM130 sends an instruction to store the monitoring video stream to the NVR150, and when the NVR150 already stores the monitoring video stream, the newly received monitoring video stream is stored in the stored monitoring video stream in an overlaying manner.
Optionally, when the storage space of the VM130 starts to receive and store the monitoring video stream, the VM130 starts a timer, and when the timer times for 60 days, the VM130 sends a control instruction to the NVR150, and changes the read-write attribute thereof, so that the monitoring video stream is stored on the NVR150 side. Meanwhile, the storage space on the VM130 side no longer stores the monitoring video stream.
When the second storage duration of the surveillance video stream stored by the NVR150 reaches the second threshold, optionally, the second threshold may be 30 days. When the second storage duration reaches 30 days, the VM130 controls the NVR150 not to receive and store the surveillance video stream, but stores the surveillance video stream in the storage space of the VM130 side, and when the storage space of the VM130 side has the stored surveillance video stream, stores the newly received surveillance video stream on the stored surveillance video stream in an overlaying manner.
For example, when the NVR150 starts to store the monitoring video stream, the VM130 starts a timer, and the timed time is set to be the maximum time length that the NVR150 can store the monitoring video stream, for example, in this embodiment, the video monitoring system 100 needs to ensure that the monitoring video stream can be stored for 90 days, so the timer can be set to 30 days, when the timer expires 30 days, that is, when the length of the monitoring video stream stored in the NVR150 reaches 30 days, the second storage time length is 30 days, the VM130 sends a control instruction to change the read-write attribute of the local disk of the NVR150, changes the read-write attribute of the local disk of the NVR150 into a read-only mode, and stores the newly received monitoring video stream in the storage space on the VM130 side in an overlapping manner. Thus, circulation is performed, and the continuous 90-day monitoring video stream can be stored all the time.
In this embodiment, the stored monitoring video stream may be overwritten according to a chronological order, for example, the newly received monitoring video stream may overwrite a monitoring video stream before 90 days, but is not limited thereto, and the overwriting storage may be performed through another overwriting order under the control of the VM 130.
In this embodiment, the monitoring storage capacity expansion method further includes a step of reading and playing the stored monitoring video stream. Specifically, the step of reading and playing the stored surveillance video stream includes steps S50 to S70, please refer to fig. 5.
Step S50: VM130 receives a video play request input by a user.
The VM130 is a video management server in the video monitoring system 100, and can manage and control all devices of the monitoring system, schedule various video monitoring services, and manage and allocate monitoring user rights. When a user needs to call a monitoring video in a certain time period, the VM130 first receives a video playing request input by the user, where the video playing request includes a time period of a target video, that is, a start time and an end time of the target video.
Step S60: and obtaining the target video from the VM130 side storage space or the NVR150 according to the time period.
The VM130 obtains the target video from the VM130 side storage space or the NVR150 according to the time period of the target video in the video playing request input by the user, the first storage time of the monitoring video stream stored in the VM130 side storage space and the second storage time of the monitoring video stream stored in the NVR 150.
Specifically, the step of obtaining the target video from the VM130 according to the time period includes steps S611 to S612, please refer to fig. 6.
Step S611: the VM130 searches whether the target video is stored in the VM130 side storage space according to the first storage time and the time period of the target video in the video playing request.
For example, in this embodiment, if the start time of the first storage time stored in the VM130 is 2 months and 1 day, the end time is 3 months and 31 days, the start time of the time period of the target video is 3 months and 20 days, and the end time is 4 months and 10 days, the time period of the target video intersects with the surveillance video stream stored in the first storage time of the VM 130-side storage space, that is, a part of the target video is stored in the VM 130-side storage space.
Step S612: when the time period of the target video intersects with the first storage time, marking the part of the time period of the target video, which is positioned in the first storage time.
For example, in this embodiment, the intersection of the time period of the target video and the first storage time is the monitoring video stream from 3 months 20 to 3 months 31, and the VM130 marks the monitoring video stream whose time period of the target video is from 3 months 20 to 3 months 31.
The step of obtaining the target video from the NVR150 according to the time period includes steps S621 to S622, please refer to fig. 7.
Step S621: the VM130 searches whether the target video is stored in the NVR150 according to the second storage time and the time period of the target video in the video playing request.
For example, in this embodiment, the starting time of the second storage time is 4 months and 1 day, the ending time is 4 months and 30 days, the starting time of the time period of the target video is 3 months and 20 days, and the ending time is 4 months and 10 days, then the time period of the target video intersects with the monitoring video stream stored in the second storage time of the NVR150, that is, a part of the target video is stored in the storage space of the NVR 150.
Step S622: when the time period of the target video intersects with the second storage time, marking the part of the time period of the target video, which is positioned in the second storage time.
For example, in this embodiment, the intersection of the time period of the target video and the second storage time is the monitoring video stream from 4 months 1 to 4 months 10 days, and the VM130 marks the monitoring video stream of the target video with the time period from 4 months 1 to 4 months 10 days.
Step S70: and playing the target video.
And different playing modes are adopted for storing target videos at different positions. When the time period of the target video is located at the first storage time or intersects with the first storage time, step S70 includes sub-steps S711 to S712, please refer to fig. 8.
Step S711: a storage path of the time period of the marked target video in the VM130 side storage space is acquired.
When the marked video is played, firstly, according to the mark, a storage path of the monitoring video stream of the marked target video in the time period stored in the storage space of the VM130 side is obtained, and the path points to the storage space for storing the monitoring video stream.
Step S712: and playing the monitoring video stream stored in the storage path through an RTSP protocol.
And decoding and playing the monitoring video stream through an RTSP protocol according to the storage path, wherein the RTSP protocol is a mature multimedia on demand protocol.
When the time period of the target video is located at the second storage time or intersects with the second storage time, step S70 includes sub-steps S721-S722, please refer to fig. 9.
Step S721: the time period for acquiring the marked target video is located in the target video of the NVR 150.
When the marked time period of the target video is stored in NVR150, VM130 directly calls the surveillance video stream stored in NVR 150.
Step S722: and playing the obtained target video.
When the time period of the target video is located in the NVR150, the monitoring video is directly viewed through the on-demand playback process of the international standard, which will not be described in detail in this embodiment.
Second embodiment
Referring to fig. 1, the video monitoring system 100 provided in this embodiment may be used to execute the monitoring storage capacity expansion method provided in the first embodiment. The video surveillance system 100 includes a camera 110, a network video recorder NVR150, and a video management server VM 130.
The camera 110 is in communication connection with both the NVR150 and the VM130, the NVR150 is in communication connection with the VM130, and the camera 110 is configured to collect a monitoring video and send a monitoring video stream to the NVR150 and/or the VM 130.
It should be noted that the video monitoring system 100 provided in this embodiment may be used in the monitoring storage capacity expansion method provided in the first embodiment, and the basic principle thereof is basically the same as that of the monitoring storage capacity expansion method provided in the first embodiment, and no detailed description is given in this embodiment, please refer to relevant contents in the first embodiment.
The VM130 is a video management server in the video monitoring system 100, and can manage and control all devices of the monitoring system, schedule various video monitoring services, and manage and allocate monitoring user rights.
Specifically, the VM130 is configured to set a storage space for storing a monitoring video stream with a preset duration;
the VM130 is further configured to receive a monitoring video stream of the camera 110, and control the storage space on the VM130 side or the NVR150 to store the monitoring video stream.
For example, the VM130 is configured to send a control instruction to adjust the disk attribute of the NVR150 to a read-only mode; the VM130 is further configured to receive a surveillance video stream of the camera 110, and control the surveillance video stream to be stored in the VM130 side storage space; the VM130 is further configured to record a first storage time of the monitoring video stream on the storage space of the VM130 side, where the first storage time includes a start time and an end time.
For another example, the VM130 sends a control instruction to adjust the disk attribute of the NVR150 to a read-write mode; the NVR150 stores a surveillance video stream; the VM130 records a second storage time of the surveillance video stream on the NVR150, the second storage time including a start time and an end time.
The VM130 is further configured to store a first storage time of the monitoring video stream stored in the storage space on the VM130 side and a second storage time of the monitoring video stream stored in the NVR 150; obtaining a first storage time length of the monitoring video stream stored in the storage space of the VM130 side and a second storage time length of the monitoring video stream stored in the NVR 150;
when the first storage duration reaches a first threshold or the second storage duration reaches a second threshold, the VM130 is configured to control to switch a storage location of the surveillance video stream, and store the surveillance video stream on the stored surveillance video stream in an overlaid manner.
The VM130 is further configured to respond to a video playing request of a client, and play a target video, and specifically, the VM130 is configured to receive a video playing request input by a user. A user may input a video playing request to the VM130 through an input/output device, for example, a mouse, a keyboard, or the like, where the video playing request includes a time period of a target video, i.e., includes a start time and an end time of the target video.
The VM130 is further configured to obtain a target video from the VM130 or the NVR150 according to the time period.
First, the VM130 is configured to search whether the target video is stored in the storage space of the VM130 side according to the first storage time and the time period of the target video in the video playing request.
When the time period of the target video intersects with the first storage time, VM130 marks a portion of the time period of the target video within the first storage time, that is, a portion of a storage space where the target video is stored on the VM130 side.
The VM130 is further configured to find whether the target video is stored in the NVR150 according to the second storage time and the time period of the target video in the video playing request.
When the time period of the target video intersects the second storage time, VM130 marks a portion of the time period of the target video that is within the second storage time.
For target videos stored in different spaces, VM130 plays in different manners.
When the target video is stored in or partially stored in the storage space on the VM130 side, a storage path, in which the monitoring video stream of the time period of the marked target video is stored in the storage space on the VM130 side, is obtained according to the mark, and the path points to the storage space in which the monitoring video stream is stored.
Then VM130 decodes and plays the monitoring video stream according to the storage path through RTSP protocol.
When the target video is stored or partially stored in NVR150, VM130 views the surveillance video directly through the international standard on-demand playback flow.
It should be noted that the basic principle of the video monitoring system 100 provided in this embodiment is substantially the same as the monitoring storage capacity expansion method provided in the first embodiment, and the related contents in the first embodiment are referred to in this embodiment without elaboration.
In summary, the present invention provides a monitoring storage capacity expansion method and a video monitoring system, where the monitoring storage capacity expansion method includes: the VM sets a storage space for storing a monitoring video stream with preset duration; the VM receives a monitoring video stream of a camera and controls a VM side storage space or an NVR to store the monitoring video stream; the VM stores first storage time of the monitoring video stream stored in the VM side storage space and second storage time of the monitoring video stream stored in the NVR; obtaining a first storage time length of the monitoring video stream stored in the VM side storage space and a second storage time length of the monitoring video stream stored in the NVR; when the first storage duration reaches a first threshold or the second storage duration reaches a second threshold, the VM controls the switching of the storage position of the monitoring video stream, and the monitoring video stream is stored in the stored monitoring video stream in a covering manner.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
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 spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A monitoring storage capacity expansion method is applied to a video monitoring system, the system comprises a camera, a Network Video Recorder (NVR) and a video management server (VM) which are in communication connection, and the method comprises the following steps:
the VM is provided with a storage space for storing a monitoring video stream with preset duration;
the VM receives a monitoring video stream of a camera and controls a VM side storage space or an NVR to store the monitoring video stream;
the VM stores first storage time of the monitoring video stream stored in the VM side storage space and second storage time of the monitoring video stream stored in the NVR; obtaining a first storage time length of the monitoring video stream stored in the VM side storage space and a second storage time length of the monitoring video stream stored in the NVR;
and when the first storage duration reaches a first threshold value or the second storage duration reaches a second threshold value, the VM controls the storage position of the switching monitoring video stream, and the monitoring video stream is stored on the stored monitoring video stream in an overlaying mode.
2. The method of claim 1, wherein the VM receives a surveillance video stream, and the step of controlling VM-side storage space to store the surveillance video stream comprises:
the VM sends a control instruction to adjust the disk attribute of the NVR to be in a read-only mode;
the VM receives a monitoring video stream of the camera and controls the monitoring video stream to be stored in a VM side storage space;
the VM records first storage time of the monitoring video stream on the VM side storage space, wherein the first storage time comprises starting time and ending time.
3. The method of claim 1, wherein the VM receives a surveillance video stream, and wherein controlling the NVR to store the surveillance video stream comprises:
the VM sends a control instruction to adjust the disk attribute of the NVR into a read-write mode;
the NVR stores the monitoring video stream;
the VM records a second storage time of the surveillance video stream on the NVR, wherein the second storage time comprises a starting time and an ending time.
4. The method of claim 1, wherein the method further comprises reading and playing the stored surveillance video stream, comprising the steps of:
the VM receives a video playing request input by a user, wherein the video playing request comprises a time period of a target video;
obtaining a target video from the VM side storage space or the NVR according to the time period;
and playing the target video.
5. The method of claim 4, wherein the step of obtaining the target video from the VM-side storage space according to the time period comprises:
the VM searches whether the target video is stored in a VM side storage space or not according to the first storage time and the time period of the target video in the video playing request;
when the time period of the target video intersects with the first storage time, marking the part of the time period of the target video, which is positioned in the first storage time.
6. The method of claim 4, wherein the obtaining the target video from the NVR according to the time period comprises:
the VM searches whether the target video is stored in the NVR according to the second storage time and the time period of the target video in the video playing request;
when the time period of the target video intersects with the second storage time, marking the part of the time period of the target video, which is positioned in the second storage time.
7. The method of claim 4, wherein the step of playing the target video comprises:
acquiring a storage path of the marked target video in the VM side storage space;
and playing the monitoring video stream stored in the storage path through an RTSP protocol.
8. The method of claim 4, wherein the step of playing the target video further comprises:
acquiring a target video of which the time period is located in the NVR of the marked target video;
and playing the obtained target video.
9. The video monitoring system is characterized by comprising a camera, a Network Video Recorder (NVR) and a video management server (VM) which are in communication connection:
the VM is used for setting a storage space for storing a monitoring video stream with preset duration;
the NVR is used for storing a monitoring video stream of the camera;
the VM is used for receiving the monitoring video stream and controlling a VM side storage space or an NVR to store the monitoring video stream;
the VM is used for storing first storage time of the monitoring video stream stored in the VM side storage space and second storage time of the monitoring video stream stored in the NVR; obtaining a first storage time length of the monitoring video stream stored in the VM side storage space and a second storage time length of the monitoring video stream stored in the NVR;
and the VM is also used for controlling the storage position of the switching monitoring video stream and storing the monitoring video stream on the stored monitoring video stream in a covering manner when the first storage time length reaches a first threshold value or the second storage time length reaches a second threshold value.
10. The video surveillance system of claim 9,
the VM is further used for receiving a video playing request input by a user, wherein the video playing request comprises a time period of a target video;
the VM obtains a target video from the VM side storage space or the NVR according to the time period;
and the VM plays the target video.
CN201711498558.7A 2017-12-29 2017-12-29 Monitoring storage capacity expansion method and video monitoring system Active CN109996022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711498558.7A CN109996022B (en) 2017-12-29 2017-12-29 Monitoring storage capacity expansion method and video monitoring system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711498558.7A CN109996022B (en) 2017-12-29 2017-12-29 Monitoring storage capacity expansion method and video monitoring system

Publications (2)

Publication Number Publication Date
CN109996022A CN109996022A (en) 2019-07-09
CN109996022B true CN109996022B (en) 2021-08-31

Family

ID=67110850

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711498558.7A Active CN109996022B (en) 2017-12-29 2017-12-29 Monitoring storage capacity expansion method and video monitoring system

Country Status (1)

Country Link
CN (1) CN109996022B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757064B (en) * 2020-06-30 2021-02-23 普瑞达建设有限公司 Intelligent high-definition monitoring control system and method
CN114007102A (en) * 2021-10-28 2022-02-01 深圳市商汤科技有限公司 Video processing method, video processing device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856760A (en) * 2014-03-04 2014-06-11 浙江宇视科技有限公司 Longitudinal virtualization device between video surveillance devices
CN106060442A (en) * 2016-05-20 2016-10-26 浙江宇视科技有限公司 Video storage method, device and system
CN106961569A (en) * 2017-03-21 2017-07-18 深圳英飞拓科技股份有限公司 One kind video recording covering method, device and network hard disk video recorder
CN107124571A (en) * 2017-04-14 2017-09-01 浙江宇视科技有限公司 Videotape storage means and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101472146B (en) * 2007-12-28 2010-11-10 鸿富锦精密工业(深圳)有限公司 System and method for monitoring video
US20150296169A1 (en) * 2014-04-14 2015-10-15 Lamie Saif Time-Space Storage Solution (TSSS)
CN104202371B (en) * 2014-08-20 2017-11-03 浙江宇视科技有限公司 A kind of striding equipment expansion method and device directly deposited based on iSCSI blocks
CN105187754B (en) * 2015-08-31 2018-09-14 浙江宇视科技有限公司 A kind of caching amended record method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856760A (en) * 2014-03-04 2014-06-11 浙江宇视科技有限公司 Longitudinal virtualization device between video surveillance devices
CN106060442A (en) * 2016-05-20 2016-10-26 浙江宇视科技有限公司 Video storage method, device and system
CN106961569A (en) * 2017-03-21 2017-07-18 深圳英飞拓科技股份有限公司 One kind video recording covering method, device and network hard disk video recorder
CN107124571A (en) * 2017-04-14 2017-09-01 浙江宇视科技有限公司 Videotape storage means and device

Also Published As

Publication number Publication date
CN109996022A (en) 2019-07-09

Similar Documents

Publication Publication Date Title
US20210258357A1 (en) Method and device for recording and transmitting courseware, interactive white board and storage medium
CN102117291B (en) Method and system for displaying network resources
RU2447482C2 (en) User interface for media data status
JP2000308005A (en) Device and method for processing information and medium
CN109996022B (en) Monitoring storage capacity expansion method and video monitoring system
JP2000312333A (en) Image editing device and method and medium
US9852772B2 (en) Device and method for playing an interactive audiovisual movie
US20140133835A1 (en) Image processing apparatus, image processing method, and program
JP2004166268A (en) System and method for facilitating action change of equipment
KR100763699B1 (en) Information processing apparatus, information managing method and medium
CN104156135A (en) Screen recording method and device
JP6161402B2 (en) Editing apparatus, control method therefor, program, and storage medium
WO2005020236A1 (en) Interactive data processing method and apparatus
CN107885807B (en) File saving method and device, intelligent tablet and storage medium
JPH0789267B2 (en) Data editing / presentation method and device
JP6220160B2 (en) Reproducing apparatus and control method thereof
JP2008193715A (en) Data recorder
JP2002344849A (en) Moving picture processing unit, moving picture processing method, recording medium, and control program
JP4306429B2 (en) Content-linked comment display method and system, server device, client device, comment display program, and computer-readable storage medium storing comment display program
KR20050052927A (en) A reproducing apparatus, a reproducing method and the recording medium
CN114979743A (en) Method, device, equipment and medium for displaying audiovisual works
CN113992876A (en) Method for recording document and playing video, storage medium and terminal
CN112584239B (en) Program preview method and program preview device
US20200273494A1 (en) System and method for automated assembly of audiovisual montage
CN116389660B (en) Recorded broadcast guiding method, recorded broadcast guiding device, recorded broadcast guiding equipment and storage medium

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