A kind of video monitoring data system
Technical field
The present invention relates to the technical field of video monitoring, particularly relate to a kind of video monitoring data system.
Background technology
In video monitoring system, the storage of data is very important technical problems.The storage of video monitoring data, generally adopts digital compression technology, and data are stored in hard disk with document form.As time goes on, disk needs ceaselessly to delete ancient deed, records new file.Therefore, can exist because read-write operation causes hard disk to break down frequently, and then cause the loss of video monitoring data.
In order to solve the above-mentioned technical problem that frequent read-write operation causes, be in the patent application of CN201410730092.9 in Chinese Patent Application No., disclose one and do not need disk format, the storage of video data is directly with magnetic head, cylinder, magnetic track, the technical scheme that sector logical access mode stores, this technical scheme comprises: data directory is provided with the first cylinder, first magnetic head, 100 sectors that first sector starts are as the index of monitor data, every sector is defined as 1024 bytes, index data form is fixed, represent that the videograph in this moment leaves that the position of disk starts in, and the total bytes of record from this position, this index is not file index, represent that the starting position data format of deposit data is: camera number+year+moon+day+time+point+second+cylinder number+head number+sector number+byte position+data total length.
But above-mentioned number of patent application is the technical scheme also Shortcomings of CN201410730092.9, such as, when multi-channel video while when write memory, disk ceaselessly can position write operation by moving head, this also can reduce the write efficiency of disk, and can affect the useful life of disk.
Another part of Chinese Patent Application No. is in the patent application of CN03154963.2, disclose and a kind ofly wait for disc rotation before the procedure until the technical problem of time of delay required for index detected to solve magnetic head, disclose a kind of by the method for streaming audio video data write disc driver: by Organization of Data for bunch, and be stabilized to the first physical sector starting bunch write to encounter after on spinning disk goal track at W head; Data block number contained by cluster is corresponding with the physical sector number in the upper integer magnetic track of dish, therefore to write single bunch be to write on disk integer full magnetic track; Even if driver has the physics index identifying all magnetic track first physical sectors, cluster data write also can regardless of index position.
Such as, but above-mentioned number of patent application is also Shortcomings in the technical scheme of CN03154963.2, does not have index data, digital independent inconvenience may be caused, especially during multi-path monitoring video data, directly can not process multi-path monitoring video data rapidly.
Summary of the invention
Frequently writing disk life-span of causing low technical problem to solve video monitoring data in prior art, the invention provides a kind of when multi-channel video writes time simultaneously, improving the video data supervisory control system of disk read-write efficiency.
To achieve these goals, the invention provides a kind of video data supervisory control system, the technical scheme of this system comprises: for the storage device of store video monitor data, and described storage device is provided with continuous print memory space; And the multi-channel video monitor equipment of video monitoring data is provided to this storage device.
Preferably, in described multi-channel video monitor equipment, each circuit-switched data is divided at least one data block, and in units of data block.
Described system, is also provided with read-write control device, reads described data block for described data block being stored in described continuous print memory space or in described continuous print memory space according to the mode of serial communication successively in order.
Preferably, described continuous print memory space is provided with continuous print sector division, and in described sector division, according to predetermined order, each subregion is provided with the index file of mark sector division sequence number and the video file for store video monitor data.
Preferably, described system be also provided with respectively with the buffer unit of described multi-channel video monitor equipment connection, and when described data block write storage device, first data block is stored in order in predetermined buffer unit, then the data in buffer unit is write in described continuous print memory space successively.
Preferably, be respectively when described data block comprises multichannel data: first via data N1, the second circuit-switched data N2 ..., t circuit-switched data Nt; And when described storage device pre-sets the multiple disk space of continuous print: disk space D1, disk space D2 ..., disk space Dt; Then described first via data N1 is stored in disk space D1 by described read-write control device, and the second circuit-switched data N2 is stored in disk space D2 by described read-write control device ..., t circuit-switched data is stored in disk space Dt by described read-write control device; Wherein, when each circuit-switched data is divided into P data block (P >=1); Described data block enters read-write queue order from data buffer area is: N11, N12 ..., N1p; N21, N22 ..., N2p; N31, N32 ..., N3p; Nt1, Nt2 ..., Ntp.
Adopt above-mentioned optimal technical scheme provided by the invention, serial can be adopted, namely single-threaded mode, multichannel data is stored or reads, avoid when multi-channel video writes simultaneously time, the parallel processing manner of disk ceaselessly can position the read-write efficiency of the reduction disk that write operation causes by moving head, reduces the problem in disk life-span; Meanwhile, each circuit-switched data presses block write, i.e. batch write reduces read-write number of times, avoids the frequent large distance redirect of magnetic disc head in different disk space, this also increases read-write effect and improve the disk life-span.Therefore, when the raising of hard disk life-span, the monitor data of video monitoring equipment is not easy to lose, can better for client provides monitor message.
Further feature and the advantage of invention will be set forth in the following description, and, partly become apparent from specification, or understand by implementing technical scheme of the present invention.Object of the present invention and other advantages realize by structure specifically noted in specification, claims and accompanying drawing and/or flow process and obtain.
Accompanying drawing explanation
Fig. 1 is the embodiment one that the present invention relates to a kind of video monitoring data system.
Fig. 2 is the embodiment two that the present invention relates to a kind of video monitoring data system.
Fig. 3 is the embodiment three that the present invention relates to a kind of video monitoring data system.
Embodiment
Describe embodiments of the present invention in detail below with reference to drawings and Examples, to the present invention, how application technology means solve technical problem whereby, and the implementation procedure reaching technique effect can fully understand and implement according to this.It should be noted that, these specific descriptions just allow those of ordinary skill in the art be more prone to, clearly understand the present invention, but not limitation of the invention is explained; And only however form conflict, each embodiment in the present invention and each feature in each embodiment can be combined with each other, and the technical scheme formed is all within protection scope of the present invention.
In addition, can perform in the control system of a such as group controller executable instruction in the step shown in the flow chart of accompanying drawing, and, although show logical order in flow charts, but in some cases, can be different from the step shown or described by order execution herein.
Below by the drawings and specific embodiments, technical scheme of the present invention is described in detail:
Embodiment one
As shown in Figure 1, embodiment one provides a kind of video monitoring data system block diagram, and described system comprises:
For the storage device 106 of store video monitor data, and
The multi-channel video monitor equipment 100 of multi-channel video monitor data is provided to this storage device.
Wherein, for the storage device 106 of store video monitor data, and described storage device 106 is provided with continuous print memory space; Wherein, continuous print memory space is provided with continuous print sector division, and in sector division, according to predetermined order, each subregion is provided with the index file of mark sector division sequence number and the video file for store video monitor data;
Wherein, described multi-channel video monitor equipment 100 gathers video monitoring data, for each circuit-switched data in multi-channel video monitor data is divided at least one data block, and communicates with storage device 106 in units of data block; Wherein, this multi-channel video monitor equipment 100 can be arranged on video monitoring inside, also can be independent module.
On the other hand, the present embodiment video monitoring data system is also provided with a read-write control device 105 as shown in Figure 2, for data block being stored in continuous print memory space or from read block 104 in continuous print memory space according to the mode of serial communication successively in order.
Preferably, as shown in Figure 2, this video monitoring data system is also provided with the data buffer device 101,102,103 be connected with described multi-channel video monitor equipment 100 respectively, and when data block 104 write storage device, first data block 104 is stored in order in predetermined buffer unit 101,102,103, then the data in buffer unit 101,102,103 is write in continuous print memory space successively.
Further, be respectively when data block comprises multichannel data: first via data N1, the second circuit-switched data N2 ..., t circuit-switched data Nt; And when storage device pre-sets the multiple disk space of continuous print: disk space D1, disk space D2 ..., disk space Dt; Then first via data N1 is stored in D1 by read-write control device, and the second circuit-switched data N2 is stored in D2 by read-write control device ..., t circuit-switched data is stored in Dt by read-write control device; Wherein, when each circuit-switched data is divided into P data block (P >=1); Data block enters read-write queue order from data buffer area is: N11, N12 ..., N1p; N21, N22 ..., N2p; N31, N32 ..., N3p; Nt1, Nt2 ..., Ntp.
Adopt the above-mentioned optimal technical scheme that the present embodiment provides, serial can be adopted, namely single-threaded mode, multichannel data is stored or reads, avoid when multi-channel video writes simultaneously time, the parallel processing manner of disk ceaselessly can position the read-write efficiency of the reduction disk that write operation causes by moving head, reduces the problem in disk life-span; Meanwhile, each circuit-switched data presses block write, i.e. batch write reduces read-write number of times, avoids the frequent large distance redirect of magnetic disc head in different disk space, this also increases read-write effect and improve the disk life-span.Therefore, when the raising of hard disk life-span, the monitor data of video monitoring equipment 100 is not easy to lose, can better for client provides monitor message.
Embodiment two
The difference of the present embodiment and embodiment one is, directly can be provided with buffer storage 205,206,207,208 (also can be called buffer, buffer unit) in described video monitoring equipment 201,202,203,204, and the storage device 210 of video monitoring data directly communicates with video monitoring watch-dog 201,202,203,204.Particularly, as shown in Figure 3, the video monitoring data system that the present embodiment provides comprises:
For gathering the multi-channel video monitor equipment 201,202,203,204 of video monitoring data, and in multi-channel video monitor equipment 201,202,203,204, each circuit-switched data is divided at least one data block, and in units of data block;
For the storage device 210 of store video monitor data, and storage device 210 is provided with continuous print memory space; Wherein, memory space is provided with continuous print sector division, and in sector division, according to predetermined order, each subregion is provided with the index file of mark sector division sequence number and the video file for store video monitor data;
Read-write control device 209, for being stored to data block in continuous print memory space or from read block in continuous print memory space according to the mode of serial communication successively in order.
Preferably, this storage device 210 is hard disk;
Further, system is also provided with the buffer unit 205,206,207,208 be connected with multi-channel video monitor equipment 201,202,203,204 respectively; And when data block write stores, first data block is stored in order in predetermined buffer unit 205,206,207,208, then the data in buffer unit 205,206,207,208 is write in continuous print memory space successively.
Therefore, adopt the technique scheme that the present embodiment provides, when making it possible to achieve with embodiment one constructed effect, buffer unit is selected according to video monitoring equipment, when video monitoring apparatus quantity is few, just do not need too much buffer unit, the cost of video monitoring data storage-side can also be reduced.
Embodiment three
Storage device on the basis of embodiment one or embodiment two, can also be divided into the large regions that two different by the present embodiment, and first large regions is used for storage backup file; Second large regions continuous print sector division, for performing the Coutinuous store space in embodiment one and/or embodiment two; Such video monitoring data stores safer.And sector division data are also data are write soon according to predetermined order the first region being used for backup file; Preferably, first area can be arranged to read video monitoring data, and second area is arranged to write video monitoring data; Video monitoring data can be read and write rapidly so simultaneously.
Finally it should be noted that, above-mentioned explanation is only most preferred embodiment of the present invention, not does any pro forma restriction to the present invention.Any those of ordinary skill in the art; do not departing within the scope of technical solution of the present invention; the way of above-mentioned announcement and technology contents all can be utilized to make many possible variations and simple replacement etc. to technical solution of the present invention, and these all belong to the scope of technical solution of the present invention protection.