CN105389126B - A kind of block storage system of video monitoring data - Google Patents

A kind of block storage system of video monitoring data Download PDF

Info

Publication number
CN105389126B
CN105389126B CN201510719335.3A CN201510719335A CN105389126B CN 105389126 B CN105389126 B CN 105389126B CN 201510719335 A CN201510719335 A CN 201510719335A CN 105389126 B CN105389126 B CN 105389126B
Authority
CN
China
Prior art keywords
data
data block
memory
block
circuit
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
CN201510719335.3A
Other languages
Chinese (zh)
Other versions
CN105389126A (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.)
Sichuan miracle cloud Technology Co., Ltd.
Original Assignee
Sichuan Miracle Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Miracle Cloud Technology Co Ltd filed Critical Sichuan Miracle Cloud Technology Co Ltd
Priority to CN201510719335.3A priority Critical patent/CN105389126B/en
Publication of CN105389126A publication Critical patent/CN105389126A/en
Application granted granted Critical
Publication of CN105389126B publication Critical patent/CN105389126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • 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 present invention provides a kind of block storage system of video monitoring data, which is characterized in that the system includes: the memory for storing video monitoring data, and the memory is provided with continuous memory space;Data block converting unit for each circuit-switched data in the multi-channel video monitor data to be divided at least one data block, and is communicated as unit of data block with the memory;Serial communication unit reads the data block for successively storing the data block in the way of serial communication in sequence in the continuous memory space or out of described continuous memory space;The invention avoids when multi-channel video is written simultaneously, the parallel processing manner of disk can the problem of ceaselessly moving head carries out the read-write efficiency for reducing disk caused by positioning write operation, reduces the disk service life.

Description

A kind of block storage system of video monitoring data
Technical field
The present invention relates to the technical field of video monitoring more particularly to a kind of block storage systems of video monitoring data.
Background technique
In video monitoring system, the storage of data is an extremely important technical problem.The storage of video monitoring data, Digital compression technology is generally used, data are stored in hard disk with document form.Over time, disk needs ceaselessly Ancient deed is deleted, new file is recorded.Therefore, can exist since frequent read-write operation causes hard disk to break down, in turn result in The loss of video monitoring data.
In order to solve above-mentioned technical problem caused by frequent read-write operation, it is in Chinese Patent Application No. In the patent application of CN201410730092.9, disclose one kind do not need format hard disk, the storage of video data directly with The technical solution that magnetic head, cylinder, magnetic track, sector logical access mode store, the technical solution include: that data directory is provided with Index of 100 sectors that first cylinder, the first magnetic head, the first sector start as monitoring data, every sector is defined as 1024 A byte, index data format are fixed, and indicate that the videograph at the moment is stored in what the position of disk started, and from the position The total bytes of the record of beginning are set, which is not file index, indicates the starting position data format of data storage are as follows: take the photograph Camera number+year+moon+day+when+point+second+cylinder number+head number+sector number+byte position+total length of data.
But above-mentioned number of patent application be CN201410730092.9 technical solution there is also deficiencies, for example, working as multichannel When memory is written simultaneously in video, disk ceaselessly can carry out positioning write operation by moving head, this can also reduce disk Write efficiency, and will affect the service life of disk.
Another Chinese Patent Application No. is to disclose one kind in the patent application of CN03154963.2 in order to solve magnetic head It waits disc rotation until detecting the technical issues of indexing required delay time before the procedure, discloses a kind of by streaming The method of audio-visual data write-in disc driver: it is cluster by data organization, and is stabilized to spinning disk mesh in W head Start the cluster the first physical sector encountered is written after on mark magnetic track;In data block number contained by cluster and disk in integer magnetic track Physical sector number is corresponding, therefore it is the full magnetic track of integer on write magnetic disk that single cluster, which is written,;Even if driver has all magnetic tracks of identification the The physics of one physical sector indexes, and cluster data write-in can also be regardless of index position.
But above-mentioned number of patent application is that there is also deficiencies in the technical solution of CN03154963.2, such as without index number According to, may cause reading data inconvenience, especially multi-path monitoring video data when, cannot directly and quickly handle multi-path monitoring view Frequency evidence.
Summary of the invention
Low technical problem of caused disk service life, this hair are frequently write into order to solve video monitoring data in the prior art Bright to provide a kind of when multi-channel video while when be written, the piecemeal storage for improving the video monitoring data of disk read-write efficiency is System.
To achieve the goals above, the present invention provides a kind of block storage system of video monitoring data, the skill of the system Art scheme includes:
For storing the memory of video monitoring data, and the memory is provided with continuous memory space;
Data block converting unit, for each circuit-switched data in the multi-channel video monitor data to be divided at least one number It is communicated according to block, and as unit of data block with the memory;
Serial communication unit, for successively being stored in the way of serial communication the data block in sequence to described The data block is read in continuous memory space or out of described continuous memory space.
Further, described device is additionally provided with buffer, and when memory is written in the data block, first by data Block is stored in sequence to scheduled buffer, and the data in buffer are then sequentially written in the continuous memory space It is interior.
Further, the continuous memory space is continuous sector division;Wherein in the sector division, according to pre- Fixed sequence, each subregion are provided with the index file of mark sector division serial number and the video for storing video monitoring data File.
Further, when the data block includes that multichannel data is respectively as follows: the first circuit-switched data N1, the second circuit-switched data N2 ..., T circuit-switched data Nt;And when the memory presets continuous multiple disk spaces: disk space D1, disk space D2 ..., disk space Dt;Then the first circuit-switched data N1 is stored in D1, the second circuit-switched data N2 by the serial communication unit D2 is stored in by the serial communication unit ..., t circuit-switched data is stored in Dt by the serial communication unit;Wherein, when When each circuit-switched data is divided into P data block (P >=1);The data block enters the sequence of read-write queue from data buffer area are as follows: N11, N12 ..., N1p;N21, N22 ..., N2p;N31, N32 ..., N3p;Nt1, Nt2 ..., Ntp.
Using above-mentioned optimal technical scheme provided by the invention, can use serially, i.e. the mode of single thread, to multichannel number According to being stored or being read, avoid when multi-channel video while when be written, the parallel processing manner of disk can be moved ceaselessly The problem of dynamic magnetic head carries out the read-write efficiency that disk is reduced caused by positioning write operation, reduces the disk service life;Meanwhile it is each Circuit-switched data by block be written, i.e., batch be written, reduce read-write number, avoid magnetic disc head different disk space it is frequent greatly away from From jumping, this also increases read-write effects to improve the disk service life.Therefore, in the case where the raising of hard disk life-span, video monitoring The monitoring data of equipment is not allowed easy to be lost, preferably can provide monitoring information for client.
The other feature and advantage of invention will illustrate in the following description, also, partly become aobvious from specification And it is clear to, or understood by implementing technical solution of the present invention.The objectives and other advantages of the invention can be by illustrating Specifically noted structure and/or process are achieved and obtained in book, claims and attached drawing.
Detailed description of the invention
Fig. 1 is a kind of block diagram for the block storage system that the embodiment of the present invention one is related to video monitoring data;
Fig. 2 is a kind of flow chart for the piecemeal storage method that the embodiment of the present invention one is related to video monitoring data;
Fig. 3 is that the embodiment of the present invention two is related to a kind of block diagram of video monitoring data system.
Specific embodiment
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and examples, how to apply to the present invention whereby Technological means solves technical problem, and the realization process for reaching technical effect can fully understand and implement.It needs to illustrate , these specific descriptions only allow those of ordinary skill in the art to be more easier, clearly understand the present invention, rather than to this hair Bright limited explanation;And if conflict is not constituted, each spy in each embodiment and each embodiment in the present invention Sign can be combined with each other, and it is within the scope of the present invention to be formed by technical solution.
In addition, step shown in the flowchart of the accompanying drawings can be in the control system of a such as group controller executable instruction Middle execution, although also, logical order is shown in flow charts, and it in some cases, can be to be different from herein Sequence executes shown or described step.
Below by the drawings and specific embodiments, technical solution of the present invention is described in detail:
Embodiment one
As shown in Figure 1, embodiment one provides a kind of block storage system of video monitoring data, which includes:
For storing video monitoring data memory 106, and memory is provided with continuous memory space;
Data block converting unit, for circuit-switched data each in multi-channel video monitor data to be divided at least one data block 104, and communicated as unit of data block with memory;Wherein, which can be set in video monitoring Inside is also possible to individual module;
Serial communication unit 105, for successively being stored in the way of serial communication data block to continuous in sequence Memory space in or the read block 104 out of continuous memory space.
It is continuous referring to Fig. 1, preferably, which is additionally provided with data buffer 101,102,103, and when memory is written in data block 104, first data block 104 is stored in sequence to scheduled buffering In device 101,102,103, then the data in buffer are sequentially written in continuous memory space.
Further, continuous memory space is continuous sector division;Wherein in sector division, according to scheduled suitable Sequence, each subregion are provided with the index file of mark sector division serial number and the video file for storing video monitoring data.
Further, when data block includes that multichannel data is respectively as follows: the first circuit-switched data N1, the second circuit-switched data N2 ..., t Circuit-switched data Nt;And when memory presets continuous multiple disk spaces: disk space D1, disk space D2 ..., disk Space Dt;Then the first circuit-switched data N1 is stored in D1 by serial communication unit, and the second circuit-switched data N2 is deposited by serial communication unit It is stored in D2 ..., t circuit-switched data is stored in Dt by serial communication unit;Wherein, when each circuit-switched data is divided into P data block (P >=1) when;Data block enters the sequence of read-write queue from data buffer area are as follows: N11, N12 ..., N1p;N21, N22 ..., N2p; N31, N32 ..., N3p;Nt1, Nt2 ..., Ntp.
On the other hand, the present embodiment additionally provides a kind of piecemeal storage method of video monitoring data, the party as shown in Figure 2 Method comprises the following steps that
S101: the memory for storing video monitoring data is divided into continuous memory space;Preferably, data block is written In the process, it is first stored to scheduled buffer in sequence, the data in buffer is then sequentially written in continuous storage In space;It is further preferred that it includes: formatted storage device that memory can be divided into continuous memory space, then will Memory is divided into continuous sector division;Wherein in sector division, in a predetermined sequence, each subregion is provided with mark fan Distinguish the index file of area's serial number and the video file for storing video monitoring data.
S102: circuit-switched data each in multi-channel video monitor data is divided at least one data block, and is with data block Unit;
S103: data block successively being stored in the way of serial communication in sequence in continuous memory space or The read block out of continuous memory space;Preferably, when data block includes that multichannel data is respectively as follows: the first circuit-switched data N1, Second circuit-switched data N2 ..., t circuit-switched data Nt;And when memory presets continuous multiple disk spaces: disk space D1, disk space D2 ..., disk space Dt;Then the first circuit-switched data N1 is stored in D1, and the second circuit-switched data N2 is stored in D2 ..., the T circuit-switched data is stored in Dt;Wherein, when each circuit-switched data is divided into P data block (P >=1);Data block enters from data buffer area Read and write the sequence of queue are as follows: N11, N12 ..., N1p;N21, N22 ..., N2p;N31, N32 ..., N3p;Nt1, Nt2 ..., Ntp.
The third aspect, the present embodiment also provide a kind of video monitoring data system, which includes that the present embodiment is above-mentioned Video monitoring data storage device, and the multi-channel video monitor equipment of video monitoring data is provided to the device.
Using above-mentioned optimal technical scheme provided in this embodiment, can use serially, i.e. the mode of single thread, to multichannel Data are stored or are read, and are avoided when multi-channel video while when be written, the parallel processing manner of disk can be ceaselessly The problem of moving head carries out the read-write efficiency that disk is reduced caused by positioning write operation, reduces the disk service life;Meanwhile often One circuit-switched data is written by block, i.e., batch is written, and reduces read-write number, avoids magnetic disc head in the frequent big of different disk space Distance jumps, and this also increases read-write effects to improve the disk service life.Therefore, in the case where the raising of hard disk life-span, video prison The monitoring data of control equipment is not allowed easy to be lost, preferably can provide monitoring information for client.
Embodiment two
The difference from embodiment 1 is that can be provided directly with caching dress to the present embodiment in the video monitoring equipment It sets and (is referred to as buffer, buffer unit), and the block storage system of video monitoring data is directly monitored with video monitoring Equipment is communicated.Specifically, as shown in figure 3, video monitoring data system provided in this embodiment includes:
For acquiring the multi-path monitoring equipment 201,202,203,204 of video monitoring data, and in multi-path monitoring equipment Each circuit-switched data is divided at least one data block, and as unit of data block;
For storing the memory of storage video monitoring data, and memory is provided with continuous memory space;Wherein, Memory space is provided with continuous sector division, and in sector division, and in a predetermined sequence, each subregion is provided with mark The index file of sector division serial number and video file for storing video monitoring data;Preferably, which is hard disk 210;
Read-write control device 209, for successively being stored in the way of serial communication data block to continuous in sequence Memory space in or the read block out of continuous memory space.
Further, system is additionally provided with the buffer unit 205,206,207,208 connecting respectively with multi-path monitoring equipment; And when data block, which is written, to be stored, first data block is stored in sequence to scheduled buffer unit, then fills buffering Data in setting are sequentially written in continuous memory space.
Therefore, it using above-mentioned technical proposal provided in this embodiment, makes it possible to achieve and is the same as example 1 technology effect In the case where fruit, buffer unit is selected according to video monitoring equipment, when video monitoring apparatus quantity is few, there is no need to mistakes More buffer units can also reduce the cost of video monitoring data storage-side.
Embodiment three
The present embodiment can also divide the memory into two different big on the basis of embodiment one or embodiment two Region, first big region is for storing backup file;The continuous sector division in second big region, for executing embodiment one The Coutinuous store space in embodiment two and/or;Video monitoring data storage in this way is safer.And sector division data It is that data are written to the first big region for being used to back up file fastly in a predetermined sequence;Preferably, first area can be set It is set to reading video monitoring data, and second area is arranged to that video monitoring data is written;It can rapidly read and write simultaneously in this way Video monitoring data.
Finally, it should be noted that above description is only highly preferred embodiment of the present invention, not the present invention is appointed What formal limitation.Anyone skilled in the art, it is without departing from the scope of the present invention, all available The way and technology contents of the disclosure above make many possible variations and simple replacement etc. to technical solution of the present invention, these Belong to the range of technical solution of the present invention protection.

Claims (2)

1. a kind of block storage system of video monitoring data, which is characterized in that the system includes:
For storing the memory of video monitoring data, and the memory is provided with continuous memory space;
Data block converting unit, for circuit-switched data each in multi-channel video monitor data to be divided at least one data block, and It is communicated as unit of data block with the memory;
Serial communication unit, for successively storing the data block in the way of serial communication in sequence to described continuous Memory space in or out of described continuous memory space read the data block, the continuous memory space is continuous Sector division;Wherein in the sector division, in a predetermined sequence, each subregion is provided with mark sector division serial number Index file and video file for storing video monitoring data, the data block includes multichannel data, is respectively as follows: the first via Data N1, the second circuit-switched data N2 ..., t circuit-switched data Nt;And when the memory presets continuous multiple disks skies Between: disk space D1, disk space D2 ..., disk space Dt;Then the first circuit-switched data N1 passes through the serial communication unit It is stored in disk space D1, the second circuit-switched data N2 is stored in disk space D2 ..., t number by the serial communication unit Disk space Dt is stored according to by the serial communication unit;Wherein, when each circuit-switched data is divided into P data block, when P >=1, The data block enters the sequence of read-write queue from data buffer area are as follows: N11, N12 ..., N1p;N21, N22 ..., N2p;N31, N32 ..., N3p;Nt1, Nt2 ..., Ntp.
2. system according to claim 1, which is characterized in that the system is additionally provided with buffer, and works as the number When memory is written according to block, first data block is stored in sequence to scheduled buffer, then by the data in buffer It is sequentially written in the continuous memory space.
CN201510719335.3A 2015-10-29 2015-10-29 A kind of block storage system of video monitoring data Active CN105389126B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510719335.3A CN105389126B (en) 2015-10-29 2015-10-29 A kind of block storage system of video monitoring data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510719335.3A CN105389126B (en) 2015-10-29 2015-10-29 A kind of block storage system of video monitoring data

