CN104182354A - Video managing method and device - Google Patents

Video managing method and device Download PDF

Info

Publication number
CN104182354A
CN104182354A CN201410424702.2A CN201410424702A CN104182354A CN 104182354 A CN104182354 A CN 104182354A CN 201410424702 A CN201410424702 A CN 201410424702A CN 104182354 A CN104182354 A CN 104182354A
Authority
CN
China
Prior art keywords
disk
data
video data
magnetic disk
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.)
Granted
Application number
CN201410424702.2A
Other languages
Chinese (zh)
Other versions
CN104182354B (en
Inventor
严爱杰
赵汉表
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201410424702.2A priority Critical patent/CN104182354B/en
Publication of CN104182354A publication Critical patent/CN104182354A/en
Application granted granted Critical
Publication of CN104182354B publication Critical patent/CN104182354B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a video data storage utilization and video data managing method and device. The video data storage utilization method includes: creating a super block in the super block area of a disk, creating disk abstracts in the abstract area of the disk, creating disk data blocks in one-to-one correspondence to the disk abstracts in the data area of the disk, wherein each disk abstract includes channel number fields and starting time fields, and the channel number of video managing equipment corresponding to the video data stored in the disk data blocks corresponding the disk abstracts are stored in the channel number fields; when a video data storage request is received, selecting idle disk data blocks for data storage, and recording the information of the video data in the disk abstracts corresponding to the data blocks. By the method, the problem that video data cannot be stored when one disk fails in the prior art is solved.

Description

A kind of video management method and device
Technical field
The present invention relates to video storage technical field, relate in particular to a kind of Video Data Storage planning, video data management method and device.
Background technology
Along with the development of Video Supervision Technique, various video camera apparatus and video management equipment are widely used, for example web camera IPC and network video machine NVR.So, how the multitude of video photographing is carried out to storage administration, be a problem meriting attention.
Current video block storage mode is, on the disk of video management equipment for each video camera apparatus distributes an independently storage space, once this storage space is assigned, its memory location and space size are just determined, can not change, this storage space does not allow other video camera apparatus to write again.And each picture pick-up device can be set up index store video in the storage space of distributing to oneself.Therefore, in the time that a certain disk on video management equipment extracted, the storage space being positioned on this disk just cannot use, and then cause distributing the video recording equipment of this disk storage space can not continue store video, cause the reliability of video storage not high, thereby affected the integrality of video monitoring.Existing memory technology scheme, cannot realize dynamic assignment, dirigibility and the poor expandability of video camera apparatus storage space.
Piece memory technology is that the storage space of dividing is set up secondary index on disk at present, by patrolling and examining, index data is kept to database, Database needs larger FLASH space, and patrols and examines at every turn and retrieve and all need to read index, cause disk read-write operation a lot, speed is slow.
Summary of the invention
In view of this, the invention provides a kind of Video Data Storage planing method, be applied on the disk of stored video data, described method comprises:
Superblock district at described disk creates superblock, in the summary district of described disk, create disk summary, create in the data field of described disk and the described disk data in magnetic disk piece one to one of making a summary, described disk summary comprises channel number field, start time field; Described channel number field is stored the channel number of the video management equipment that video data that data in magnetic disk piece that described disk makes a summary corresponding stores is corresponding;
In the time receiving Video Data Storage request, select idle data in magnetic disk piece to carry out data storage, and in disk summary corresponding to this data in magnetic disk piece, record the information of this video data.
The present invention also provides a kind of video data management method, is applied on video management equipment, and described method comprises:
In the time needing the video data of store video management equipment first passage, select idle data in magnetic disk piece to carry out the storage of these data; And in the internal memory of described video management equipment, generating summary info corresponding to described data in magnetic disk piece, described summary info comprises channel number, the start time of described video data; And according to the channel number of described video data, described summary info is inserted in corresponding channel control block chained list, described channel control block chained list is the chained list that the summary info with same channels number is organized together; Described Video Data Storage is arrived to described data in magnetic disk piece, and channel number corresponding described video data, start time are write to corresponding secondary superblock and disk summary.
The present invention also provides a kind of Video Data Storage device for planning, is applied on video management equipment, and described device comprises:
Creating unit, create superblock for the superblock district at described disk, in the summary district of described disk, create disk summary, create and the described disk data in magnetic disk piece one to one of making a summary in the data field of described disk, described disk summary comprises channel number field, start time field; Described channel number field is stored the channel number of the video management equipment that video data that data in magnetic disk piece that described disk makes a summary corresponding stores is corresponding;
Storage unit, in the time receiving Video Data Storage request, selects idle data in magnetic disk piece to carry out data storage, and in disk summary corresponding to this data in magnetic disk piece, records the information of this video data.
The present invention also provides a kind of video data management device, is applied on video management equipment, and described device comprises:
Selected cell, in the time needing the video data of store video management equipment first passage, selects idle data in magnetic disk piece to carry out this data storage; Generation unit, for generate summary info corresponding to described data in magnetic disk piece at the internal memory of described video management equipment, described summary info comprises channel number, the start time of described video data;
Plug-in unit, for according to the channel number of described video data, is inserted into described summary info in corresponding channel control block chained list, and described channel control block chained list is the chained list that the summary info with same channels number is organized together;
Writing unit, for after described Video Data Storage is arrived to described data in magnetic disk piece, writes corresponding secondary superblock and disk summary by channel number corresponding described video data, start time.
The invention provides a kind of Video Data Storage planing method and device, disk space be divided into superblock, some data in magnetic disk pieces and with data in magnetic disk piece disk summary one to one.In the time receiving Video Data Storage request, the idle data in magnetic disk piece of Dynamic Selection carries out data storage, and in disk corresponding to this data in magnetic disk piece summary, record the information of this video data, realize the dynamic assignment in video storage space, in prior art, before receiving video data, just by static allocation mode good memory allocation, Video Data Storage planing method provided by the invention is more flexible, can effectively overcome in prior art the problem that cannot store of bringing simultaneously in the time that a certain disk can not use.The present invention also provides a kind of video data management method and apparatus, in the time needing the video data of a certain passage of store video management equipment, select idle data in magnetic disk piece to carry out the storage of these data, in video management device memory, set up channel control block chained list simultaneously, channel control block chained list is effectively organized in order according to passage and temporal information, quick indexing and the inquiry of video monitoring data are realized, this scheme does not need the support of database, reduce FLASH space hold, and the read-write number of times that reduces disk, has improved operating speed.
Brief description of the drawings
Fig. 1 is a kind of disk storage device for planning provided by the invention and basic hardware environment schematic diagram thereof.
Fig. 2 is disk space schematic diagram in 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 secondary superblock structural representation provided by the invention.
Fig. 9 is the corresponding schematic diagram that a kind of data in magnetic disk piece provided by the invention is shown with bitmap.
Figure 10 is the structural representation of a kind of chained list provided by the invention.
Figure 11 is a kind of exemplary networking structure figure provided by the invention.
Figure 12 is the crucial schematic diagram of a kind of video data management device provided by the invention and basic hardware thereof.
Figure 13 is a kind of disk storage planning processing flow chart provided by the invention.
Figure 14 provided by the inventionly a kind ofly judges whether disk has the processing flow chart of default form.
Figure 15 is a kind of processing flow chart that disk is carried out to video data management provided by the invention.
Embodiment
The invention provides a kind of Video Data Storage treatment technology.Taking computer realization as example, the invention provides a kind of Video Data Storage device for planning, be applied on the disk of stored video data.Described disk is arranged in video management equipment, for example NVR.
Please refer to Fig. 1, described Video Data Storage device for planning comprises creating unit and storage unit.This device relates to following treatment scheme on video management equipment in operational process, as shown in figure 13.
Step 101, creating unit creates superblock in the superblock district of described disk, in the summary district of described disk, create disk summary, create in the data field of described disk and the described disk data in magnetic disk piece one to one of making a summary, described disk summary comprises channel number field, start time field; Described channel number field is stored the channel number of the video management equipment that video data that data in magnetic disk piece that described disk makes a summary corresponding stores is corresponding;
Step 102, in the time receiving Video Data Storage request, the idle data in magnetic disk piece of memory cell selecting carries out data storage, and in disk summary corresponding to this data in magnetic disk piece, records the information of this video data.
Please refer to Fig. 2, in prior art, disk generally comprises superblock, master index district and at least one data field.Current memory technology chamber using whole data field in disk as one independently storage space be allocated to an image capture device, for example IPC, due to size and the position and definite of this storage space, therefore in the time that this disk can not continue to use, the captured video data of corresponding IPC is just deposited nowhere with it, and then the reliability of video data is deposited in impact.
Therefore, creating unit in Video Data Storage device for planning provided by the invention can be planned improvement to the existing structure of described disk, make disk have default form, so that can share storage space between each IPC, its concrete planning process is as follows.
First, creating unit creates superblock in the superblock district of described disk, deposits the intrinsic information of described disk, as described in Figure 3 in described superblock district.Wherein, Magic number is for judging whether described disk has default form; The version number of disc format is used to revises form in the future relevant information is provided; It is to belong to which video management equipment that device id is used for identifying this disk; CRC is for the verification in superblock region, to ensure the complete of data; Which resource group resource group coding belongs to for specified data; Capacity is used for representing disk space size; Number of unit is used for representing that this disk comprises how many data blocks.
Then, creating unit creates disk summary in the summary district of described disk.Because a data in magnetic disk district can be divided into several sectors conventionally, for convenient management, creating unit generally can be for each sector creates a summary group, and each summary group comprises a summary group head and several disks summary, as shown in Figure 4.Because each sector includes several data in magnetic disk pieces (below will be elaborated), described disk summary is corresponding one by one with data in magnetic disk piece, and preserve the summary info of this data in magnetic disk piece, for example whether this data in magnetic disk piece distributes (UD), whether lock (LK), the type of the video data of depositing in this data in magnetic disk piece, which passage this data in magnetic disk piece belongs to, video data start time and video data end time etc., as shown in Figure 5.And the CRC check value comprising in summary group head can ensure in described summary group all disks above-mentioned information integrity of preserving of making a summary, as shown in Figure 6, specifically, in the time of CRC check failure, described device can be organized the secondary superblock in each data block in corresponding sector by reading this summary, repairs the information of described disk summary according to the information of preserving on secondary superblock.
Finally, create several data in magnetic disk pieces in the data field of described disk, from above, described data in magnetic disk piece is corresponding one by one with described disk summary.As shown in Figure 7, described data in magnetic disk piece comprises secondary superblock, data directory district, and data field.Please refer to Fig. 8, described secondary superblock comprises channel number field, start time field etc., from above, and in the time of the corresponding disk summary of described data in magnetic disk piece read-write error, can be according to information on described secondary superblock, quick reconfiguration disk summary.Secondary superblock also comprises video data segment description, and described video data segment is described and is used for describing the each contiguous segmentation information of video data.In the time checking video data, this video data segment is described and can be made Search and Orientation more precisely fast.In addition, data in magnetic disk block size can be divided according to actual needs, and for example, the size of each data in magnetic disk piece can be 256M.
Because disk is through the processing of creating unit, be divided into multiple data in magnetic disk pieces, cause NVR to have multiple storage spaces that can distribute, for the follow-up dynamic assignment of carrying out provides resource.In prior art, storage space is allocated in advance, for example, there is now IPCA to be connected with NVR with IPCB, and send video data to NVR, and on NVR, be inserted with disk 1 and the disk 2 for stored video data, NVR is before receiving video data, can set in advance, the Video Data Storage receiving from IPCA is in disk 1, and the Video Data Storage receiving from IPCB is in disk 2.But technical scheme provided by the invention will be divided into multiple data in magnetic disk pieces for each disk of stored video data in advance, in the time receiving Video Data Storage request, from several data in magnetic disk pieces, choose available storage space, then storing received to video data to the storage space selecting.The mode of this memory space dynamic allocation is with respect to prior art, more flexible, convenient.
In addition; for convenient management; after described disk is divided into multiple data in magnetic disk pieces; conventionally also can set up bitmap table for described disk; whether the data in magnetic disk piece of each zone bit mark in described bitmap table is occupied; reach the object of all data in magnetic disk pieces being carried out to overall distribution and management, as shown in Figure 9.For example, in the time that this data in magnetic disk piece is available, described zone bit is 0, and deposits in after video data in this data in magnetic disk piece, and described in set, zone bit is 1, unavailable to show this storage space.Certainly, described zone bit is also not only confined to 1 and 0, can be also that other can distinguish the whether occupied identifier of data in magnetic disk piece.
For the video data that can be dynamically provide for IPC distributes data in magnetic disk piece, need verify processing to the disk for stored video data that inserts NVR, its processing can comprise the steps, as shown in figure 14.
Step 301, in the time that described disk inserts described video management equipment, processing unit contrasts the information in check field in described disk and default proof test value;
Step 302, if comparing result is inconsistent, processing unit judges that described disk does not have preset data form, described disk is formatd by the creating unit in Fig. 1.
Due under normal circumstances, the disk only with preset data form just can be embodied as the function of the video data dynamic assignment storage receiving.So, when the disk for stored video data is in the time inserting described NVR, need first judge described disk, to confirm whether the disk inserting has preset data form.Include check field owing to having in the disk of preset data form, namely Magic number, so if check field and the default proof test value of the disk inserting are inconsistent, illustrate that this disk does not have preset data form; If the check field of the disk inserting is consistent with default proof test value, illustrate that this disk has preset data form.According to judged result, if the check field of the disk inserting and the contrast of default proof test value are inconsistent, so described disk does not just have preset data form, now this disk is formatd.
Please refer to Figure 12, the present invention also provides a kind of video data management device, be applied on video management equipment, the disk that described video management equipment is processed based on described Video Data Storage device for planning planning carries out video data management, treatment scheme can be carried out in accordance with the following steps, as shown in figure 15.
Step 201, in the time needing the video data of store video management equipment first passage, selected cell selects idle data in magnetic disk piece to carry out the storage of these data;
As shown in figure 11, in a preferred embodiment, described video management equipment is generally NVR, and a NVR generally can be connected with one or more IPC, and is that each IPC distributes a passage.NVR receives the storage resource request of the IPC transmission that described first passage is corresponding, then according to this storage resource request, chooses unappropriated data in magnetic disk piece for the video data that this IPC sends, to deposit described video data, then could manage preserved video.
Specifically, known according to previous step 201, described bitmap table includes the zone bit that whether can use for identifying corresponding storage space.Therefore, selected cell can, according to the zone bit of described bitmap table, be selected unappropriated data in magnetic disk piece.
Step 202, generation unit generates summary info corresponding to described data in magnetic disk piece in the internal memory of described video management equipment, and described summary info comprises channel number, the start time of described video data;
Select according to above-mentioned steps at selected cell after data in magnetic disk piece, generation unit generates summary info corresponding to described data in magnetic disk piece in the internal memory of described video management equipment.
In order better to safeguard disk resource list, selected cell can also be after the idle data in magnetic disk piece of selection carries out this data storage, zone bit corresponding to data in magnetic disk piece described in set, for example, be 1 by zone bit 0 set, occupied to indicate described storage space.
For the ease of search described video in the future, also the channel number of the start time of described video data and described first passage can be saved in the disk summary that described data in magnetic disk piece is corresponding.Owing to including the positional information of corresponding data in magnetic disk piece in described disk summary, described positional information has comprised which disk storage space corresponding to this summary info belongs to, in this disk where, so just can be according to described positional information, find immediately the video data of preserving in the data in magnetic disk piece that described disk makes a summary corresponding.
Step 203, plug-in unit, according to the channel number of described video data, is inserted into described summary info in corresponding channel control block chained list, and described channel control block chained list is the chained list that the summary info with same channels number is organized together;
In order to manage the video data of storage; conventionally can be at storage institute video data to after described data in magnetic disk piece; be inserted in corresponding channel control block chained list storing the start time of video data and the summary info of channel number, described channel control block chained list is the chained list that the summary info with same channels number is organized together.
Described chained list can be an one-level chained list, also can set up as required a multistage chained list., to set up secondary chained list as example, describe now.First set up a channel control block chained list according to channel number, a corresponding channel control block chained list of channel number, arranges directory node according to different time sections in described channel control block chained list.Receiving after video data, plug-in unit can be according to the channel number of described video data, finds corresponding channel control block chained list.Owing to also comprising the start time of described video data in the summary info of described video data, therefore directory node corresponding to time period under can searching according to the described start time, and by described summary info carry under directory node corresponding to time period under the described start time.
Illustrate, as shown in Figure 9 and Figure 10, in disk A, there are several data in magnetic disk pieces, each data in magnetic disk piece has corresponding with it zone bit, wherein there are four data in magnetic disk pieces, store video data, the start time that has comprised the video data of storing in the disk summary that therefore these four data in magnetic disk pieces are corresponding.First, taking 24 hours as one time period, set up a channel control block chained list using this time period as directory node, be May 1 00:00:00~23:59:59 for first directory node, May 2,00:00:00~23:59:59 was second directory node, and May 3,00:00:00~23:59:59 was the 3rd directory node.Receiving and storing the make a summary data in magnetic disk piece of 1 correspondence of data video to disk, and generate after summary info, judge in summary info which time period the start time of video data belongs to, because the start time of stored video data is 14:00:00 on May 1, therefore described summary info can be mounted under first directory node.Video data of every reception, just repeat above-mentioned deterministic process, all summary infos are all mounted under corresponding directory node, so just set up out the summary info chained list that can search with one, equally, the each summary info of carry under same directory node also can be arranged according to the order of start time.
Here also it should be noted that, except illustrational according to the order of video data shooting time above, also can put in order and set up chained list according to the place name initial of video data spot for photography, also can set up chained list according to other orders, as long as convenient managing queries in the future.
Step 204, arrives described Video Data Storage after described data in magnetic disk piece, and channel number corresponding described video data, start time are write corresponding secondary superblock and disk summary by writing unit.
In actual application, may there is the disk brought into use, because some reason, for example disk failures, stops using, in the time that this disk recovers to use, need, according to secondary superblock on disk and disk summary, related data information be added in described channel control block chained list again.Therefore, described Video Data Storage is arrived after described data in magnetic disk piece, channel number corresponding described video data, start time are write corresponding secondary superblock and disk summary by writing unit.
After through aforesaid operations step, the passage that each IPC is corresponding can be set up a channel control block chained list, and this chained list can be for searching the captured video data of this IPC, and its search procedure can comprise following two kinds of modes.
The mode that the first is normally inquired about one-level chained list, process can comprise the following steps.
Step 401, when receiving after the inquiry request of video data, the first query unit is searched the channel control block chained list corresponding with channel number in described inquiry request, and further in described channel control block chained list, searches the summary info of corresponding time according to the time in described inquiry request;
Because above-mentioned steps is according to time sequencing, the summary info of the data in magnetic disk piece that stores video data is arranged, so the first query unit receives after inquiry request, can in described chained list, inquire about each summary info.Specifically, if the first query unit inquires a certain summary info, contained video information meets the query time in described inquiry request, obtains the video data meeting in the data in magnetic disk that described summary info is corresponding.
Step 402, the first acquiring unit, according to described summary info, finds corresponding disk summary, finds corresponding data in magnetic disk piece according to disk summary, obtains the video data of inquiry from described data in magnetic disk piece.
Obtaining according to above-mentioned steps after described summary info, according to described summary info, find corresponding disk summary, obtain the positional information in this disk summary, and then find corresponding data in magnetic disk piece, return to the video data in described data in magnetic disk piece.
The mode that the second is normally inquired about multistage chained list, process can comprise the following steps.
Step 501, when receiving after the inquiry request of video data, the second query unit is searched the channel control block chained list corresponding with channel number in described inquiry request, and further search corresponding time period directory node according to the coarseness time in described inquiry request in described channel control block chained list, and further according to searching corresponding summary info in the summary info chained list of the fine granularity time in described inquiry request under the directory node of described time period;
Step 502, second acquisition unit, according to described summary info, finds corresponding disk summary, finds corresponding data in magnetic disk piece according to disk summary, obtains the video data of inquiry from described data in magnetic disk piece.
Illustrate, receive now inquiry request, the second query unit is searched the channel control block chained list corresponding with channel number in described inquiry request.In described inquiry request, include query time " video data of start time between May 2 13:30:00~14:30:00 ", the second query unit can be first inquired about the time period directory node in chained list as shown in figure 10, because directory node is the time period, so described query script is that the time period of the query time in inquiry request and each directory node is contrasted.Because the time period of first directory node is 00:00:00~23:59:59 on May 1, do not conform to described query time, so continue to contrast with second directory node.Because the time period of second directory node is 00:00:00~23:59:59 on May 2, be consistent with described query time, to carry, each summary info under second directory node is inquired about.With the similar process of aforementioned query directory node, inquiring about described summary info is exactly that the start time in video information in the query time in search request and summary info is contrasted.Because the start time is 11:00:00 in first summary info, do not conform to query time, so continue second summary of inquiry.Because the start time is 14:00:00 in second summary info, be consistent with query time, therefore obtain this summary info node.
In actual application, likely there will be the non-existent situation of the video data that will inquire about, at this moment, second acquisition unit and second acquisition unit can return to information not inquiring of user.
For example, now receive the inquiry request of a query time for " start time is at the video data between April 29 00:00:00~23:59:59 ", inquire about according to above-mentioned inquiry mode, but fail to find the summary info that meets the query time in described inquiry request, now the information not inquiring will be returned to, for example eject the dialog box that shows " not finding the video that meets search request " Word message, so that user, according to information, resets query time.
Can be found out by above-mentioned example, the mode of obtaining video data by inquiring about channel control block chained list has realized quick indexing and the inquiry of video monitoring data, and this scheme does not need the support of database, reduces FLASH space hold, and the read-write number of times that reduces disk, has improved operating speed.
In addition, the disk in NVR likely there will be damage, or people is the situation of stopping using certain disk.So described video management device can also be carried out deletion action, to tackle this kind of situation.Specifically, when occurring damaging or inactive disk in described disk, cannot continue stored video data time, video management device is deleted the zone bit that belongs to all data in magnetic disk pieces of described disk in described disk resource list.So, in the time selecting idle disk according to zone bit, just there will not be the non-existent situation of data in magnetic disk piece of choosing, and then improved the reliability of Video Data Storage.
Compared with technical scheme provided by the invention, prior art is owing to being to be the data field on disk described in each IPC static allocation, if damaging or stopping using appears in certain disk, the all data fields that belong to so on this disk also just cannot be used, then cause the video data that the IPC that has distributed described storage space sends to store, had a strong impact on the reliability of Video Data Storage.And technical scheme provided by the invention, because be dynamic assignment, after receiving video data, again according to the zone bit in described disk resource list, choose available storage space, because the data in magnetic disk piece respective flag position of damage or inactive disk can be deleted, so just avoid distributing for received video data the data in magnetic disk piece that belongs to damage or inactive disk.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.

Claims (16)

1. a Video Data Storage planing method, is applied on the disk of stored video data, it is characterized in that, described method comprises:
Superblock district at described disk creates superblock, in the summary district of described disk, create disk summary, create in the data field of described disk and the described disk data in magnetic disk piece one to one of making a summary, described disk summary comprises channel number field, start time field; Described channel number field is stored the channel number of the video management equipment that video data that data in magnetic disk piece that described disk makes a summary corresponding stores is corresponding;
In the time receiving Video Data Storage request, select idle data in magnetic disk piece to carry out data storage, and in disk summary corresponding to this data in magnetic disk piece, record the information of this video data.
2. method according to claim 1, is characterized in that, described method also comprises:
In the summary district of described disk, create some summary groups, each summary group comprises the disk summary of a summary group head and predetermined number, and described summary group head comprises proof test value, and described proof test value carries out verification to described summary group, guarantees data integrity.
3. method according to claim 1, it is characterized in that, described data in magnetic disk piece comprises secondary superblock, data directory district, and data field, described secondary superblock comprises: channel number field, start time field, so that in the time of the corresponding disk summary of described data in magnetic disk piece read-write error, quick reconfiguration disk summary.
4. method according to claim 3, is characterized in that, described secondary superblock also comprises that video data segment describes, and described video data segment is described and is used for describing the each contiguous segmentation information of video data.
5. a video data management method, is applied on video management equipment, and the disk of described video management equipment based on method planning is processed as described in as arbitrary in claim 1 to 4 carries out video data management, it is characterized in that, described method comprises:
In the time needing the video data of store video management equipment first passage, select idle data in magnetic disk piece to carry out the storage of these data; And in the internal memory of described video management equipment, generating summary info corresponding to described data in magnetic disk piece, described summary info comprises channel number, the start time of described video data; And according to the channel number of described video data, described summary info is inserted in corresponding channel control block chained list, described channel control block chained list is the chained list that the summary info with same channels number is organized together; Described Video Data Storage is arrived to described data in magnetic disk piece, and channel number corresponding described video data, start time are write to corresponding secondary superblock and disk summary.
6. method according to claim 5, is characterized in that, described channel control block chained list also comprises according to the directory node chained list of the directory node composition of the tactic some Preset Time sections of time order and function;
Describedly according to the channel number of described video data, described summary info is inserted into corresponding channel control block chained list and further comprises the summary info chained list under the directory node that according to the start time of video data, summary info is inserted into the corresponding time period.
7. method according to claim 5, is characterized in that, described method also comprises:
When receiving after the inquiry request of video data, search the channel control block chained list corresponding with channel number in described inquiry request, and further in described channel control block chained list, search the summary info of corresponding time according to the time in described inquiry request;
According to described summary info, find corresponding disk summary, find corresponding data in magnetic disk piece according to disk summary, from described data in magnetic disk piece, obtain the video data of inquiry.
8. method according to claim 6, is characterized in that:
When receiving after the inquiry request of video data, search the channel control block chained list corresponding with channel number in described inquiry request, and further search corresponding time period directory node according to the coarseness time in described inquiry request in described channel control block chained list, and further according to searching corresponding summary info in the summary info chained list of the fine granularity time in described inquiry request under the directory node of described time period;
According to described summary info, find corresponding disk summary, find corresponding data in magnetic disk piece according to disk summary, from described data in magnetic disk piece, obtain the video data of inquiry.
9. a Video Data Storage device for planning, is applied on video management equipment, it is characterized in that, described device comprises:
Creating unit, create superblock for the superblock district at described disk, in the summary district of described disk, create disk summary, create and the described disk data in magnetic disk piece one to one of making a summary in the data field of described disk, described disk summary comprises channel number field, start time field; Described channel number field is stored the channel number of the video management equipment that video data that data in magnetic disk piece that described disk makes a summary corresponding stores is corresponding;
Storage unit, in the time receiving Video Data Storage request, selects idle data in magnetic disk piece to carry out data storage, and in disk summary corresponding to this data in magnetic disk piece, records the information of this video data.
10. device according to claim 9, is characterized in that, described creating unit also for:
In the summary district of described disk, create some summary groups, each summary group comprises the disk summary of a summary group head and predetermined number, and described summary group head comprises proof test value, and described proof test value carries out verification to described summary group, guarantees data integrity.
11. devices according to claim 9, it is characterized in that, described data in magnetic disk piece comprises secondary superblock, data directory district, and data field, described secondary superblock comprises: channel number field, start time field, so that in the time of the corresponding disk summary of described data in magnetic disk piece read-write error, reconstruct disk summary.
12. according to device described in claim 11, it is characterized in that, described secondary superblock also comprises video data segment description, and described video data segment is described and is used for describing the each contiguous segmentation information of video data.
13. 1 kinds of video data management devices, are applied on video management equipment, and the disk of described video management equipment based on device planning is processed as described in as arbitrary in claim 9 to 12 carries out video data management, it is characterized in that, described device comprises:
Selected cell, in the time needing the video data of store video management equipment first passage, selects idle data in magnetic disk piece to carry out this data storage; Generation unit, for generate summary info corresponding to described data in magnetic disk piece at the internal memory of described video management equipment, described summary info comprises channel number, the start time of described video data;
Plug-in unit, for according to the channel number of described video data, is inserted into described summary info in corresponding channel control block chained list, and described channel control block chained list is the chained list that the summary info with same channels number is organized together;
Writing unit, for after described Video Data Storage is arrived to described data in magnetic disk piece, writes corresponding secondary superblock and disk summary by channel number corresponding described video data, start time.
14. devices according to claim 13, is characterized in that, described channel control block chained list also comprises according to the directory node chained list of the directory node composition of the tactic some Preset Time sections of time order and function;
Described plug-in unit is further used for, and according to the start time of video data, summary info is inserted into the summary info chained list under the directory node of corresponding time period.
15. devices according to claim 13, is characterized in that, described device also comprises:
The first query unit, be used for when receiving after the inquiry request of video data, search the channel control block chained list corresponding with channel number in described inquiry request, and further in described channel control block chained list, search the summary info of corresponding time according to the time in described inquiry request;
The first acquiring unit, for according to described summary info, finds corresponding disk summary, finds corresponding data in magnetic disk piece according to disk summary, obtains the video data of inquiry from described data in magnetic disk piece.
16. devices according to claim 14, is characterized in that, described device also comprises:
The second query unit, be used for when receiving after the inquiry request of video data, search the channel control block chained list corresponding with channel number in described inquiry request, and further search corresponding time period directory node according to the coarseness time in described inquiry request in described channel control block chained list, and further according to searching corresponding summary info in the summary info chained list of the fine granularity time in described inquiry request under the directory node of described time period;
Second acquisition unit, for according to described summary info, finds corresponding disk summary, finds corresponding data in magnetic disk piece according to disk summary, obtains the video data of inquiry from described data in magnetic disk piece.
CN201410424702.2A 2014-08-26 2014-08-26 A kind of video management method and device Active CN104182354B (en)

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 true CN104182354A (en) 2014-12-03
CN104182354B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
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
CN107393052A (en) * 2017-06-28 2017-11-24 深圳市爱培科技术股份有限公司 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Cited By (6)

* Cited by examiner, † Cited by third party
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
CN107393052A (en) * 2017-06-28 2017-11-24 深圳市爱培科技术股份有限公司 A kind of recorder date storage method and its storage 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

Also Published As

Publication number Publication date
CN104182354B (en) 2017-12-15

Similar Documents

Publication Publication Date Title
CN105338297B (en) A kind of storage of video data and playback system, device and method
CN104182354A (en) Video managing method and device
CN108733761B (en) Data processing method, device and system
CN108932295A (en) Primary database method for handover control, device, computer equipment and storage medium
US20160364407A1 (en) Method and Device for Responding to Request, and Distributed File System
CN106201355A (en) Data processing method and device and storage system
CN109669622B (en) File management method, file management device, electronic equipment and storage medium
CN111399764B (en) Data storage method, data reading device, data storage equipment and data storage medium
CN107085546A (en) Data managing method and device based on failure field technique
CN112765182A (en) Data synchronization method and device among cloud server clusters
CN109407975A (en) Data writing method and calculate node and distributed memory 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
CN109165120B (en) Method and product for generating management snapshot and difference bitmap in distributed storage system
CN108089934A (en) Cluster management method and cluster server
CN107122136B (en) Capacity obtaining method and device
CN111435286A (en) Data storage method, device and system
CN105718539B (en) A kind of database application method and device
CN105450679A (en) Method and system for performing data cloud storage
CN109669623A (en) A kind of file management method, document management apparatus, electronic equipment and storage medium
CN115756955A (en) Data backup and data recovery method and device and computer equipment
CN111722783B (en) Data storage method and device
CN109522311A (en) Date storage method, device, server and storage medium
CN109271097A (en) Data processing method, data processing equipment and server
CN112347036B (en) Inter-cloud migration method and device of cloud storage 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