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

Sony a6400 - premature end - unable to recover big file sizes #111

Open bnesti opened 2 years ago

bnesti commented 2 years ago

Hi there, I'm trying to save a 2h video clip from a interview I filmed for a university course. The original file was 46GB in size and the recording was stopped and the camera switched of normally. The files from a different camera, recording for the same amount of time, work fine.

Without changing any settings, using the windows GUI, I get the following info and a 8GB file / 24min 32s of footage back:

Info: parsing healthy moov atom ... Composition time offset atom found. Out of order samples possible. Info: special track found (meta, 'Timed Metadata Media Handler')

Info: unknown track 'twos' found -> fallback to dynamic stats Info: using dynamic stats, use '-is' to see them Warning: no mp4-structure found in: 'I:\C0019.MP4' Info: using orig_mdatstart (=176) Info: reading mdat from truncated file ... Info: using 64-bit offsets for the broken file Error: unable to find correct codec -> premature end (~19.85%) try '-s' to skip unknown sequences

Info: Found 70714229 packets ( avc1: 36785 avc1-keyframes: 1533 twos: 70640640 rtmd: 36804 ) Info: Duration of avc1: 24min 31s 400ms (1471400 ms) Info: Duration of twos: 24min 31s 680ms (1471680 ms) Info: Duration of rtmd: 24min 32s 160ms (1472160 ms) Warning: Unknown sequences: 1 Warning: Bytes NOT matched: 8B (8.52e-008%) Info: saving I:\C0019.MP4_fixed-dyn.MP4

done!

Changing the settings to (actually having no clue what they do exactly...):

more verbose step size 1 keep unknown sequences use dynamic stats

I ended up with a huge 44GB file, that's also just 24min 32s.

Info: parsing healthy moov atom ... Composition time offset atom found. Out of order samples possible. Warning: no mp4-structure found in: 'I:\C0019.MP4' Info: using orig_mdatstart (=176) Info: reading mdat from truncated file ... Info: using 64-bit offsets for the broken file Info: Found 70714229 packets ( avc1: 36785 avc1-keyframes: 1533 twos: 70640640 rtmd: 36804 ) Info: Duration of avc1: 24min 31s 400ms (1471400 ms) Info: Duration of twos: 24min 31s 680ms (1471680 ms) Info: Duration of rtmd: 24min 32s 160ms (1472160 ms) Warning: Unknown sequences: 2 Warning: Bytes NOT matched: 35.3GiB (80.15%) Info: saving I:\C0019.MP4_fixed-s1-dyn-k.MP4

done!

Any suggestions?

jbousd commented 1 year ago

Did you ever find any solution to this? I have the exact same problem with a7 IV files that got corrupted

zhubinsheng commented 1 year ago

Did you ever find any solution to this?