CN107729566A - A kind of index method for reconstructing for public transport vehicle-mounted hard disk audio/video data access - Google Patents
A kind of index method for reconstructing for public transport vehicle-mounted hard disk audio/video data access Download PDFInfo
- Publication number
- CN107729566A CN107729566A CN201711120275.9A CN201711120275A CN107729566A CN 107729566 A CN107729566 A CN 107729566A CN 201711120275 A CN201711120275 A CN 201711120275A CN 107729566 A CN107729566 A CN 107729566A
- Authority
- CN
- China
- Prior art keywords
- index
- file
- data
- audio
- frame
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/61—Indexing; Data structures therefor; Storage structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/70—Information retrieval; Database structures therefor; File system structures therefor of video data
- G06F16/71—Indexing; Data structures therefor; Storage structures
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management Or Editing Of Information On Record Carriers (AREA)
Abstract
The invention provides a kind of index method for reconstructing for public transport vehicle-mounted hard disk audio/video data access, when carrying out audio/video data access, using FAT file system, index file sets one-level index and secondary index, wherein, one-level index is file index, and secondary index is data frame index;Indexing process of reconstruction is:Step 1, the video data VIDEO IFRAME in video/audio or audio frame AUDIO FRAME are retrieved and establishes new data frame index;Step 2, original data frame index is read, and is contrasted with new data frame index;Step 3, the fileinfo in each data file is retrieved, and rebuilds new file index;Step 4, original file index is taken, and is contrasted with new file index.The present invention uses secondary index mechanism, can rapidly and accurately be indexed reconstruction, solve the problems, such as the error in data occurred during data access.
Description
Technical field
The present invention relates to hard disc data to access field, specifically, relate to one kind and is used for public transport vehicle-mounted hard disk audio frequency and video
The index method for reconstructing of data access.
Background technology
Index rebuild purpose be in order to prevent due to(1)Index is not synchronous;(2)Index is synchronized, but is not updated to
In storage medium;(3)Index data misregistration, caused by can not search Video data(Actually Video data is to deposit
)The problem of.Index reconstruction is to be directed to " one-level index " file index and " secondary index " data frame index, and the rope established
Draw reconstruction or recover function.Rebuild by indexing, can solve the problem that the error in data problem occurred during data access.
The content of the invention
The purpose of the present invention is in view of the shortcomings of the prior art, there is provided a kind of design science, it is easy to accomplish, number can be ensured
According to the index method for reconstructing for public transport vehicle-mounted hard disk audio/video data access of accuracy.
To achieve these goals, the technical solution adopted in the present invention is:One kind is used for public transport vehicle-mounted hard disk audio frequency and video
The index method for reconstructing of data access, when carrying out audio/video data access, using FAT file system, index file sets one-level
Index and secondary index, wherein, one-level index is file index, and secondary index is data frame index;Indexing process of reconstruction is:
Step 1, the video data VIDEO-IFRAME in video/audio or audio frame AUDIO-FRAME are retrieved and is established newly
Data frame index;
Step 2, original data frame index is read, and is contrasted with new data frame index;
Step 2.1, if contrast is consistent, original data frame index need not be updated;
Step 2.2, if contrast is inconsistent, " new data frame index " is synchronized in storage medium " original number
According to frame index " same position;
Step 2.3, repeat step 2.1 and step 2.2, until all data frame index, and opening of entirely indexing of final updated
Begin and end time, deadline are synchronous;
Step 3, the fileinfo in each data file is retrieved, and rebuilds new file index;
Step 4, original file index is taken, and is contrasted with new file index;
Step 4.1, if contrast is consistent, original file index need not be updated;
Step 4.2, if contrast is inconsistent, new file index is synchronized to file index original in storage medium
Same position;
Step 4.3, repeat step 4.1 and step 4.2, until all file frame index compare end, and more new file frame rope
Draw and complete data syn-chronization.
The present invention has prominent substantive distinguishing features and marked improvement compared with the prior art, and specifically, the present invention uses
Secondary index mechanism, reconstruction can be rapidly and accurately indexed, solve the problems, such as the error in data occurred during data access.
Brief description of the drawings
Fig. 1 is data frame index process of reconstruction figure of the present invention.
Fig. 2 is file index process of reconstruction figure of the present invention.
Embodiment
Below by embodiment, technical scheme is described in further detail.
As depicted in figs. 1 and 2, a kind of index method for reconstructing for public transport vehicle-mounted hard disk audio/video data access, carry out
During audio/video data access, using FAT file system, index file sets one-level index and secondary index, wherein, one-level index
For file index, secondary index is data frame index;Indexing process of reconstruction is:
Step 1, the video data VIDEO-IFRAME in video/audio or audio frame AUDIO-FRAME are retrieved and is established newly
Data frame index;
Step 2, original data frame index is read, and is contrasted with new data frame index;
Step 2.1, if contrast is consistent, original data frame index need not be updated;
Step 2.2, if contrast is inconsistent, new data frame index is synchronized to data frame original in storage medium
The same position of index;
Step 2.3, repeat step 2.1 and step 2.2, until all data frame index, and opening of entirely indexing of final updated
Begin and end time, deadline are synchronous;
Step 3, the fileinfo in each data file is retrieved, and rebuilds new file index;
Step 4, original file index is taken, and is contrasted with new file index;
Step 4.1, if contrast is consistent, original file index need not be updated;
Step 4.2, if contrast is inconsistent, new file index is synchronized to file index original in storage medium
Same position;
Step 4.3, repeat step 4.1 and step 4.2, until all file frame index compare end, and more new file frame rope
Draw and complete data syn-chronization.
The secondary index mechanism that the present invention uses, index and the uniformity of data can be ensured:
(1)Corresponding video data VIDEO-IFRAME and audio frame AUDIO- can be accurately found by data frame index
FRAME;
(2)The auxiliary information of recording indexes matches with effective data frame index in data frame index;
(3)Corresponding data file can accurately be found by file frame index;
(4)The auxiliary information of recording indexes matches with effective file frame index in file frame index;
Wherein, the auxiliary information of index is:Recording indexes are controlled the enqueue operations of index and are gone out team by the way of round-robin queue
The auxiliary informations such as operation, date and time, passage, company information, fileinfo.
So as to be rebuild according to index, it is not synchronous to solve index, although or index be synchronized, be not updated to storage and be situated between
It is caused the problem of can not searching Video data in matter, and index data misregistration.
Finally it should be noted that:The above embodiments are merely illustrative of the technical scheme of the present invention and are not intended to be limiting thereof;To the greatest extent
The present invention is described in detail with reference to preferred embodiments for pipe, those of ordinary skills in the art should understand that:Still
The embodiment of the present invention can be modified or equivalent substitution is carried out to some technical characteristics;Without departing from this hair
The spirit of bright technical scheme, it all should cover among the claimed technical scheme scope of the present invention.
Claims (1)
- A kind of 1. index method for reconstructing for public transport vehicle-mounted hard disk audio/video data access, it is characterised in that:When carrying out audio/video data access, using FAT file system, index file sets one-level index and secondary index, wherein, One-level index is file index, and secondary index is data frame index;Indexing process of reconstruction is:Step 1, the video data VIDEO-IFRAME in video/audio or audio frame AUDIO-FRAME are retrieved and is established newly Data frame index;Step 2, original data frame index is read, and is contrasted with new data frame index;Step 2.1, if contrast is consistent, original data frame index need not be updated;Step 2.2, if contrast is inconsistent, " new data frame index " is synchronized in storage medium " original number According to frame index " same position;Step 2.3, repeat step 2.1 and step 2.2, until all data frame index, and opening of entirely indexing of final updated Begin and end time, deadline are synchronous;Step 3, the fileinfo in each data file is retrieved, and rebuilds new file index;Step 4, original file index is taken, and is contrasted with new file index;Step 4.1, if contrast is consistent, original file index need not be updated;Step 4.2, if contrast is inconsistent, new file index is synchronized to file index original in storage medium Same position;Step 4.3, repeat step 4.1 and step 4.2, until all file frame index compare end, and more new file frame rope Draw and complete data syn-chronization.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711120275.9A CN107729566B (en) | 2017-11-14 | 2017-11-14 | Index reconstruction method for bus-mounted hard disk audio/video data access |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711120275.9A CN107729566B (en) | 2017-11-14 | 2017-11-14 | Index reconstruction method for bus-mounted hard disk audio/video data access |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107729566A true CN107729566A (en) | 2018-02-23 |
CN107729566B CN107729566B (en) | 2021-02-23 |
Family
ID=61215441
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711120275.9A Active CN107729566B (en) | 2017-11-14 | 2017-11-14 | Index reconstruction method for bus-mounted hard disk audio/video data access |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107729566B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109874049A (en) * | 2019-01-23 | 2019-06-11 | 杭州雄迈集成电路技术有限公司 | A method of video frame reading speed is extracted in optimization |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1811759A (en) * | 2005-01-26 | 2006-08-02 | 华为技术有限公司 | Method for building information increment index |
CN1873820A (en) * | 2006-05-18 | 2006-12-06 | 北京中星微电子有限公司 | Method for processing video file, method for indexing video, and video indexing unit |
US20090055351A1 (en) * | 2007-08-24 | 2009-02-26 | Microsoft Corporation | Direct mass storage device file indexing |
CN102682016A (en) * | 2011-03-15 | 2012-09-19 | 新奥特(北京)视频技术有限公司 | Indexing system and method supporting MOV (Movie Digital Video Technology)/3GP (3G Player)/MP4 (Mobile Pentium 4) files |
CN102799679A (en) * | 2012-07-24 | 2012-11-28 | 河海大学 | Hadoop-based massive spatial data indexing updating system and method |
US20120317105A1 (en) * | 2009-09-21 | 2012-12-13 | Zte Corporation | Method and Apparatus for Updating Index and Sequencing Search Results Based on Updated Index in Terminal |
CN103037203A (en) * | 2012-12-11 | 2013-04-10 | 浙江宇视科技有限公司 | Method and device for index recovery based on block storage |
CN103226965A (en) * | 2013-03-29 | 2013-07-31 | 浙江大学 | Time-bitmap-based audio/video data access method |
CN103970618A (en) * | 2014-05-21 | 2014-08-06 | 辽宁中科信科技有限公司 | Technical method for applying no-backup disaster recovery based on cloud computing platform |
CN104239564A (en) * | 2014-09-28 | 2014-12-24 | 深圳市锐明视讯技术有限公司 | Method and device for organizing and repairing indexes of files |
CN104361029A (en) * | 2014-10-24 | 2015-02-18 | 成都亿盟恒信科技有限公司 | Double-index video circulating memory and quick retrieval method |
CN104750859A (en) * | 2015-04-16 | 2015-07-01 | 成都影泰科技有限公司 | Network storing method |
CN105653622A (en) * | 2015-12-25 | 2016-06-08 | 中国民航信息网络股份有限公司 | PRN data integrating method and system |
CN106202157A (en) * | 2016-06-23 | 2016-12-07 | 深圳市华域无线技术股份有限公司 | Video method for quickly retrieving based on time stream |
-
2017
- 2017-11-14 CN CN201711120275.9A patent/CN107729566B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1811759A (en) * | 2005-01-26 | 2006-08-02 | 华为技术有限公司 | Method for building information increment index |
CN1873820A (en) * | 2006-05-18 | 2006-12-06 | 北京中星微电子有限公司 | Method for processing video file, method for indexing video, and video indexing unit |
US20090055351A1 (en) * | 2007-08-24 | 2009-02-26 | Microsoft Corporation | Direct mass storage device file indexing |
US20120317105A1 (en) * | 2009-09-21 | 2012-12-13 | Zte Corporation | Method and Apparatus for Updating Index and Sequencing Search Results Based on Updated Index in Terminal |
CN102682016A (en) * | 2011-03-15 | 2012-09-19 | 新奥特(北京)视频技术有限公司 | Indexing system and method supporting MOV (Movie Digital Video Technology)/3GP (3G Player)/MP4 (Mobile Pentium 4) files |
CN102799679A (en) * | 2012-07-24 | 2012-11-28 | 河海大学 | Hadoop-based massive spatial data indexing updating system and method |
CN103037203A (en) * | 2012-12-11 | 2013-04-10 | 浙江宇视科技有限公司 | Method and device for index recovery based on block storage |
CN103226965A (en) * | 2013-03-29 | 2013-07-31 | 浙江大学 | Time-bitmap-based audio/video data access method |
CN103970618A (en) * | 2014-05-21 | 2014-08-06 | 辽宁中科信科技有限公司 | Technical method for applying no-backup disaster recovery based on cloud computing platform |
CN104239564A (en) * | 2014-09-28 | 2014-12-24 | 深圳市锐明视讯技术有限公司 | Method and device for organizing and repairing indexes of files |
CN104361029A (en) * | 2014-10-24 | 2015-02-18 | 成都亿盟恒信科技有限公司 | Double-index video circulating memory and quick retrieval method |
CN104750859A (en) * | 2015-04-16 | 2015-07-01 | 成都影泰科技有限公司 | Network storing method |
CN105653622A (en) * | 2015-12-25 | 2016-06-08 | 中国民航信息网络股份有限公司 | PRN data integrating method and system |
CN106202157A (en) * | 2016-06-23 | 2016-12-07 | 深圳市华域无线技术股份有限公司 | Video method for quickly retrieving based on time stream |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109874049A (en) * | 2019-01-23 | 2019-06-11 | 杭州雄迈集成电路技术有限公司 | A method of video frame reading speed is extracted in optimization |
CN109874049B (en) * | 2019-01-23 | 2021-04-27 | 杭州雄迈集成电路技术股份有限公司 | Method for optimizing and extracting video frame reading speed |
Also Published As
Publication number | Publication date |
---|---|
CN107729566B (en) | 2021-02-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2010111391A (en) | SEGMENTED METADATA AND INDICES FOR STREAM MULTIMEDIA DATA | |
CN104244023B (en) | Video cloud editing system and method | |
MX2020009525A (en) | Method and apparatus for updating ue policy, and computer storage medium. | |
CN106815275B (en) | Method and equipment for realizing synchronization of main database and standby database through standby database | |
MY192336A (en) | Managing transactions on blockchain networks | |
US20140156603A1 (en) | Method and an apparatus for splitting and recovering data in a power system | |
CN103474087A (en) | Video recording file management method and device for easily preventing disk fragments from being generated | |
CN107861891A (en) | Audio/video data access method for public transport vehicle-mounted hard disk | |
CN107729566A (en) | A kind of index method for reconstructing for public transport vehicle-mounted hard disk audio/video data access | |
CN102723090A (en) | Moving picture experts group 4 (MP4) file generation and reading method | |
US8868429B2 (en) | Method and device for storing audio data | |
CN104572764A (en) | Multi-channel video data reading and writing method | |
CN102682016B (en) | A kind of directory system and method for supporting MOV/3GP/MP4 files | |
CN102841822B (en) | Carry out delaying the method and system of machine protection to jobTracker main frame | |
CN109213971A (en) | The generation method and device of court's trial notes | |
CN104185032B (en) | A kind of video frequency identifying method and system | |
CN106021565B (en) | continuous writing method of MXF files in Op1a and Op1b formats | |
CN104103304B (en) | A kind of video and audio filing storage and call method based on LTFS | |
Tang et al. | dml: Distance Metric Learning inR | |
WO2009120316A3 (en) | Method and system for error correction of a storage media | |
CN102681883A (en) | Resource calling method and system in media asset searching and browsing system | |
CN106060656B (en) | The method and system of BHD file are generated based on DirectShow | |
CN105897823A (en) | Video uploading method and system | |
CN103002326B (en) | A kind of noninterlaced voice data read method and device | |
CN104506936A (en) | Method and device for processing audio and video data based on many-core platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |