A method for recovering data lost due to abnormal shutdown and a hard disk video recorder

A technology of abnormal shutdown and video recording, which is applied in the direction of image communication, color TV parts, TV system parts, etc., and can solve the problems of unrecoverable data, unrecoverable data loss, etc.

Active Publication Date: 2011-12-14
HANGZHOU HIKVISION DIGITAL TECH
View PDF3 Cites 19 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0019] according to figure 1 and figure 2 It can be seen that if the hard disk video recorder is abnormally shut down before the control module updates the latest written segment information of the index file, then after the hard disk video recorder is restarted, the control module determines according to the latest written segment information recorded in the index file before the abnormal shutdown. The initial storage location of the recording data after startup, save the recording data input to the hard disk video recorder in real time, which may cause the storage space between the end offset of the segment in the recently written segment information and the actual storage position of the recording data to be saved The loss of video data, and the lost data in this case cannot be recovered
For example: when the recording data is saved in location B, the hard disk video recorder shuts down abnormally, and at this time the end offset of the segment whose segment information is written most recently corresponds to location A. If the hard disk video recorder starts up again, the hard disk video recorder will The latest written file information and the latest written segment information of the file, make sure that the video data before starting is saved to location A, that is, the real-time acquired video data will continue to be saved from location A, which causes the abnormal shutdown before being stored in location A to Loss of recording data at position B
[0020] To sum up, after an abnormal shutdown of the hard disk video recorder, the existing methods and the hard disk video recorder cannot accurately locate the data storage location before the abnormal shutdown, which leads to the irrecoverable loss of data caused by the abnormal shutdown

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
  • A method for recovering data lost due to abnormal shutdown and a hard disk video recorder
  • A method for recovering data lost due to abnormal shutdown and a hard disk video recorder
  • A method for recovering data lost due to abnormal shutdown and a hard disk video recorder

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0060] In order to make the object, technical solution, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples.

[0061] The invention provides a method for recovering lost data caused by abnormal shutdown and a hard disk video recorder. When it is determined that the shutdown before this startup is an abnormal shutdown according to the existing log information of the hard disk video recorder, the video recording before the abnormal shutdown is recorded. The index file in the partition of the data is read, and the starting position point for frame analysis is determined according to the start offset and the end offset of the segment whose segment information is most recently written in the index file, starting from the start Starting from the position point, the continuity of the time scale of the data frame is detected, and the offset of the storage position of th...

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 invention provides a method for restoring lost data in abnormal shutdown. The method comprises the following steps of: A. judging that the current shutdown before start is abnormal according to stored log information, and determining that latest writing segment information corresponding to recording files writing recording data before abnormal shutdown; B. determining a start position point for carrying out frame analysis according to start offset in the latest writing segment information and final offset of the segment; C. starting to carry out frame analysis from the start position point, and updating the final offset and the final time of the segment according to a frame analysis result and the start position point; and D. taking the final offset and the final time of the segment after updating as reference points for a data storage position after the current starting. The invention also provides a hard-disk recorder. By adoption of the method and the hard-disk recorder provided by the invention, the data storage position before abnormal shutdown can be positioned, and the lost data can be restored.

Description

technical field [0001] The invention relates to data analysis and processing technology, in particular to a method for recovering data lost due to abnormal shutdown and a hard disk video recorder. Background technique [0002] While the existing hard disk video recorder is shooting, it can save the video data obtained by shooting in real time. Based on the characteristics of real-time storage of video data, hard disk video recorders are widely used in the field of video surveillance. [0003] figure 1 A flow chart of a method for storing video data for an existing hard disk video recorder. figure 2 It is a schematic diagram of the storage location of the existing recording data. The existing hard disk video recorder includes a control module for controlling data storage and a storage medium for saving data. Combine now figure 1 , figure 2 And the structure of existing hard disk video recorder, the method that existing hard disk video recorder preserves recording data...

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 Applications(China)
IPC IPC(8): G11B27/19H04N5/781
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