ponchio / untrunc

Restore a damaged (truncated) mp4, m4v, mov, 3gp video. Provided you have a similar not broken video.
GNU General Public License v2.0
1.6k stars 225 forks source link

100% CPU, no progress #122

Open Orad opened 6 years ago

Orad commented 6 years ago

Hi. I'm trying to recover some mp4 files with missing moov atom. While untrunc managed to recover few of them. most of them are just causing an endless loop and no any output file.

An example of mediainfo of a damaged file mediainfo 153002AA.MP4 General Complete name : 153002AA.MP4 File size : 600 MiB

MediaInfo of reference file:

`General Complete name : 113533AA.MP4 Format : MPEG-4 Format profile : JVT Codec ID : avc1 (avc1/isom) File size : 20.0 MiB Duration : 1s 902ms Overall bit rate mode : Variable Overall bit rate : 88.2 Mbps Encoded date : UTC 2018-06-09 11:35:24 Tagged date : UTC 2018-06-09 11:35:24

Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : Main@L5.1 Format settings, CABAC : Yes Format settings, ReFrames : 1 frame Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 1s 902ms Bit rate mode : Variable Bit rate : 30.0 Mbps Width : 2 880 pixels Height : 2 160 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 29.970 (30000/1001) fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.161 Stream size : 6.83 MiB (34%) Title : Ambarella AVC Language : English Encoded date : UTC 2018-06-09 11:35:24 Tagged date : UTC 2018-06-09 11:35:24 Color range : Limited Color primaries : BT.709 Transfer characteristics : BT.709 Matrix coefficients : BT.709

Audio ID : 2 Format : AAC Format/Info : Advanced Audio Codec Format profile : LC Codec ID : 40 Duration : 1s 899ms Bit rate mode : Constant Bit rate : 128 Kbps Nominal bit rate : 48.0 Kbps Channel(s) : 1 channel Channel positions : Front: C Sampling rate : 48.0 KHz Frame rate : 46.875 fps (1024 spf) Compression mode : Lossy Stream size : 29.7 KiB (0%) Title : Ambarella AAC Language : English Encoded date : UTC 2018-06-09 11:35:24 Tagged date : UTC 2018-06-09 11:35:24 `

anthwlock commented 6 years ago

Hi, you might want to try my fork. If it does not work please provide an example file.