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

Active Publication Date: 2018-05-29
XIAMEN MEIYA PICO INFORMATION
View PDF7 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] 1. Part of the video sound repair is not supported, and the audio repair support rate is low
[0009] 2. The recovery effect of some videos is not good. Although it can be played, the picture is blurred

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
  • Repair method for MP4 corrupted file and storage medium
  • Repair method for MP4 corrupted file and storage medium
  • Repair method for MP4 corrupted file and storage medium

Examples

Experimental program
Comparison scheme
Effect test

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

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 repair method for an MP4 corrupted file and a storage medium. The method comprises the steps that a reference video is acquired; a sequence parameter set of the reference video is acquired; a stripe head in the corrupted file is decoded according to the sequence parameter set to obtain the stripe type and the frame numbers of video frames; if a value of the stripe type isin a preset range and the frame numbers are continuous, it is judged that the video frames corresponding to the stripe head are legal video frames; the legal video frames in the corrupted file are acquired to obtain a video frame set; frames between every two video frames in the corrupted file are acquired to obtain an audio frame set; the video frames in the video frame set and the audio framesin the audio frame set are ordered according to deviation to obtain a video and audio set; and a repaired file is obtained according to the reference video and the video and audio set. According to the repair method, the repair effect of the MP4 corrupted file can be integrally improved, and the repair support rate of the MP4 corrupted file can be integrally increased.

Description

technical field [0001] The invention relates to the technical field of restoration, in particular to a restoration method and a storage medium for damaged MP4 files. Background technique [0002] With the proliferation of smartphones and recorder devices, video data is everywhere. Such as mobile phones, driving recorders, law enforcement recorders, etc., produce video data in large quantities every day, and most of these video data use the MP4 package format. [0003] The full name of MP4 is MPEG-4 Part 14, which is a common multimedia container format. Now most video recording devices such as smartphones, drones, and driving recorders use MP4 as the video packaging format. MP4 is defined in the "ISO / IEC 14496-14" standard document and is a part of MPEG-4. The MP4 encapsulation format is the packaging format, and the existing data is packaged and packaged according to a certain format. MP4 data encapsulation is in box, figure 1 It is a box composition diagram for the MP4...

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): H04N21/4402H04N21/81H04N21/854H04N21/439
CPCH04N21/439H04N21/4402H04N21/8106H04N21/85406
Inventor 唐淮灿范玮吴少华沈长达
Owner XIAMEN MEIYA PICO INFORMATION
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