anthwlock / untrunc

Restore a truncated mp4/mov. Improved version of ponchio/untrunc
GNU General Public License v2.0
1.87k stars 182 forks source link

Error: unable to find correct codec -> premature end (~16.22%) #96

Open Aqa-Ib opened 3 years ago

Aqa-Ib commented 3 years ago

Hello, I am trying to recover a mp4 file that contains a video where a police agent bad manners an innocent woman. The police agent removed the video that she recorded with her tablet. I recovered the video using "Photorec", but unfortunately it is corrupted. I tried to restore it with untrunc and restored it partially.

I compiled it against ffmpeg 3.3.9 and also ffmpeg 'n4.4'. Same output with both. Also tried with the '-s' option and had the same luck.

I sent you the 'ok' and 'corrupt' videos to your email in case you want to help. Thank you very much for everything.

Console output:

untrunc 20210613_052706.mp4 f15057600.mp4 Info: version '3cf5947' using ffmpeg '3.3.9' Info: reading 20210613_052706.mp4 Info: parsing healthy moov atom ... Info: reading mdat from truncated file ... [aac @ 0x556bb77ec1c0] Multiple frames in a packet. [aac @ 0x556bb77ec1c0] Number of bands (52) exceeds limit (46). Error: unable to find correct codec -> premature end (~16.22%) try '-s' to skip unknown sequences Warning: guessed frame durations of 'avc1' will probably be wrong! Info: Found 6108 packets ( mp4a: 3722 avc1: 2386 avc1-keyframes: 80 ) Info: Duration of mp4a: 1min 19s 402ms (79402 ms) Info: Duration of avc1: 1min 19s 506ms (79506 ms) Info: saving f15057600.mp4_fixed.mp4