CN104268088B - Vehicle-mounted DVR hard disc data storage method - Google Patents

Vehicle-mounted DVR hard disc data storage method Download PDF

Info

Publication number
CN104268088B
CN104268088B CN201410467649.4A CN201410467649A CN104268088B CN 104268088 B CN104268088 B CN 104268088B CN 201410467649 A CN201410467649 A CN 201410467649A CN 104268088 B CN104268088 B CN 104268088B
Authority
CN
China
Prior art keywords
file
partition
index
data
hard disk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410467649.4A
Other languages
Chinese (zh)
Other versions
CN104268088A (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.)
ZHENGZHOU TIANMAI TECHNOLOGY Co Ltd
Original Assignee
ZHENGZHOU TIANMAI TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHENGZHOU TIANMAI TECHNOLOGY Co Ltd filed Critical ZHENGZHOU TIANMAI TECHNOLOGY Co Ltd
Priority to CN201410467649.4A priority Critical patent/CN104268088B/en
Publication of CN104268088A publication Critical patent/CN104268088A/en
Application granted granted Critical
Publication of CN104268088B publication Critical patent/CN104268088B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management Or Editing Of Information On Record Carriers (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses a kind of vehicle-mounted DVR hard disc data storage methods, step 1, the available storage area of vehicle-mounted DVR hard disk are divided into the file partition ext3 and without file partition;Step 2, video file is acquired, and collected video file is divided into index file and the corresponding video data two parts of index file;Step 3, index file is stored in the file partition ext3;The corresponding video data of index file is stored in no file partition in chronological order;Step 4, circulation covers after no file partition memory space is full, and corresponding index file is also covered by circulation in the file partition ext3.The present invention uses the storage method without file system, both ensure that the operation to disk few as far as possible, the convenience in turn ensuring data storage and reading, increase memory capacity, reduce the amount of access to hard disk, reduce the spoilage of hard disk, reduces the maintenance cost in later period.

Description

Vehicle-mounted DVR hard disc data storage method
Technical field
The present invention relates to a kind of date storage methods, more particularly, to a kind of vehicle-mounted DVR hard disc data storage method.
Background technique
Existing vehicle-mounted DVR(Digital video recorder)Storage method mainly has following three kinds:1, it is stored, is lacked using SD card Point is that capacity is smaller, and read or write speed is not fast enough, and unexpected power down is easily damaged, and advantage is not to be afraid of the environment that jolts.2, using SSD(Gu State hard disk)Storage, advantage is that capacity is larger, and read or write speed is fast, is not afraid of and jolts, but price is costly, increases product cost.3, It is stored using traditional mechanical hard disk, using caching(Caching uses the storage medium without mechanical part), i.e., when in the environment that jolts When deposit caching, data are transferred to hard disk again when steady.The advantages of this method be solve memory capacity, storage speed and The problems such as cost, the disadvantage is that data are managed using special file system on hard disk, because increasing there are file system to hard The workload of disk read-write, hard disk must not be without the data of many corresponding maintaining file systems when storing DVR data Read-write, considerably increases hard disk operational amount.Because spatial cache is limited, it cannot be guaranteed that the hard disk only stores always number when steady According to when caching will be full, hard disk must be written and read by being unable to satisfy hard-disc storage requires even if road environment.It is running Winnowing with a dustpan, the amount being written and read to hard disk under environment is more, and hard disk is more easily damaged, and one piece of hard disk price is not cheap, can increase in this way Add later maintenance cost.
Summary of the invention
In view of this, increasing storage the object of the present invention is to provide a kind of vehicle-mounted DVR hard disc data storage method and holding Amount, reduces the amount of access to hard disk, reduces the spoilage of hard disk, reduce the maintenance cost in later period.
In order to achieve the above objectives, the present invention uses following technical scheme:
A kind of vehicle-mounted DVR hard disc data storage method, wherein include the following steps:
Step 1, the available storage area of vehicle-mounted DVR hard disk is divided into the file partition ext3 and without file partition;
Step 2, video file is acquired, and collected video file is divided into index file and the corresponding view of index file Frequency is according to two parts;Index file and video data are one-corresponding relationships;
Step 3, index file is stored in the file partition ext3;Temporally by the corresponding video data of index file It is stored sequentially in no file partition;
Step 4, circulation covers after no file partition memory space is full, corresponding rope in the file partition ext3 Quotation part is also covered by circulation.
The beneficial effects of the invention are as follows:
For vehicle-mounted DVR, the data of storage are all some video stream datas, are that storage is some trivial unlike being normally applied Broken small documents, therefore not high to file system demand degree, and there are if file system, to the pipe of file system on disk Reason operation also will increase the amount of access to hard disk, and increases hard disk amount of access under the environment that jolts on bus and also mean that The probability for increasing hard disk corruptions increases the maintenance cost in later period.The present invention uses the storage method without file system, both protects The operation to disk few as far as possible is demonstrate,proved, the convenience in turn ensuring data storage and reading.
Detailed description of the invention
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is index file and the corresponding schematic diagram of video data in hard-disc storage area of the present invention.
Specific embodiment
The invention will be further described with reference to the accompanying drawings and examples.
File system is operating system for clearly storing the method and data structure of equipment or the file on subregion;Exist The method for storing constituent act in equipment.File system consists of three parts:Software related with file management, be managed file with And data structure needed for implementing file management.From the point of view of system perspective, file system is carried out to the space of file-storage device The system that file stores and the file of deposit is protected and retrieved is responsible in tissue and distribution.Specifically, it is responsible for using File is established at family, and deposit is read, modification, dump file, controls the access of file, file is cancelled when user does not use.
If one piece of empty hard disk is regarded as a blank sheet of paper, file system exactly draws table on this blank sheet of paper, such as Financial table, personal information table etc. are divided into the differentiation of different table i.e. different file system, such as on USB flash disk Common FAT32 file system, the new technology file system on hard disk since being to draw a table, be certainly can occupy it is certain hard Disc storage space, but also need to carry out to manage operation accordingly, which adds the operating quantity to hard disk.
Of the invention is hard disk to be regarded as an end to end tape without file system data storage method, can be followed Data are written in ring cover, and each storage location has a corresponding coordinate, which is the address of the position, video data It once writes direct and does not need the nuisance operations such as maintaining file system.No file system is of course not said does not save file completely Relevant information, in this way to reading data when will cause larger difficulty, to solve this problem, can retain in hard disk initial position One block message memory block saves some specific informations, such as data head, data tail, time etc. some key messages of overall importance. In the DVR data of preservation(Video data)When, every piece of beginning can simply save some video datas, such as data block sequence number, Timestamp, video channel number etc., moreover, index text that under normal circumstances can directly by being established in the file partition ext3 Part quickly positions required video data.
As shown in Figure 1, of the invention includes the following steps:
Step 1, the available storage area of vehicle-mounted DVR hard disk is divided into the file partition ext3 and without file partition;
Step 2, video file is acquired, and collected video file is divided into index file and the corresponding view of index file Frequency is according to two parts;Index file and video data are one-corresponding relationships;
Step 3, index file is stored in the file partition ext3;Temporally by the corresponding video data of index file It is stored sequentially in no file partition;
Step 4, circulation covers after no file partition memory space is full, corresponding rope in the file partition ext3 Quotation part is also covered by circulation.Index file and be one-to-one, no file system without the video data in file partition System subregion will do it circulation covering because data volume is bigger, and the index file of the file partition ext3 is according to no file system Subregion corresponds to the presence of video data and exists, circulation covering, ext3 file system after no file partition memory space is full Corresponding index file is also covered by circulation in system subregion.
In video data write-in, the ext3 subregion of a fritter is marked off on vehicle-mounted DVR hard disk to store index file, Index file small one by one is created according to temporal information, is recorded the initial address of the video data at corresponding moment, is terminated ground Location, data tail, the time, is the data acquired from which camera etc. relevant information at data head, because only writing one simply Index, the data volume very little of write-in, to entire effect very little, and because index file is more trifling and to data accuracy It is required that it is relatively high, so needing to establish on the storage medium for having file system, it is typically chosen ext3 file system, this article Part system can be relatively good guarantee the index data accuracy.And easy-to-look-up read-write index file.At regular intervals It is created that an index file, guarantees the continuity that data save, and hard disk can easily be managed according to these index files In the video data stored, and video data can recycle covering.Because ext3 partitions of file only saves index file, write-in Data volume very little, subregion is smaller, and no file partition is because video data will be stored, and the space needed is very big, hard disk Subregion largely distributes to no file partition.
Finally, it is stated that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, this field is common Other modifications or equivalent replacement that technical staff makes technical solution of the present invention, without departing from technical solution of the present invention Spirit and scope, be intended to be within the scope of the claims of the invention.

Claims (1)

1. a kind of vehicle-mounted DVR hard disc data storage method, it is characterised in that:Include the following steps:
Step 1, the available storage area of vehicle-mounted DVR hard disk is divided into the file partition ext3 and without file partition;
Step 2, video file is acquired, and collected video file is divided into index file and the corresponding video counts of index file According to two parts;Index file and video data are one-corresponding relationships;
Step 3, index file is stored in the file partition ext3;In chronological order by the corresponding video data of index file It is stored in no file partition;
In video data write-in, the ext3 subregion of a fritter is marked off on vehicle-mounted DVR hard disk to store index file, according to Temporal information creates index file small one by one, records initial address, the end address, number of the video data at corresponding moment According to head, data tail, the time, be the data association message acquired from which camera;It is created that an index at regular intervals File, guarantees the continuity of data preservation, and the video data stored in hard disk is easily managed according to these index files, and And video data circulation covering;
Step 4, expire rear video datacycle when no file partition memory space to cover, it is corresponding in the file partition ext3 Index file also by circulation cover.
CN201410467649.4A 2014-09-15 2014-09-15 Vehicle-mounted DVR hard disc data storage method Active CN104268088B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410467649.4A CN104268088B (en) 2014-09-15 2014-09-15 Vehicle-mounted DVR hard disc data storage method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410467649.4A CN104268088B (en) 2014-09-15 2014-09-15 Vehicle-mounted DVR hard disc data storage method

Publications (2)

Publication Number Publication Date
CN104268088A CN104268088A (en) 2015-01-07
CN104268088B true CN104268088B (en) 2018-11-16

Family

ID=52159611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410467649.4A Active CN104268088B (en) 2014-09-15 2014-09-15 Vehicle-mounted DVR hard disc data storage method

Country Status (1)

Country Link
CN (1) CN104268088B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767994B (en) * 2015-04-13 2017-10-17 郑州天迈科技股份有限公司 A kind of vehicle-mounted DVR video datas store the detection method of integrality
CN105117177B (en) * 2015-09-14 2018-08-10 许昌许继软件技术有限公司 A kind of big data management method based on single hard disk multi partition
CN105353986B (en) * 2015-11-11 2018-04-03 东莞福泽尔电子科技有限公司 A kind of naked disk storage file system of vehicle-mounted DVR
CN107172375A (en) * 2017-05-17 2017-09-15 上海尧达信息科技有限公司 Super DVR
CN109189724B (en) * 2018-07-18 2021-01-29 北京世纪东方通讯设备有限公司 Method and device for improving audio and video data storage efficiency of video monitoring system
CN109359066A (en) * 2018-09-19 2019-02-19 天津七所精密机电技术有限公司 A kind of dual control storage equipment applied to sonar data acquisition
CN109788307A (en) * 2019-02-11 2019-05-21 北京字节跳动网络技术有限公司 Processing method, device, storage medium and the electronic equipment of video list
CN111355910B (en) * 2019-04-23 2022-09-02 杭州海康威视数字技术股份有限公司 Video storage method, video search method and device
CN110333887B (en) * 2019-07-04 2023-04-14 郑州天迈科技股份有限公司 Vehicle-mounted machine video recording module optimization system
CN111857581A (en) * 2020-07-06 2020-10-30 浙江鸿泉电子科技有限公司 Data storage processing method and system
CN112069139B (en) * 2020-07-28 2023-03-21 重庆攸亮科技股份有限公司 High-speed read-write cyclic coverage file transmission system and transmission method
CN112306604B (en) * 2020-08-21 2022-09-23 海信视像科技股份有限公司 Progress display method and display device for file transmission

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005339262A (en) * 2004-05-27 2005-12-08 Canon Inc File system and its control method
CN1750164A (en) * 2005-07-20 2006-03-22 杭州海康威视数字技术有限公司 Digital hard disc recorder file managing method for preventing file fragment production
CN1822174A (en) * 2005-12-08 2006-08-23 杭州海康威视数字技术有限公司 Method for protecting hardware key information area in embedded device
CN103474087A (en) * 2013-09-06 2013-12-25 南京南自信息技术有限公司 Video recording file management method and device for easily preventing disk fragments from being generated
CN103745007A (en) * 2014-01-24 2014-04-23 深圳市华宝电子科技有限公司 File managing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005339262A (en) * 2004-05-27 2005-12-08 Canon Inc File system and its control method
CN1750164A (en) * 2005-07-20 2006-03-22 杭州海康威视数字技术有限公司 Digital hard disc recorder file managing method for preventing file fragment production
CN1822174A (en) * 2005-12-08 2006-08-23 杭州海康威视数字技术有限公司 Method for protecting hardware key information area in embedded device
CN103474087A (en) * 2013-09-06 2013-12-25 南京南自信息技术有限公司 Video recording file management method and device for easily preventing disk fragments from being generated
CN103745007A (en) * 2014-01-24 2014-04-23 深圳市华宝电子科技有限公司 File managing method and device

Also Published As

Publication number Publication date
CN104268088A (en) 2015-01-07

Similar Documents

Publication Publication Date Title
CN104268088B (en) Vehicle-mounted DVR hard disc data storage method
US8909887B1 (en) Selective defragmentation based on IO hot spots
KR101702201B1 (en) Optimized context drop for a solid state drive(ssd)
CN105574104B (en) A kind of LogStructure storage system and its method for writing data based on ObjectStore
US8327076B2 (en) Systems and methods of tiered caching
US8819367B1 (en) Accelerated translation power recovery
US8214581B2 (en) System and method for cache synchronization
CN103135940B (en) Implementing enhanced fragmented stream handling in a shingled disk drive
CN103514249B (en) A kind of automatic data reduction and system and storage device
US8806173B2 (en) Elimination of duplicate written records
GB2513492A (en) Tape drive system server
US7987328B2 (en) Data archive system
US9916323B2 (en) Support for worm cartridges realized by linear tape file system (LTFS)
CN102043687B (en) Copy on first write device for realizing data snapshot and control method
CN102136290A (en) Method for storing embedded real-time video files
CN108182154A (en) A kind of reading/writing method and solid state disk of the journal file based on solid state disk
JP2014123254A (en) Method, program and storage system for dividing file on media for management by user unit
EP2317428A3 (en) Automatically linking partitions on a tape media device
CN102158349A (en) Log management device and method thereof
CN103164528B (en) A kind of index establishing method of audio, video data
CN104182353A (en) Data storage system adopting different storage media
US9513804B2 (en) Virtual tape device and virtual tape device control method
CN105260139A (en) Magnetic disk management method and system
JP4130808B2 (en) Formatting method
CN103257928B (en) Flash memory device data managing 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