Publications (2)

Publication Number Publication Date
CN105389126A CN105389126A (en) 2016-03-09
CN105389126B true CN105389126B (en) 2019-02-15

Family

ID=55421445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510719335.3A Active CN105389126B (en) 2015-10-29 2015-10-29 A kind of block storage system of video monitoring data

Country Status (1)

Country Link
CN (1) CN105389126B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106997277B (en) * 2017-03-03 2019-12-13 北京中存超为科技有限公司 method and device for efficiently utilizing recycled storage space
CN108646981B (en) * 2018-04-28 2021-09-03 深圳市茁壮网络股份有限公司 Data cache node management method, data cache method and cache management node
CN110737389B (en) * 2018-07-19 2023-05-16 杭州海康威视系统技术有限公司 Method and device for storing data
CN108881851A (en) * 2018-07-25 2018-11-23 武汉恩智电子科技有限公司 A kind of video record grouping system based on video monitoring
CN109947974A (en) * 2019-03-15 2019-06-28 百度在线网络技术(北京)有限公司 A kind of picture group packet method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668185A (en) * 2008-09-05 2010-03-10 广东电子工业研究院有限公司 Video monitoring system and video data authentication method thereof
CN101794515A (en) * 2010-03-29 2010-08-04 河海大学 Target detection system and method based on covariance and binary-tree support vector machine
CN103702057A (en) * 2013-09-03 2014-04-02 成都竣泰科技有限公司 Block storage algorithm applicable to multiple paths of concurrent-written stream media data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668185A (en) * 2008-09-05 2010-03-10 广东电子工业研究院有限公司 Video monitoring system and video data authentication method thereof
CN101794515A (en) * 2010-03-29 2010-08-04 河海大学 Target detection system and method based on covariance and binary-tree support vector machine
CN103702057A (en) * 2013-09-03 2014-04-02 成都竣泰科技有限公司 Block storage algorithm applicable to multiple paths of concurrent-written stream media data

Also Published As

Publication number Publication date
CN105389126A (en) 2016-03-09

Similar Documents

Publication Publication Date Title
CN105389126B (en) A kind of block storage system of video monitoring data
US9557923B2 (en) Block-level predictive data migration
US9830102B2 (en) Method of writing a file to a plurality of media and a storage system thereof
CN100407123C (en) Data storage device, reconstruction controlling device, reconstruction controlling method, and storage medium
JP5868136B2 (en) Variable resolution processing of frame type data
EP2746927A1 (en) Data-tiered storage processing method and device and storage device
CN105306865B (en) A kind of video monitoring data system
JP2013191259A (en) Data writing method in tape drive, and program
JP6391061B2 (en) How to write a file on tape
CN103092849A (en) File system cluster management method
CN104461384B (en) A kind of method for writing data and storage device
US8380952B2 (en) Storage system and data storage method using storage system which decides size of data to optimize the total of data size transfer efficiency
CN105357463B (en) A kind of storage method of video monitoring data
CN109905658A (en) A kind of video monitoring data system
EP1426958B1 (en) Recording control apparatus, recording control method, and program used therewith
CN205693787U (en) A kind of block storage system of video monitoring data
CN205005193U (en) Video monitoring data system
KR101214784B1 (en) Multi-channel record and playback apparatus for improving record and playback velocity
US10452318B2 (en) Systems and methods for recording and playback of multiple variable rate data streams
US8074015B2 (en) Method for storing files on a storage medium, storage medium, and video recording apparatus using the method
US20050138307A1 (en) Storage performance improvement using data replication on a disk
JP2007265010A (en) File reproduction apparatus, file reproduction method, and program
EP2940588A1 (en) Information recording and playback apparatus and recording and playback method
US10789989B2 (en) Video recording apparatus and video recording method
CN101252662B (en) Data processing apparatus and data processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170929

Address after: 610000 Building 8, B District, 6, Jing Rong International Plaza, 200 Tianfu five street, Chengdu hi tech Zone, Sichuan

Applicant after: Sichuan miracle cloud Technology Co., Ltd.

Address before: 210000 Qinhuai City, Nanjing Province, the main street in the morning of the day on the morning of the 1865 Creative Park E-8 building, room 388, building, Room 202

Applicant before: NANJING QINSHE MINGSHI INFORMATION TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant