Sony camera MTS video file fragment recovery seamless combination repair technology

Recovery segment corrupted after MTS video file deletion

The video file is damaged. The recording equipment is a Sony camera. The video format is MTS. It was deleted by mistake. After the deletion, there is no secondary data destruction operation. Neither a new video nor other files have been saved, but the recovered video is It is intermittent, and after a 20-minute content recovery, it turns out to be more than 20 small files, and there are content screens of other dates appearing at the beginning and end of the file.

Fragment Combination Restoration Technology to Solve MTS Video File Problems

This problem is technically difficult. Through code inspection, it can be inferred that this is due to data fragmentation caused by the disk that has not been formatted for a long time. To solve this problem, it is necessary to have a very in-depth study on the MTS video structure. The MTS video structure is different from the MOV or MP4 package. After testing and comparison, the idea of ​​repairing MOV or MP4 video files does not work. By querying the file information of MTS (attached to the file), it is found that MTS is not an MPEG encoding format. Therefore, the connection and combination of frames must be processed according to the coding characteristics of MTS, so as to solve the problem. The following is the MTS video file information for reference and repair:

Video
ID                                         4113 (0x1011)
Menu ID                                    1 (0x1)
Format                                     AVC
Format/Info                                Advanced Video Codec
Format profile                             High@L4
Format settings                            CABAC / 2 Ref Frames
Format settings, CABAC                     Yes
Format settings, Reference frames          2 frames
Format settings, GOP                       M=3, N=12
Codec ID                                  27
Duration                                   19 s 120 ms
Bit rate mode                              Variable
Bit rate                                   21.3 Mb/s
Maximum bit rate                           21.6 Mb/s
Width                                      1 920 pixels
Height                                     1 080 pixels
Display aspect ratio                      16
Frame rate                                 25.000 FPS
Color space                                YUV
Chroma subsampling                        4
Bit depth                                  8 bits
Scan type                                  Interlaced
Scan type, store method                    Separated fields
Scan order                                 Top Field First
Bits/(Pixel*Frame)                        0.41
Stream size                                48.4 MiB (89%)
Audio
ID                                         4352 (0x1100)
Menu ID                                    1 (0x1)
Format                                     PCM
Format settings                            Big / Signed
Muxing mode                                Blu-ray
Codec ID                                  128
Duration                                   19 s 195 ms
Bit rate mode                              Constant
Bit rate                                   1 536 kb/s
Channel(s)                                 2 channels
Channel layout                             L R
Sampling rate                              48.0 kHz
Bit depth                                  16 bits
Delay relative to video                    -80 ms
Stream size                                3.51 MiB (6%)

Guess you like

Origin blog.csdn.net/QQ2480572734/article/details/119271700