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

Active Publication Date: 2008-01-16
HANGZHOU HIKVISION DIGITAL TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Among them, the seek time constituted by the mechanical movement of the magnetic head greatly affects the efficiency of file reading and writing, because the time required for reading and writing the data of a sector located under the magnetic head is only the same as moving the magnetic head to another track and then reading and writing. One-fifth of the time required for data), in severe cases, it may even cause the system to overload during the process of deleting and creating files, and it is too late to record new video data, resulting in loss of video data and shortening the life of the hard disk
Moreover, digital video recorders for monitoring applications generally require 24-hour uninterrupted work, and hard disk defragmentation operations are not allowed during the work process.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Digital hard disc recorder file managing method for preventing file fragment production
  • Digital hard disc recorder file managing method for preventing file fragment production

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The method of preventing generation of file fragment in digital hard disc video recorder includes mainly the file pre-creating process, the first video recording data file writing process and the video recording data file covering and writing process. The file pre-creating process includes hard disc formatting, creating subarea, and pre-creating 2 index files and N data files of M bytes size; the first video recording data file writing process is to write compressed video and audio data flow into one of the created data files until finishing all the data files on the hard disc connected to the hard disc video recorder; and the video recording data file covering and writing process is to store the newly input compressed video and audio data flow to the earliest data file circularly. The present invention has the advantages of no generation of file fragment and no degradation of access efficiency of video recording hard disc data.

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...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F12/00G11B20/12G11B27/00G11B5/09H04N5/91
Inventor 胡扬忠陈军科陈礼进周治平赵先林杨颖
Owner HANGZHOU HIKVISION DIGITAL TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products