Corrupted Video File Repair via Frame Data Extraction
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing video file repair technologies have a low success rate when both container header data, container tail data, and frame header data are corrupted, as they cannot reconstruct the video file effectively in such cases.
Innovation Solution
A method and apparatus that extract frame data from a corrupted video file using CODEC feature databases to generate a video frame sequence, determine a sequence header with decoding parameters, and reconstruct container data to comply with a target container format, allowing for the repair of video files even when container header, tail, and frame header data are corrupted.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If existing video repair technology is used to scan and extract frame headers and frame data, then the process can handle corrupted container header and tail data, but it fails when frame headers are also corrupted, resulting in low repair success rate
Solution Approach 1:
The patent extracts the essential frame data from the corrupted video stream by identifying and extracting only the useful frame information (frame data) while discarding the corrupted frame headers. This extraction is achieved by scanning the video stream for frame data patterns that can be reliably identified even when headers are corrupted, thereby separating the salvageable content from the damaged metadata.
Solution Approach 2:
The patent performs preliminary actions by pre-defining the structure and characteristics of valid frame data and container formats before processing the corrupted video. It establishes reference models for frame data patterns and container structures in advance, enabling the system to recognize and extract valid frames even when the actual video file has corrupted headers, thus preparing the knowledge base needed for successful repair.
2Ease of manufacture
If the video stream is scanned according to known container formats to extract frame data, then container header and tail data can be reconstructed, but the method cannot handle cases where frame headers are also corrupted
Solution Approach 1:
The patent creates a universal repair method that can handle multiple types of corruption scenarios (corrupted container headers, corrupted frame headers, or both) using a single unified approach. The system employs a general frame data extraction mechanism that does not rely on specific header structures, making it adaptable to various corruption patterns while maintaining the ability to reconstruct container data across different video formats.
Solution Approach 2:
The patent introduces an intermediary processing layer between the corrupted video stream and the reconstruction output. This intermediary layer acts as a mediator that first extracts valid frame data from the corrupted stream using pattern recognition, then reconstructs the container data based on the extracted frames. This intermediary step enables the system to bridge the gap between corrupted input and valid output, handling frame header corruption that would otherwise block the repair process.
Data Source
AI summary
A method and a device for repairing a video file. The method includes the device generating, if frame data of a video frame can be extracted from a video data stream of a corrupted video file according to a video frame structure feature, a video frame sequence from the extracted frame data of the video frame; recording the CODEC type corresponding to the video frame structure feature, storage location information of the video frame sequence, and index data that is used to record a timestamp-based index of the video frame sequence; determining a sequence header of the video frame sequence; and reconstructing, according to the sequence header, the recorded CODEC type, the recorded storage location information, and the recorded index data, container data that complies with a target container format, and generating and outputting a video file in the target container format based on the reconstructed container data.


