Summary of the invention
An embodiment of the present invention technical problem to be solved is: concentrated storage mode exists performance bottleneck, and when storage server load pressure of recording a video is excessive, video recording stores the problem of Quality Down.
According to an aspect of the embodiment of the present invention, the storage means of a kind of video recording provided, comprising:
According to the video recording calculation of parameter of monitoring frontend PU, storage managing server show that PU stores the capacity required for video file; Storage managing server is PU memory allocated volume according to capacity from network additive storage device; The relevant information of the storage volume of distributing is notified PU, so that PU carries out the storage of video file to storage volume according to the relevant information of storage volume by storage managing server.
In one embodiment, according to the video recording calculation of parameter of monitoring frontend PU, storage managing server show that PU stores the capacity required for video file, specifically comprise: storage managing server goes out PU by following formulae discovery and stores capacity required for video file: PU stores capacity=video code rate required for video file × memory time length.
In one embodiment, according to the video recording calculation of parameter of monitoring frontend PU, storage managing server show that the capacity that PU stores required for video file comprises: storage managing server receives the authentication request that PU initiates, certification is carried out to PU, if certification is passed through, show that PU stores the capacity required for video file according to the video recording calculation of parameter of monitoring frontend PU.
In one embodiment, the relevant information of storage volume comprises: the internet protocol address of storage volume and the path of storage volume.
In one embodiment, the storage means of video recording also comprises: storage managing server scanning video file, deletes the video file exceeded the time limit.
In one embodiment, the storage means of video recording also comprises: when monitoring frontend is cancelled, and storage managing server deletes storage volume corresponding to reversed monitoring frontend from network additive storage device.
According to an aspect of the embodiment of the present invention, the storage means of a kind of video recording provided, comprise: the video recording parameter of configuration is sent to storage managing server by monitoring frontend, so that storage managing server is according to the video recording parametric distribution storage volume of monitoring frontend; The relevant information of the storage volume that monitoring frontend receiving, storing and managing server sends; Monitoring frontend carries out the storage of video file to storage volume according to the relevant information of storage volume.
In one embodiment, the relevant information of storage volume comprises: the internet protocol address of storage volume and the path of storage volume; The storage that monitoring frontend carries out video file according to the relevant information of storage volume to storage volume comprises: monitoring frontend is rolled up to respective stored according to the IP addressing of address of storage volume, and under video file being stored into the described path of respective stored volume.
In one embodiment, the video recording parameter of monitoring frontend comprises: video code rate, memory time length.
According to an aspect of the embodiment of the present invention, a kind of storage managing server provided comprises: policy management module and front end management module, policy management module, for showing that according to the video recording calculation of parameter of monitoring frontend PU PU stores the capacity of video file; Also for according to capacity from network additive storage device be PU memory allocated volume; Front end management module, the relevant information for the storage volume that will distribute notifies PU, so that PU carries out the storage of video file to storage volume according to the relevant information of storage volume.
In one embodiment, policy management module, specifically for, go out described PU by following formulae discovery and store capacity required for video file: PU stores capacity=video code rate required for video file × memory time length.
In one embodiment, front end management module, specifically for, receive the authentication request that PU initiates, certification is carried out to PU, if certification is passed through, show that PU stores the capacity required for video file according to the video recording calculation of parameter of monitoring frontend PU.
In one embodiment, the relevant information of storage volume comprises: the internet protocol address of storage volume and the path of storage volume.
In one embodiment, storage managing server also comprises: management of video module, management of video module, for scanning video file, deletes the video file exceeded the time limit.
In one embodiment, management of video module, also for when monitoring frontend is cancelled, deletes the storage volume that reversed monitoring frontend is corresponding from network additive storage device.
According to an aspect of the embodiment of the present invention, a kind of monitoring frontend provided, comprise: parameter sending module, information receiving module and video recording memory module, wherein, parameter sending module, for the video recording parameter of configuration is sent to storage managing server, so that storage managing server is according to the video recording parametric distribution storage volume of monitoring frontend; Information accepts module, for the relevant information of the storage volume that receiving, storing and managing server sends; Video recording memory module, for carrying out the storage of video file to described storage volume according to the relevant information of described storage volume.
In one embodiment, the relevant information of storage volume comprises: the internet protocol address of storage volume and the path of storage volume; Video recording memory module, for carrying out the storage of video file to described storage volume according to the relevant information of storage volume, specifically comprises: the IP addressing of address according to storage volume is rolled up to respective stored, and under video file being stored into the described path of respective stored volume.
In one embodiment, the video recording parameter of monitoring frontend comprises: video code rate, memory time length.
In one embodiment, the storage system of video recording comprises: the monitoring frontend in the storage managing server in above-mentioned any embodiment and above-mentioned any embodiment.
The embodiment of the present invention is by managing and disperse the mode of storage concentratedly, rolled up by storage managing server for each monitoring frontend memory allocated and notify monitoring frontend, then each monitoring frontend can store video file directly to the storage volume of oneself correspondence, storage managing server is freed from busy stores processor affairs, the performance bottleneck of storage managing server does not affect the storing process of video recording, eliminate the risk of the Video data typing mistake that video recording storage server occurs when load pressure reaches performance bottleneck, and eliminate video recording storage server to break down the risk causing a large amount of video recording to be lost, and when monitoring frontend increases, only need to increase memory device, be convenient to expansion and dispose.
By referring to the detailed description of accompanying drawing to exemplary embodiment of the present invention, further feature of the present invention and advantage thereof will become clear.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Illustrative to the description only actually of at least one exemplary embodiment below, never as any restriction to the present invention and application or use.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Unless specifically stated otherwise, otherwise positioned opposite, the numerical expression of the parts of setting forth in these embodiments and step and numerical value do not limit the scope of the invention.
Meanwhile, it should be understood that for convenience of description, the size of the various piece shown in accompanying drawing is not draw according to the proportionate relationship of reality.
May not discuss in detail for the known technology of person of ordinary skill in the relevant, method and apparatus, but in the appropriate case, described technology, method and apparatus should be regarded as a part of authorizing specification.
In all examples with discussing shown here, any occurrence should be construed as merely exemplary, instead of as restriction.Therefore, other example of exemplary embodiment can have different values.
It should be noted that: represent similar terms in similar label and letter accompanying drawing below, therefore, once be defined in an a certain Xiang Yi accompanying drawing, then do not need to be further discussed it in accompanying drawing subsequently.
In existing technology, because monitoring frontend is stored in a video recording storage server by concentrated for video file, cause the load of video recording storage server excessive, the phenomenon of Video data storage errors or Video data loss may be there is, video recording is caused to store Quality Down, therefore inventors herein propose one and video recording storage server is not set, but storage managing server is set between monitoring frontend and memory device, concentrate as each monitoring frontend memory allocated is rolled up by storage managing server, then each monitoring frontend can store video file directly to the storage volume of oneself correspondence, thus solve due to the excessive problem causing video recording to store Quality Down of video recording storage server load pressure.Below with reference to Fig. 2, describe technical scheme of the present invention in detail.
Fig. 2 is the schematic flow sheet of an embodiment of the storage means of surveillance video of the present invention.As shown in Figure 2, the method for this embodiment comprises:
Step S202, the video recording parameter of configuration is sent to storage managing server by monitoring frontend (Producer Unit, PU).
Wherein, monitoring frontend can be the equipment being integrated with the functions such as camera, microphone, encoder, network interface card, is commonly called as IPC (IP Camera, Internet video camera).Monitoring frontend is distributed widely in public situation that is fixing or movement, and connects storage managing server by network.
Wherein, the video recording parameter of monitoring frontend such as can comprise: video code rate and memory time length, can also comprise: video file form, video file form can be such as size or the time span of every section of video file.Video code rate is the data bits of the transmitted per unit time when transfer of data.Memory time, length was the maximum duration that monitoring frontend can be monitored, and such as video recording can be set to 15 days memory time, then the video file more than 15 days is by deleted.Video code rate and the video recording such as length memory time parameter can be pre-set by user, also can be arranged when monitoring frontend dispatches from the factory by manufacturer.
Then, storage managing server can be PU memory allocated volume according to the video recording parameter of monitoring frontend PU, refers to step S204 ~ S206.
Step S204, according to the video recording calculation of parameter of monitoring frontend PU, storage managing server show that this PU stores the capacity required for video file.Computing formula is specific as follows:
PU stores capacity=video code rate required for video file × memory time length.
Step S206, storage managing server is this PU memory allocated volume according to the capacity calculated from network additive storage device (Network Attached Storage, NAS), so that the storage volume of distributing can hold the video file of this PU lower.
Step S208, the relevant information of the storage volume of distributing is notified PU by storage managing server.
Wherein, the relevant information of storage volume comprises: IP (Internet Protocol, the Internet protocol) address of storage volume and the path of storage volume.The IP address of storage volume represents the position of storage volume, and monitoring frontend can be addressed to this storage volume by the IP address of storage volume.The path representation video file of storage volume is in the memory location of storage volume, and video file can be stored into this storage volume under the file in this path according to the path of storage volume by monitoring frontend.
Step S210, the relevant information of the storage volume of the distribution that monitoring frontend receiving, storing and managing server sends.
After the relevant information receiving storage volume, under monitoring frontend can also utilize NFS (Network File System, NFS) agreement to be mounted to the path of storage volume.
Step S212, monitoring frontend carries out the storage of video file to storage volume according to the relevant information of storage volume.
Because the relevant information of storage volume comprises: the IP address of storage volume and the path of storage volume, therefore the implementation of the storage of wherein a kind of video recording is: monitoring frontend is rolled up to respective stored according to the IP addressing of address of storage volume, and under video file being stored into this path of respective stored volume.
The embodiment of the present invention is by managing and disperse the mode of storage concentratedly, rolled up by storage managing server for each monitoring frontend memory allocated and notify monitoring frontend, then each monitoring frontend can store video file directly to the storage volume of oneself correspondence, storage managing server is freed from busy stores processor affairs, the performance bottleneck of storage managing server does not affect the storing process of video recording, eliminate the risk of the Video data typing mistake that video recording storage server occurs when load pressure reaches performance bottleneck, and eliminate video recording storage server to break down the risk causing a large amount of video recording to be lost, and when monitoring frontend increases, only need to increase memory device, be convenient to expansion and dispose.
Before step S204, monitoring frontend can initiate authentication request to storage managing server, storage managing server receives the authentication request that PU initiates, certification is carried out to PU, if certification is passed through, then perform step S204 show that described PU stores the capacity required for video file according to the video recording calculation of parameter of monitoring frontend PU.
A kind of exemplary authentication method: the authentication information that can comprise monitoring frontend in authentication request, such as can comprise the information such as the ID of monitoring frontend and the IP address of monitoring frontend, storage managing server is according to the authentication information of monitoring frontend, illegal monitoring frontend can be screened, such as can comprise with storage managing server not at the same network segment or other monitoring frontends not in same service area, thus indirectly alleviate the load pressure of storage managing server and storage volume, and improve the fail safe of monitoring.
In one embodiment, storage managing server can also scan video file, deletes the video file that exceeds the time limit, namely delete exceed setting memory time length video file, thus discharge storage resources as early as possible.Such as memory time, length was set to 15 days, and as distributed through scanning discovery the video file having in volume and store more than 15 days, then storage managing server deletes this video file, and deletes the index file of this video file.
In one embodiment, when monitoring frontend is cancelled, storage managing server can delete storage volume corresponding to reversed monitoring frontend from network additive storage device, thus the storage resources of storage volume is released, and can be used for other monitoring frontends to use.
In one embodiment, when the storage volume distributing to a certain monitoring frontend breaks down, monitoring frontend can ask storage managing server to redistribute new storage volume, and the relevant information of the storage volume newly configured is notified this monitoring frontend, or, storage managing server initiatively distributes new storage volume when finding that storage volume breaks down, and the relevant information of the storage volume newly configured is notified corresponding monitoring frontend.
Wherein, the storage means of surveillance video of the present invention can be applied to the video monitoring system of carrier-class, or is applied to the video monitoring system of government, enterprise, public organization.
Technical scheme of the present invention is the video file being stored corresponding monitoring frontend by multiple storage volume respectively, to share the storage pressure of single video recording storage server, so avoid video file be centrally stored in video recording storage server cause video recording storage server load pressure excessive cause recording a video store the problem of Quality Down.Enumerate the Application Example that a video recording stores below.
With reference to figure 7, in the present embodiment, comprise monitoring frontend 1-4, wherein the current video code check of monitoring frontend 1-4 can be set to 1Mbps (MBPS), 2Mbps, 4Mbps and 8Mbps respectively; Memory time, length was 15 days, and namely monitoring frontend unifies the preservation video file of 15 days, and if memory time was more than 15 days, monitoring frontend automatically can be deleted the file that exceeds the time limit or manually be deleted by user; The plan initial time of video recording can be set to the 0:00:00 of every day, planned end time is set to the 23:59:59 of every day, monitoring frontend starts video recording with plan initial time of recording a video, to record a video, plan finish time stops video recording, namely monitoring frontend stores the video file of 24 hours every day, the time span of single video file can also be set, such as, can be set to 20 minutes.
Step one, the video code rate of above-mentioned configuration, the video recording such as length memory time parameter are sent to storage managing server by monitoring frontend 1-4.
Step 2, storage managing server receives the video recording parameter of monitoring frontend configuration, and according to the video recording parametric distribution storage volume of monitoring frontend received, wherein PU stores capacity=video code rate required for video file × memory time length, number of seconds=1Mbps × 15 of the capacity=video code rate of monitoring frontend 1 × memory time length=video code rate × number of days × mono-day day × 24 hours × 3600 seconds=1296000Mbps=162000MBps (Mbytes) ≈ 158.21GB (GB), the like calculating, storage managing server is the capacity of monitoring frontend 2 is 316.41GB, the capacity of monitoring frontend 3 is 632.82GB, the capacity of monitoring frontend 4 is 1265.63GB, therefore, the distribution volume of storage managing server to be monitoring frontend 1 partition capacity size be 158.21GB, for the distribution volume that monitoring frontend 2 partition capacity size is 316.41GB, for the distribution volume that monitoring frontend 3 partition capacity size is 632.82GB, for the distribution volume that monitoring frontend 4 partition capacity size is 1265.63GB.Such as, the volume 1 of monitoring frontend 1 map network additional memory devices 1, the volume 2 of monitoring frontend 2 map network additional memory devices 1, the volume 1 of monitoring frontend 3 map network additional memory devices 2, the volume 2 of monitoring frontend 4 map network additional memory devices 2.
Step 3, the relevant informations such as the IP address of the storage volume of distributing for monitoring frontend 1-4 and path are sent to monitoring frontend 1-4 by storage managing server.
Step 4, the relevant informations such as the IP address of the storage volume of the distribution that monitoring frontend 1-4 receiving, storing and managing server sends and path.
Step 5, the internet protocol address of monitoring frontend 1-4 according to storage volume and the path of storage volume, video file is stored under the path of respective stored volume, index file can also be synchronously written storage volume in units of frame, and by the information reporting database of the writing format of video file, wherein the writing format of video file can PUID+ChannelID+StorageAttribute+StorageMode+StartTime+En dTime.Wherein, the unique identification that PUID (Producer Unit Identity, monitoring frontend identification code)+ChannelID (ChannelIdentify, video channel number) is monitoring frontend, PUID is 18 characters, and ChannelID is 2 characters; It is 1 (be designated centered by 1 expression video file and store) that Storage Attribute identifies memory attribute, it is 1 (be designated the non-reported data storehouse of this video file of 0 mark, be designated 1 mark video file reported data storehouse) that Storage Mode identifies memory module; Start Time and End Time is respectively the beginning of video recording and the time of end, and Start Time and End Time adopts the YYYYMMDDhhmmss format flags time; File is stored as the conventional DAV formatted file of monitoring video, and the total length of file writing format is the character string of 50 bit lengths; Video recording index file and video file of the same name, suffix is .index.
Step 6, if monitoring frontend 2 due to storage volume fault need change storage volume, user can require that storage managing server redistributes new storage volume, the relevant information of newly assigned storage volume can be passed through SIP (Session Initiation Protocol by storage managing server, session initiation protocol) signaling is sent to monitoring frontend 2, monitoring frontend 2 is by NFS (Network File System, NFS) agreement carry storage volume, and use new storage volume to carry out storage typing.
Step 7, if monitoring frontend 4 is removed, storage managing server deletes the corresponding stored volume of monitoring frontend from network additive storage device, and is discharged in the space of the storage volume of monitoring frontend 4 correspondence.
Step 8, monitoring frontend arrives end time or user's initiatively stopping video recording operation of video recording plan target, and stopping is write video file by monitoring frontend in storage volume.
Wherein, monitoring frontend 1-4 can be the storage volume that it distributes by NFS agreement carry storage manager, realize the mutual of monitoring frontend and storage managing server, such as, the relevant information of monitoring frontend is uploaded to database by storage managing server, and be the video information in each storage volume of unit scan round according to 10 minutes fixed cycles, reported data storehouse, and mark is not reported to the video file change in reported data storehouse, identify memory module by the StorageMode in the writing format of video file and be set to 1, and according to the video recording parameter of the monitoring frontend obtained from database by 15 days in units of video recording length memory time, according to the format detection video file typing situation of video file, and the video file deleted more than 15 days.Be simultaneously unit to report service condition from storage volume to database according to 1 hour fixed cycle.
Fig. 3 is the structural representation of an embodiment of storage managing server of the present invention.With reference to figure 3, storage managing server of the present invention comprises: policy management module 302 and front end management module 304.
Policy management module 302, for showing that according to the video recording calculation of parameter of monitoring frontend PU PU stores the capacity of video file; Also for according to capacity from network additive storage device be PU memory allocated volume.
Front end management module 304, the relevant information for the storage volume that will distribute notifies PU, so that PU carries out the storage of video file to storage volume according to the relevant information of storage volume.
In one embodiment, policy management module 302, specifically for, go out PU by following formulae discovery and store capacity required for video file: PU stores capacity=video code rate required for video file × memory time length.
In one embodiment, front end management module 304, specifically for, receive the authentication request that PU initiates, certification is carried out to PU, if certification is passed through, show that PU stores the capacity required for video file according to the video recording calculation of parameter of monitoring frontend PU.
In one embodiment, the relevant information of storage volume comprises: the internet protocol address of storage volume and the path of storage volume.
With reference to figure 4, Fig. 4 is the structural representation of another embodiment of storage managing server of the present invention, in storage managing server of the present invention, except comprising policy management module 302 and front end management module 304, also comprise: management of video module 406, for scanning video file, delete the video file exceeded the time limit.
In one embodiment, management of video module 406, also for when monitoring frontend is cancelled, deletes the storage volume that reversed monitoring frontend is corresponding from network additive storage device.
Fig. 5 is the structural representation of an embodiment of monitoring frontend of the present invention.With reference to figure 5, monitoring frontend of the present invention comprises: parameter sending module 502, information receiving module 504 and video recording memory module 506.
Parameter sending module 502, for the video recording parameter of configuration is sent to storage managing server, so that storage managing server is according to the video recording parametric distribution storage volume of monitoring frontend.
Information receiving module 504, for the relevant information of the storage volume that receiving, storing and managing server sends.
Video recording memory module 506, for carrying out the storage of video file to storage volume according to the relevant information of storage volume.
In one embodiment, the relevant information of storage volume comprises: the internet protocol address of storage volume and the path of storage volume.
In one embodiment, video recording memory module 506, specifically for: according to IP address and the path of storage volume, video file is stored under the path of respective stored volume.
In one embodiment, the video recording parameter of monitoring frontend comprises: video code rate, memory time length, can also comprise: video file form.
Fig. 6 is the structural representation of an embodiment of the storage system video recording of the present invention.In the storage system of video recording of the present invention, storage system comprises: storage managing server 602 and monitoring frontend 604, can also comprise other equipment.Such as, with reference to figure 7, the storage system of video recording, except comprising storage managing server 602 and monitoring frontend 604, can also comprise the storage volume 710 in database 706 and network additive storage device 708.Wherein, what monitoring frontend 604 was exemplary illustrates 4, is followed successively by monitoring frontend 1-4, and what NAS equipment 708 was exemplary illustrates NAS equipment 1 and NAS equipment 2, in NAS equipment 1, exemplary illustrating exemplaryly in storage volume 1 and storage volume 2, NAS equipment 2 illustrates storage volume 1 and storage volume 2.Storage volume can be such as disk array; Database is used for storing video file information, such as store path, memory time the information such as length.
Various embodiments of the present invention, by managing and disperse the mode of storage concentratedly, rolled up by storage managing server for each monitoring frontend memory allocated and notify monitoring frontend, then each monitoring frontend can store video file directly to the storage volume of oneself correspondence, storage managing server is freed from busy stores processor affairs, the performance bottleneck of storage managing server does not affect the storing process of video recording, eliminate the risk of the Video data typing mistake that video recording storage server occurs when load pressure reaches performance bottleneck, and eliminate video recording storage server to break down the risk causing a large amount of video recording to be lost, and when monitoring frontend increases, only need to increase memory device, be convenient to expansion and dispose.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.