Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A kind of file repair method and device based on avi format file structure

A technology of format file and repair method, applied in electrical components, digital video signal modification, image communication and other directions, can solve the problem that important video information cannot be recognized, used, and cannot be completely read the important sector codes in the header of AVI format files, Problems such as bad sectors to achieve the effect of important video information recovery

Active Publication Date: 2022-07-26
STATE GRID CHONGQING ELECTRIC POWER CO ELECTRIC POWER RES INST +1
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in daily life and work, files are often irreversibly damaged due to damage to storage media and virus damage. Malicious viruses often reset or encrypt hexadecimal codes within a fixed range of headers. The problem of sectors and bad blocks makes it impossible to completely read the important sector codes in the header of the AVI format file, so that the AVI format file cannot be opened at all, and the important video information in the file cannot be recognized and used, and AVI format repair tools are common on the market Totally ineffective for this question

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 kind of file repair method and device based on avi format file structure
  • A kind of file repair method and device based on avi format file structure
  • A kind of file repair method and device based on avi format file structure

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] like figure 1 Shown, a kind of file repair method based on AVI format file structure, described method may further comprise the steps:

[0036] Step 1: Determine the encoding type of the corrupted file;

[0037] Step 2: According to the encoding type of the damaged file, make a source AVI file of the same encoding type;

[0038] Step 3: Modify the source code AVI file code to generate the source code repair file;

[0039] Step 4: Merge the source code repair file and the damaged video file to get a new AVI repair file;

[0040] Step 5: Use the player to open the AVI repair file, and determine the original input size, resolution, bit rate, and frame rate information;

[0041] Step 6: Transcode the AVI repair file, fill in the size, resolution, bit rate, frame rate information, output a new AVI file, and complete the AVI file repair.

[0042] Specifically, in step 1, determining the code of the damaged file includes: using WINHEX software to open the damaged file, and...

Embodiment 2

[0053] The second embodiment of the present invention provides a file restoration device based on the AVI format file structure, comprising:

[0054] The encoding type determination module is used to determine the encoding type of the damaged file; the encoding type determination module uses the WINHEX software to open the damaged file, and searches for "WMV", "MPG", "XIVD", "DVIX", "AVC" through the text search function and other characters to determine the corrupted file encoding type.

[0055] The source code file creation module is used to create source AVI files of the same encoding type; the source code file creation module creates a source code file with the same encoding with a length of 5 seconds according to the encoding type of the damaged file, and then jumps to the end of the source code file, looking up for the last The starting offset address of an index table, the offset address 0 is selected as the beginning of the block, and a new file is generated as the sou...

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 discloses a file repairing method and device based on an AVI format file structure. The method comprises the following steps: determining the encoding type of the damaged file; producing a source code AVI file of the same encoding type according to the encoding type of the damaged file; modifying the source code AVI file code, generate the source code repair file; merge the source code repair file and the damaged video file to get a new AVI repair file; use the player to open the AVI repair file, determine the original input size, resolution, bit rate, frame rate information; repair the AVI The file is transcoded, fill in the size, resolution, bit rate, frame rate information, output a new AVI file, and complete the AVI file repair. It can repair damaged AVI format files based on the hexadecimal code format of the underlying files of AVI format files. According to different file sizes and different damage methods, it can effectively repair and guide damaged AVI format files, so that the important video information in the file can be repaired. be restored.

Description

technical field [0001] The invention relates to a file repairing method and device based on the AVI format file structure. Background technique [0002] AVI format video file is a widely used video format file. The full English name of the file format is Audio Video Interleaved, which is an audio and video interleaved format. It is a file format that combines voice and video synchronously. At present, this format file is mainly used in video shooting, film and television editing, judicial forensics and other fields. [0003] However, in daily work, files are often irreversibly damaged due to damage to the storage medium and virus damage. Malicious viruses often clear or encrypt hexadecimal codes within a fixed range of the header. The problem of sectors and bad blocks makes it impossible to completely read the important sector codes in the header of the AVI format file, so that the AVI format file cannot be opened at all, and the important video information in the file cann...

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): H04N19/42H04N21/854
CPCH04N19/42H04N21/85406
Inventor 李玮严华万凌云梁花杨云韩世海雷娟戴豪礽李洋陈涛张森徐镭洋张伟景钰文徐鑫晏尧於舰
Owner STATE GRID CHONGQING ELECTRIC POWER CO ELECTRIC POWER RES INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products