Digital hard disc recorder file managing method for preventing file fragment production
A file management method and technology of hard disk video recorder, applied in the direction of digital recording, electronic digital data processing, digital recording/reproduction, etc., can solve the problems of shortening the life of hard disk, too late to record video data, loss of video data, etc., to reduce the failure of hard disk, The effect of prolonging the service life
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Publication Date
- 2008-01-16
Smart Images
Figure 1 Figure 2
Abstract
Description
technical field
[0001] The invention relates to a hard disk file management method in an embedded system, in particular to a digital hard disk video recorder file management method for preventing file fragments. Background technique
[0002] We know that DVR (digital video recorder, digital hard disk recorder) needs to record a large amount of video and audio compression data streams to the hard disk (including mobile hard disk) in real time. The traditional DVR file management method is as follows: first format the hard disk and create partitions, when the DVR recording is working, store the data of a fixed period of time (such as 30 minutes) as a file. That is, a file is created when a channel starts recording, and the compressed data of the channel is stored in the file. When the specified time is up, the writing to the file ends, and then a new file is created to continue writing the compressed data. In the new file, due to the change of the monitoring scene, the length...
Examples
Embodiment Construction
[0026] Below in conjunction with accompanying drawing 1 and examples, the digital video recorder file management method for preventing file fragmentation of the present invention will be further elaborated.
[0027] The technical solution adopted by the invention includes a file pre-creation process, a video data file writing process for the first time and a video data file overwriting process.
[0028] The pre-creation process is as follows:
[0029] Format the hard drive and create partitions. Firstly, format the hard disk. After formatting, partition according to the size of the disk, at least 1 partition, and at most 4 partitions. For example: a 120GB hard disk can be divided into 2 hard disk partitions according to needs, and the size of each partition is 60GB (after the hard disk is formatted, the actual usable partition size is generally about 95% of the original size, that is, about 57GB. The size can be adjusted accordingly, the same below), or it can be divided int...