CN104182354B - A kind of video management method and device - Google Patents
A kind of video management method and device Download PDFInfo
- Publication number
- CN104182354B CN104182354B CN201410424702.2A CN201410424702A CN104182354B CN 104182354 B CN104182354 B CN 104182354B CN 201410424702 A CN201410424702 A CN 201410424702A CN 104182354 B CN104182354 B CN 104182354B
- Authority
- CN
- China
- Prior art keywords
- disk
- data
- video data
- block
- video
- 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
Links
Abstract
The present invention provides a kind of video data memory utilization, video data management method and device.The video data memory utilization method includes:Superblock is created in the superblock area of the disk, disk summary is created in the summary area of the disk, created in the data field of the disk includes channel number field, time started field with the one-to-one data in magnetic disk block of disk summary, the disk summary;The channel number of video management equipment corresponding to the video data that data in magnetic disk block corresponding to the channel number field storage disk summary is stored;When receiving video data storage request, select free disk data block to carry out data storage, and the information of the video data is recorded in disk summary corresponding to the data in magnetic disk block.Technical scheme provided by the invention can effectively overcome in the prior art, brought when a certain disk can not use the problem of can not storing video data.
Description
Technical field
The present invention relates to technical field of video storage, more particularly to a kind of video data memory utilization, video data management
Method and device.
Background technology
With the continuous development of Video Supervision Technique, various video camera apparatus and video management equipment are widely used,
Such as web camera IPC and network video recorder NVR.Then, how storage management is carried out to the multitude of video that photographs,
It is merit attention the problem of.
Current video block storage mode is to be distributed on the disk of video management equipment for each video camera apparatus
One independent memory space, the memory space are once assigned, and its storage location and space size are just it has been determined that will not
Change again, the memory space does not allow other video camera apparatus to write.Moreover, each picture pick-up device can distribute to oneself
Memory space in establish and index and store video.Therefore, when a certain piece of disk in video management equipment is extracted, positioned at this
Memory space on disk can not just use, and then cause the video recording equipment for being assigned with the disk storage space to continue to store
Video, the reliability for causing video to store is not high, so as to have impact on the integrality of video monitoring.Existing piece of memory technology scheme,
The dynamically distributes of video camera apparatus memory space, flexibility and poor expandability can not be realized.
Memory space of the block memory technology for division on disk establishes secondary index at present, by inspection index data
Database is stored in, Database needs larger FLASH spaces, and inspection and retrieval are required for reading index every time,
Cause disk read-write operation a lot, speed is slow.
The content of the invention
In view of this, the present invention provides a kind of video data memory utilization method, the disk applied to storage video data
On, methods described includes:
Superblock is created in the superblock area of the disk, disk summary is created in the summary area of the disk, in institute
The data field establishment and the one-to-one data in magnetic disk block of disk summary, the disk summary for stating disk include channel number
Field, time started field;The video that data in magnetic disk block corresponding to the channel number field storage disk summary is stored
The channel number of video management equipment corresponding to data;
When receiving video data storage request, free disk data block is selected to carry out data storage, and in the disk number
According to the information that the video data is recorded in disk summary corresponding to block.
The present invention also provides a kind of video data management method, and applied in video management equipment, methods described includes:
When needing to store the video data of video management equipment first passage, the data in magnetic disk block of free time is selected to be somebody's turn to do
The storage of data;And summary info corresponding to the data in magnetic disk block is generated in the internal memory of the video management equipment, it is described
Summary info includes the channel number of the video data, time started;And plucked according to the channel number of the video data by described
Information is wanted to be inserted into corresponding channel control block chained list, the channel control block chained list is by the summary with same channels number
The chained list that information organizes together;The data in magnetic disk block is arrived into video data storage, and the video data is corresponding
Channel number, the corresponding two level superblock of time started write-in and disk summary.
The present invention also provides a kind of video data memory utilization device, applied in video management equipment, described device bag
Include:
Creating unit, for creating superblock in the superblock area of the disk, created in the summary area of the disk
Disk is made a summary, and is created in the data field of the disk and is plucked with the one-to-one data in magnetic disk block of disk summary, the disk
To include channel number field, time started field;The channel number field stores data in magnetic disk corresponding to the disk summary
The channel number of video management equipment corresponding to the video data that block is stored;
Memory cell, for when receiving video data storage request, selecting free disk data block to carry out data storage,
And the information of the video data is recorded in disk summary corresponding to the data in magnetic disk block.
The present invention also provides a kind of video data management device, and applied in video management equipment, described device includes:
Selecting unit, for when needing to store the video data of video management equipment first passage, selecting the magnetic of free time
Disk data block carries out the data storage;Generation unit, for generating the disk number in the internal memory of the video management equipment
According to summary info corresponding to block, the summary info includes the channel number of the video data, time started;
Unit is inserted, for the channel number according to the video data, the summary info is inserted into corresponding passage
In control block chained list, the channel control block chained list is the chained list for organizing together the summary info with same channels number;
Writing unit, for by the video data storage arrive the data in magnetic disk block after, by the video data
Corresponding channel number, the corresponding two level superblock of time started write-in and disk summary.
The present invention provides a kind of video data memory utilization method and apparatus, and disk space is divided into superblock, some
Data in magnetic disk block and disk one-to-one with data in magnetic disk block summary.When receiving video data storage request, dynamic is selected
Select free disk data block and carry out data storage, and the video data is recorded in disk summary corresponding to the data in magnetic disk block
Information, the dynamically distributes of video memory space are realized, relative in the prior art, before video data is received, will just stored
The static allocation mode that space distributes, video data memory utilization method provided by the invention is more flexible, while can be effective
Overcome in the prior art, brought when a certain disk can not use the problem of can not storing.The present invention also provides a kind of video
Data managing method and device, when needing to store the video data of a certain passage of video management equipment, select the disk of free time
Data block carries out the storage of the data, while channel control block chained list, channel control block are established in video management device memory
Chained list is effectively organized in order according to passage and temporal information, realizes quick indexing and the inquiry of video monitoring data, the program
The support of database is not needed, reduces FLASH space holds, and reduces the read-write number of disk, improves service speed.
Brief description of the drawings
Fig. 1 is a kind of disk storage device for planning and its basic hardware environment schematic provided by the invention.
Fig. 2 is disk space schematic diagram in the prior art.
Fig. 3 is a kind of superblock plot structure schematic diagram provided by the invention.
Fig. 4 is a kind of summary plot structure schematic diagram provided by the invention.
Fig. 5 is a kind of disk abstract structure schematic diagram provided by the invention.
Fig. 6 is a kind of summary group header structure schematic diagram provided by the invention.
Fig. 7 is a kind of data in magnetic disk block structure schematic diagram provided by the invention.
Fig. 8 is a kind of two level superblock structural representation provided by the invention.
Fig. 9 is a kind of corresponding schematic diagram of the data in magnetic disk block provided by the invention with bitmap tables.
Figure 10 is a kind of structural representation of chained list provided by the invention.
Figure 11 is a kind of exemplary networking structure figure provided by the invention.
Figure 12 is a kind of video data management device and its basic hardware key schematic diagram provided by the invention.
Figure 13 is a kind of disk storage planning process chart provided by the invention.
Figure 14 be it is provided by the invention it is a kind of judge disk whether have preset format process chart.
Figure 15 is a kind of process chart that video data management is carried out to disk provided by the invention.
Embodiment
The present invention provides a kind of video data storage treatment technology.So that computer is realized as an example, the present invention provides one kind and regarded
Frequency is according to memory utilization device, on the disk applied to storage video data.The disk is located in video management equipment, such as
NVR。
Fig. 1 is refer to, the video data memory utilization device includes creating unit and memory cell.The device is in video
It is related to following handling process in management equipment in running, as shown in figure 13.
Step 101, creating unit creates superblock in the superblock area of the disk, in the summary Qu Shangchuan of the disk
Disk summary is built, is created in the data field of the disk and the one-to-one data in magnetic disk block of disk summary, the disk
Summary includes channel number field, time started field;The channel number field stores disk number corresponding to the disk summary
The channel number of video management equipment corresponding to the video data stored according to block;
Step 102, when receiving video data storage request, memory cell selecting free disk data block carries out data and deposited
Store up, and the information of the video data is recorded in disk summary corresponding to the data in magnetic disk block.
Fig. 2 is refer to, in the prior art, disk generally comprises superblock, master index area and at least one data field.Mesh
The memory space independent as one of whole data field in disk is allocated to an image capture device by preceding memory technology room,
Such as IPC, size and location and determination due to the memory space, therefore when the disk can not be continuing with, correspond to therewith
IPC captured by video data just nowhere deposit, and then influence storage video data reliability.
Therefore, the creating unit in video data memory utilization device provided by the invention can be to the existing of the disk
Structure carries out planning improvement, disk is had default form, so as to can share memory space between each IPC, its is specific
Planning process it is as follows.
First, creating unit creates superblock in the superblock area of the disk, is deposited in the superblock area described in having
The intrinsic information of disk, as described in Figure 3.Wherein, Magic number is used to judge whether the disk has default form;Disk lattice
The version number of formula is used to provide relevant information for modification form in the future;Device id is used to identify the disk is which video tube belonged to
Manage equipment;CRC is used for the verification in superblock region, to ensure the complete of data;Resource group is encoded for determining which data belong to
Individual resource group;Capacity is used to represent disk space size;Number of unit is used to represent that the disk includes how many individual data blocks.
Then, creating unit creates disk summary in the summary area of the disk.Because one piece of data in magnetic disk area is usual
Several sectors can be divided into, managed for convenience, creating unit typically can be that each sector creates a summary group, each
Summary group includes a summary group head and several disks are made a summary, as shown in Figure 4.Because each sector includes several magnetic
Disk data block (hereafter will be described in more detail), and the disk summary corresponds with data in magnetic disk block, and preserves the disk
Whether the summary info of data block, such as the data in magnetic disk block have distributed (UD), if lock (LK), institute in the data in magnetic disk block
The type of video data is deposited, which passage the data in magnetic disk block belongs to, and video data time started and video data terminate
Time etc., as shown in Figure 5.And the CRC check value included in summary group head can ensure all disk summaries in the summary group
The integrality of the above- mentioned information preserved, as shown in fig. 6, specifically, when CRC check fails, described device can pass through reading
Take the summary group to correspond to the two level superblock in sector in each data block, repaired according to the information preserved on two level superblock
The information of the disk summary.
Finally, several data in magnetic disk blocks are created in the data field of the disk, from the foregoing, it can be understood that the data in magnetic disk block
Make a summary and correspond with the disk.As shown in fig. 7, the data in magnetic disk block includes two level superblock, data directory area, and
Data field.Fig. 8 is refer to, the two level superblock includes channel number field, time started field etc., from the foregoing, it can be understood that working as institute
, can be according to information, quick reconfiguration magnetic on the two level superblock when stating the disk summary read-write error corresponding to data in magnetic disk block
Disk is made a summary.Two level superblock also includes video data segment and described, and the video data segment describes to be used to describe video data
Each contiguous segmentation information.When checking video data, video data segment description can make it that Search and Orientation is more accurate
Quickly.In addition, data in magnetic disk block size can be divided according to being actually needed, for example, the big I of each data in magnetic disk block
Think 256M.
Due to processing of the disk Jing Guo creating unit, be divided into multiple data in magnetic disk blocks, cause NVR have it is multiple can
With the memory space being allocated, resource is provided for the follow-up dynamically distributes that carry out.Because in the prior art, memory space is pre-
First distribute, for example, being connected now with IPCA and IPCB with NVR, and send video data to NVR, and be inserted with and be used on NVR
The disk 1 and disk 2 of video data are stored, NVR can in advance be set, be received at IPCA before video data is received
Video data store into disk 1, the video data that is received at IPCB is stored into disk 2.It is but provided by the invention
Technical scheme will be divided into multiple data in magnetic disk blocks for storing each disk of video data in advance, receive video data
During storage request, carry out choosing available memory space from several data in magnetic disk blocks, then store the video data received
Into the memory space selected.The mode of this memory space dynamic allocation, relative to prior art, more flexibly, facilitate.
Generally can also be described after the disk is divided into multiple data in magnetic disk blocks in addition, managing for convenience
Disk establishes bitmap tables, and whether one data in magnetic disk block of each mark bit identification in the bitmap tables is occupied, reaches
All data in magnetic disk blocks are carried out with the purpose of overall distribution and management, as shown in Figure 9.For example, when the data in magnetic disk block can
Used time, the flag bit are 0, and after being stored in video data in the data in magnetic disk block, then flag bit described in set is 1, with table
The bright memory space is unavailable.Certainly, the flag bit be also not limited to 1 and 0 or other can distinguish disk
The whether occupied identifier of data block.
In order to be dynamically that the video data that IPC is provided distributes data in magnetic disk block, insertion NVR need to be used to store
The disk of video data carries out verification process, and its processing may include steps of, as shown in figure 14.
Step 301, when the disk inserts the video management equipment, processing unit is by check field in the disk
In information contrasted with default check value;
Step 302, if comparing result is inconsistent, processing unit judges that the disk does not have preset data form, uses Fig. 1
In creating unit the disk is formatted.
Because under normal circumstances, the video data that only disk with preset data form can just be embodied as receiving moves
The function of state distribution storage.So when inserting the NVR for storing the disk of video data, need to be first to the magnetic
Disk is judged, to confirm whether the disk of insertion has preset data form.Due in the disk with preset data form
Include check field, that is, Magic number, if so insertion disk check field and default check value it is inconsistent,
Illustrate that the disk does not have preset data form;If the check field of the disk of insertion is consistent with default check value, illustrate
The disk has preset data form.According to judged result, if the check field of the disk of insertion contrasts with default check value
It is inconsistent, then the disk does not just have preset data form, and now the disk is formatted.
It refer to Figure 12, the present invention also provides a kind of video data management device, described applied in video management equipment
Disk of the video management equipment based on video data memory utilization device planning processing carries out video data management, processing stream
Journey can be carried out in accordance with the following steps, as shown in figure 15.
Step 201, when needing to store the video data of video management equipment first passage, the selecting unit selection free time
Data in magnetic disk block carries out the storage of the data;
As shown in figure 11, in a preferred embodiment, the video management equipment is usually NVR, and a NVR typically can
It is connected with one or more IPC, and a passage is distributed for each IPC.NVR receives IPC corresponding to the first passage and sent
Storage request, asked further according to the storage, unappropriated data in magnetic disk block chosen for the video data that the IPC is sent, with
Just the video data is deposited, the video preserved could be then managed.
Specifically, understood according to step 201 previous, the bitmap tables include for identifying corresponding storage
The whether available flag bit in space.Therefore, selecting unit can select unappropriated magnetic according to the flag bit of the bitmap tables
Disk data block.
Step 202, generation unit generates in the internal memory of the video management equipment plucks corresponding to the data in magnetic disk block
Information is wanted, the summary info includes the channel number of the video data, time started;
After selecting unit selects data in magnetic disk block according to above-mentioned steps, generation unit is in the video management equipment
Summary info corresponding to the data in magnetic disk block is generated in internal memory.
In order to preferably safeguard disk resource list, selecting unit can also be entered in the idle data in magnetic disk block of selection
Row the data storage after, flag bit corresponding to data in magnetic disk block described in set, for example, by the set of flag bit 0 be 1, to indicate
It is occupied to state memory space.
, can also be by between at the beginning of the video data and the first passage for the ease of searching the video in the future
Channel number is saved in disk summary corresponding to the data in magnetic disk block.Include corresponding magnetic in being made a summary due to the disk
The positional information of disk data block, the positional information include the summary info corresponding to memory space which disk belonged to,
In the disk where, thus magnetic corresponding to disk summary can be found immediately according to the positional information
The video data preserved in disk data block.
Step 203, channel number of the unit according to the video data is inserted, the summary info is inserted into corresponding logical
In road control block chained list, the channel control block chained list is the chain for organizing together the summary info with same channels number
Table;
In order to be managed to the video data of storage, it will usually in storage institute's video data to the data in magnetic disk
After block, between being stored with the beginning of video data and channel number summary info be inserted into corresponding to channel control block chained list
In, the channel control block chained list is the chained list for organizing together the summary info with same channels number.
The chained list can be an one-level chained list, can also establish a multistage chained list as needed.Now with foundation
Exemplified by two level chained list, illustrate.A channel control block chained list is first established according to channel number, i.e. a channel number is corresponding one
Channel control block chained list, directory node is set according to different time sections in the channel control block chained list.Receiving video counts
According to rear, insertion unit can according to the channel number of the video data, find corresponding to channel control block chained list.Regarded due to described
Between also including in the summary info of frequency evidence at the beginning of the video data, therefore can be according to belonging to searching the time started
Directory node corresponding to period, and by the summary info carry in catalogue section corresponding to the time started affiliated period
Under point.
For example, as shown in Figure 9 and Figure 10, there is several data in magnetic disk blocks in disk A, each data in magnetic disk block has
Corresponding flag bit, wherein there are four data in magnetic disk blocks, video data is stored, therefore this four data in magnetic disk blocks are corresponding
Disk summary in contain at the beginning of stored video data between.First, with 24 hours for a period, during by this
Between section establish a channel control block chained list, i.e. 1 day 00 May as directory node:00:00~23:59:59 be first catalogue
Node, 2 days 00 May:00:00~23:59:59 be second directory node, on May 3 00:00:00~23:59:59 be the 3rd
Individual directory node.Receive and data storage video to disk summary 1 corresponding to data in magnetic disk block, and after generating summary info,
Which period belonged between judging in summary info at the beginning of video data, between at the beginning of the video data that is stored
It is on May 1 14:00:00, therefore the summary info can be mounted under first directory node.Often receive a video
Data, above-mentioned deterministic process is just repeated, all summary infos are all mounted under corresponding directory node, thus established out
With the summary info that can a be searched chained list, equally, each summary info of the carry under same directory node can also
Arranged according to the order of time started.
Here it should be noted that, can also except the order illustrated above according to the video data capture time
Place name initial according to video data capture place, which puts in order, establishes chained list, can also establish chained list in other orders,
As long as convenient management inquiry in the future.
Step 204, after video data storage is arrived into the data in magnetic disk block, writing unit is by the video data
Corresponding channel number, the corresponding two level superblock of time started write-in and disk summary.
In actual application, it is possible that the disk used is had begun to, because some reasons, such as disk damage
It is bad, stop using, when the disk recovers in use, need to be made a summary according to two level superblock on disk and disk, by dependency number it is believed that
Breath is re-added in the channel control block chained list.Therefore, after video data storage is arrived into the data in magnetic disk block,
Channel number, time started corresponding to the video data are write corresponding two level superblock and disk and made a summary by writing unit.
After by aforesaid operations step, passage corresponding to each IPC can establish a channel control block chained list, the chain
Table can be used for searching the video data captured by the IPC, and its search procedure can include following two modes.
The first is typically the mode inquired about one-level chained list, and process may comprise steps of.
Step 401, after the inquiry request of video data is received, in the lookup of the first query unit and the inquiry request
Channel number corresponding to channel control block chained list, and further in the channel control block chained list according in the inquiry request
Time search the summary info of corresponding time;
Due to above-mentioned steps sequentially in time, the summary info that will be stored with the data in magnetic disk block of video data is carried out
Arrangement, so after the first query unit receives inquiry request, each summary info can be inquired about in the chained list.Specifically
Say, if the first query unit inquire a certain summary info contained by video information meet query time in the inquiry request,
Then obtain the video data met in data in magnetic disk corresponding to the summary info.
Step 402, first acquisition unit finds corresponding disk summary, made a summary according to disk according to the summary info
Data in magnetic disk block corresponding to finding, the video data of inquiry is obtained from the data in magnetic disk block.
After the summary info is obtained according to above-mentioned steps, according to the summary info, corresponding disk summary is found,
The positional information in disk summary is obtained, and then finds corresponding data in magnetic disk block, is returned in the data in magnetic disk block
Video data.
Second is typically the mode inquired about multistage chained list, and process may comprise steps of.
Step 501, after the inquiry request of video data is received, in the lookup of the second query unit and the inquiry request
Channel number corresponding to channel control block chained list, and further in the channel control block chained list according in the inquiry request
The coarseness time search corresponding to period directory node, and further the fine granularity time in the inquiry request exists
Summary info corresponding to being searched in summary info chained list under the directory node of the period;
Step 502, second acquisition unit finds corresponding disk summary, made a summary according to disk according to the summary info
Data in magnetic disk block corresponding to finding, the video data of inquiry is obtained from the data in magnetic disk block.
For example, receiving inquiry request now, the second query unit is searched and the channel number in the inquiry request
Corresponding channel control block chained list.Including query time in the inquiry request, " time started was 2 days 13 May:30:00~
14:30:Video data between 00 ", the second query unit can be first to the period directory nodes in chained list as shown in Figure 10
Inquired about, because directory node is the period, so the query process be by the query time in inquiry request with it is each
The period of directory node is contrasted.Because the period of first directory node is on May 1 00:00:00~23:59:
59, it is not consistent with the query time, so continuing to be contrasted with second directory node.Due to second directory node
Period is on May 2 00:00:00~23:59:59, it is consistent with the query time, then to carry in second catalogue section
Each summary info under point is inquired about.Similar to the process of foregoing query directory node, inquiring about the summary info is exactly
It will be contrasted between at the beginning of in video information in query time and summary info in search request.Because first summary
The time started is 11 in information:00:00, it is not consistent with query time, is made a summary in being to continue with inquiry second.Because second is plucked
It is 14 to want the time started in information:00:00, it is consistent with query time, therefore obtain the summary info node.
In actual application, it is possible to the situation that the video data to be inquired about is not present occurs, at this moment, second obtains
Unit and second acquisition unit is taken to return to one prompt message not inquired of user.
For example, a query time is now received as " time started was 29 days 00 April:00:00~23:59:Between 59
The inquiry request of video data ", inquired about according to above-mentioned inquiry mode, but fail to find and meet looking into the inquiry request
The summary info of inquiry time, the prompt message for now not inquiring return, such as pop-up display, which have, " not to be found and meets inquiry
It is required that video " text information dialog box, so that user is according to prompt message, reset query time.
Realize and regard by way of obtaining video data inquiring about channel control block chained list it can be seen from above-mentioned example
The quick indexing of frequency monitoring data and inquiry, the program do not need the support of database, reduce FLASH space holds, and subtract
The read-write number of few disk, improves service speed.
In addition, the disk in NVR is possible to that damage occurs, or artificially stop using the situation of some disk.So
The video management device can also carry out deletion action, to tackle this kind of situation.Specifically, damaged when in the disk
Disk that is bad or disabling, when can not continue to store video data, video management device is deleted to be belonged in the disk resource list
In the flag bit of all data in magnetic disk blocks of the disk.So, would not when selecting free disk according to flag bit
The situation that the data in magnetic disk block for occurring choosing is not present, and then improve the reliability of video data storage.
Compared with technical scheme provided by the invention, prior art is due to being for disk described in each IPC static allocation
On data field, if some disk occurs damaging or disabled, then all data fields belonged on the disk also can not just make
With then causing to be assigned with the video data come transmitted by the IPC of the memory space can not store, and have a strong impact on video counts
According to the reliability of storage.And technical scheme provided by the invention, because being dynamically distributes, i.e., after video data is received,
Further according to the flag bit in the disk resource list, available memory space is chosen, due to damaging or disabling the disk of disk
Data block respective flag position can be deleted, and so avoided to belong to damage for received video data distribution or disabled magnetic
The data in magnetic disk block of disk.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God any modification, equivalent substitution and improvements done etc., should be included within the scope of protection of the invention with principle.
Claims (16)
- A kind of 1. video data memory utilization method, applied on the disk for storing video data, it is characterised in that methods described Including:Superblock is created in the superblock area of the disk, disk summary is created in the summary area of the disk, in the magnetic The data field of disk creates includes corresponding disk with the one-to-one data in magnetic disk block of disk summary, the disk summary The summary info of data block, the summary info include channel number field, time started field;The channel number field stores institute The channel number of video management equipment corresponding to the video data that data in magnetic disk block corresponding to stating disk summary is stored;When receiving video data storage request, free disk data block is selected to carry out data storage, and in the data in magnetic disk block The information of the video data is recorded in corresponding disk summary.
- 2. according to the method for claim 1, it is characterised in that methods described also includes:Some summary groups are created in the summary area of the disk, each summary group includes a summary group head and predetermined number Disk summary, the summary group head includes check value, and the check value verifies to the summary group, and guarantee data are complete Property.
- 3. according to the method for claim 1, it is characterised in that the data in magnetic disk block includes two level superblock, data rope Draw area, and data field, the two level superblock includes:Channel number field, time started field, so as in the data in magnetic disk Corresponding to block disk summary read-write error when, quick reconfiguration disk summary.
- 4. method according to claim 3, it is characterised in that the two level superblock also includes video data segment and described, The video data segment describes to be used to describe each contiguous segmentation information of video data.
- 5. a kind of video data management method, applied in video management equipment, the video management equipment is based on right such as will The disk of 1 to 4 any methods described planning processing is asked to carry out video data management, it is characterised in that methods described includes:When needing to store the video data of video management equipment first passage, the data in magnetic disk block of free time is selected to carry out the data Storage;And summary info corresponding to the data in magnetic disk block, the summary are generated in the internal memory of the video management equipment Information includes the channel number of the video data, time started;And the summary is believed according to the channel number of the video data Breath is inserted into corresponding channel control block chained list, and the channel control block chained list is by the summary info with same channels number The chained list organized together;The data in magnetic disk block is arrived into video data storage, and will be led to corresponding to the video data Taoist monastic name, the corresponding two level superblock of time started write-in and disk summary.
- 6. according to the method for claim 5, it is characterised in that the channel control block chained list also includes according to time order and function The directory node chained list of the directory node composition of tactic some preset time periods;The channel number according to the video data by the summary info be inserted into corresponding to enter in channel control block chained list One step includes being believed according to summary summary info being inserted under the directory node of corresponding period between at the beginning of video data Cease chained list.
- 7. according to the method for claim 5, it is characterised in that methods described also includes:After the inquiry request of video data is received, channel control block corresponding with the channel number in the inquiry request is searched Chained list, and further the time in the channel control block chained list in the inquiry request searches the summary of corresponding time Information;According to the summary info, corresponding disk summary, the data in magnetic disk block according to corresponding to being found disk summary, from institute are found State the video data that inquiry is obtained in data in magnetic disk block.
- 8. according to the method for claim 6, it is characterised in that:After the inquiry request of video data is received, channel control block corresponding with the channel number in the inquiry request is searched Chained list, and further in the channel control block chained list coarseness time in the inquiry request search corresponding to when Between section directory node, and further the fine granularity time in the inquiry request under the directory node of the period Summary info corresponding to being searched in summary info chained list;According to the summary info, corresponding disk summary, the data in magnetic disk block according to corresponding to being found disk summary, from institute are found State the video data that inquiry is obtained in data in magnetic disk block.
- A kind of 9. video data memory utilization device, applied on the disk for storing video data, it is characterised in that described device Including:Creating unit, for creating superblock in the superblock area of the disk, disk is created in the summary area of the disk Summary, establishment and the one-to-one data in magnetic disk block of disk summary in the data field of the disk, during the disk is made a summary Include the summary info of corresponding data in magnetic disk block, the summary info includes channel number field, time started field;It is described logical Video management equipment corresponding to the video data that data in magnetic disk block corresponding to the Taoist monastic name field storage disk summary is stored Channel number;Memory cell, for when receiving video data storage request, selecting free disk data block to carry out data storage, and The information of the video data is recorded in disk summary corresponding to the data in magnetic disk block.
- 10. device according to claim 9, it is characterised in that the creating unit is additionally operable to:Some summary groups are created in the summary area of the disk, each summary group includes a summary group head and predetermined number Disk summary, the summary group head includes check value, and the check value verifies to the summary group, and guarantee data are complete Property.
- 11. device according to claim 9, it is characterised in that the data in magnetic disk block includes two level superblock, data rope Draw area, and data field, the two level superblock includes:Channel number field, time started field, so as in the data in magnetic disk Corresponding to block disk summary read-write error when, reconstructing disk summary.
- 12. according to claim 11 described device, it is characterised in that the two level superblock is also retouched including video data segment State, the video data segment describes to be used to describe each contiguous segmentation information of video data.
- 13. a kind of video data management device, applied in video management equipment, the video management equipment is based on right such as will The disk of 9 to 12 any described device planning processing is asked to carry out video data management, it is characterised in that described device includes:Selecting unit, for when needing to store the video data of video management equipment first passage, selecting the disk number of free time The data storage is carried out according to block;Generation unit, for generating the data in magnetic disk block in the internal memory of the video management equipment Corresponding summary info, the summary info include the channel number of the video data, time started;Unit is inserted, for the channel number according to the video data, the summary info is inserted into corresponding passage control In block chained list, the channel control block chained list is the chained list for organizing together the summary info with same channels number;Writing unit, for after video data storage is arrived into the data in magnetic disk block, the video data to be corresponded to Channel number, the corresponding two level superblock of time started write-in and disk summary.
- 14. device according to claim 13, it is characterised in that the channel control block chained list also includes first according to the time The directory node chained list of the directory node composition of tactic some preset time periods afterwards;The insertion unit is further used for, according to summary info is inserted into the corresponding period between at the beginning of video data Summary info chained list under directory node.
- 15. device according to claim 13, it is characterised in that described device also includes:First query unit, for after the inquiry request of video data is received, searching and the passage in the inquiry request Channel control block chained list corresponding to number, and the further time in the channel control block chained list in the inquiry request Search the summary info of corresponding time;First acquisition unit, for according to the summary info, finding corresponding disk summary, being found correspondingly according to disk summary Data in magnetic disk block, the video data of inquiry is obtained from the data in magnetic disk block.
- 16. device according to claim 14, it is characterised in that described device also includes:Second query unit, for after the inquiry request of video data is received, searching and the passage in the inquiry request Channel control block chained list corresponding to number, and the further coarse grain in the channel control block chained list in the inquiry request Spend the time search corresponding to period directory node, and further the fine granularity time in the inquiry request when described Between section directory node under summary info chained list in search corresponding to summary info;Second acquisition unit, for according to the summary info, finding corresponding disk summary, being found correspondingly according to disk summary Data in magnetic disk block, the video data of inquiry is obtained from the data in magnetic disk block.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410424702.2A CN104182354B (en) | 2014-08-26 | 2014-08-26 | A kind of video management method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410424702.2A CN104182354B (en) | 2014-08-26 | 2014-08-26 | A kind of video management method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104182354A CN104182354A (en) | 2014-12-03 |
CN104182354B true CN104182354B (en) | 2017-12-15 |
Family
ID=51963417
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410424702.2A Active CN104182354B (en) | 2014-08-26 | 2014-08-26 | A kind of video management method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104182354B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105095026A (en) * | 2015-08-31 | 2015-11-25 | 小米科技有限责任公司 | Superblock repair method and apparatus for EXT file system and intelligent device |
CN107393052B (en) * | 2017-06-28 | 2019-01-04 | 深圳市爱培科技术股份有限公司 | A kind of recorder date storage method and its storage device |
CN109979498A (en) * | 2019-01-24 | 2019-07-05 | 深圳市景阳信息技术有限公司 | The method and device of the write-in of disk video data, reading |
WO2021097704A1 (en) * | 2019-11-20 | 2021-05-27 | 深圳市欢太科技有限公司 | Data transmission method, data downloading method and terminal |
CN113377993A (en) * | 2021-08-13 | 2021-09-10 | 深圳市有为信息技术发展有限公司 | Audio and video data management method, system and equipment of vehicle-mounted equipment and commercial vehicle |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096698A (en) * | 2010-12-14 | 2011-06-15 | 青岛海信网络科技股份有限公司 | Video data storage format, storage method and search method |
CN102331920A (en) * | 2011-07-26 | 2012-01-25 | 深圳市万兴软件有限公司 | Data processing method and device |
CN102375694A (en) * | 2010-08-20 | 2012-03-14 | 杭州华三通信技术有限公司 | Data processing method and device |
CN102982182A (en) * | 2012-12-21 | 2013-03-20 | 浙江宇视科技有限公司 | Data storage planning method and device |
-
2014
- 2014-08-26 CN CN201410424702.2A patent/CN104182354B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102375694A (en) * | 2010-08-20 | 2012-03-14 | 杭州华三通信技术有限公司 | Data processing method and device |
CN102096698A (en) * | 2010-12-14 | 2011-06-15 | 青岛海信网络科技股份有限公司 | Video data storage format, storage method and search method |
CN102331920A (en) * | 2011-07-26 | 2012-01-25 | 深圳市万兴软件有限公司 | Data processing method and device |
CN102982182A (en) * | 2012-12-21 | 2013-03-20 | 浙江宇视科技有限公司 | Data storage planning method and device |
WO2014094568A1 (en) * | 2012-12-21 | 2014-06-26 | 浙江宇视科技有限公司 | Data storage planning method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104182354A (en) | 2014-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104182354B (en) | A kind of video management method and device | |
CN106201355A (en) | Data processing method and device and storage system | |
CN106970958B (en) | A kind of inquiry of stream file and storage method and device | |
KR101744892B1 (en) | System and method for data searching using time series tier indexing | |
CN108614837B (en) | File storage and retrieval method and device | |
CN107092686B (en) | File management method and device based on cloud storage platform | |
CN109669622A (en) | A kind of file management method, document management apparatus, electronic equipment and storage medium | |
CN107085546A (en) | Data managing method and device based on failure field technique | |
US8290957B2 (en) | Information processing apparatus, information processing method and program therefor | |
CN110046062A (en) | Distributed data processing method and system | |
CN104461384B (en) | A kind of method for writing data and storage device | |
CN110611715B (en) | System and method for collecting cloud monitoring information through service links | |
CN109189759A (en) | Method for reading data, data query method, device and equipment in KV storage system | |
CN110737389B (en) | Method and device for storing data | |
CN109669621A (en) | A kind of file management method, file management system, electronic equipment and storage medium | |
CN105718539B (en) | A kind of database application method and device | |
JP2006338620A (en) | Image data retrieval device, method and program | |
CN107122136B (en) | Capacity obtaining method and device | |
BR102013016924A2 (en) | Method and apparatus for prioritizing metadata | |
CN109669623A (en) | A kind of file management method, document management apparatus, electronic equipment and storage medium | |
CN111722783B (en) | Data storage method and device | |
CN110874182B (en) | Processing method, device and equipment for strip index | |
KR101368441B1 (en) | Apparatus, method and computer readable recording medium for reusing a free space of database | |
CN103744892B (en) | A kind of method and apparatus for locking of recording a video | |
CN107038179B (en) | Information item storage method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |