Repair method for MP4 corrupted file and storage medium
A repair method and file technology, applied in the repair field, can solve the problems of unsupported video sound repair, poor video recovery effect, low audio repair support rate, etc., so as to improve the video repair effect, audio repair effect and repair support rate. , the effect of improving the repair effect and repair support rate
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0114] Please refer to image 3 , Embodiment one of the present invention is: a kind of repair method of MP4 damaged file, comprises the steps:
[0115] S1: Get a reference video; that is, get a video file recorded by the same device that can be played normally.
[0116] S2: Obtain the sequence parameter set of the reference video; specifically, decode the network abstraction layer unit whose type value is 7 in the reference video to obtain the sequence parameter set, that is, obtain the NAL unit whose NAL TYPE is 7.
[0117] S3: Take the nth byte in the damaged file as the current byte; the initial value of n is 1.
[0118] S4: Determine whether n+8 is greater than the total number of bytes of the damaged file. If yes, it means that the damaged file has been traversed and the video frame has been extracted, and step S11 is executed. If not, step S5 is executed.
[0119] S5: Obtain byte data with a length of eight bytes starting from the current byte;
[0120] S6: Decode th...
Embodiment 2
[0151] This embodiment is a computer-readable storage medium corresponding to the above-mentioned embodiments, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:
[0152] Get the reference video;
[0153] Obtaining a sequence parameter set of the reference video;
[0154] Decoding the slice header in the damaged file according to the sequence parameter set to obtain the slice type and the frame number of the video frame;
[0155] If the value of the slice type is within a preset range and the frame numbers are continuous, it is determined that the video frame corresponding to the slice header is a legal video frame;
[0156] Obtain legal video frames in the damaged file, and obtain a set of video frames;
[0157] Obtain the frames between two video frames in the damaged file, and get the set of audio frames;
[0158] Sorting the video frames in the video frame set and the audio frames in the audio fra...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com