untrunc icon indicating copy to clipboard operation
untrunc copied to clipboard

Assertion `end - start == new_length' failed.

Open owang opened this issue 5 years ago • 1 comments

I am trying to run this to recover a video shot on my mobile phone. When running (Ubuntu 16.04), I get the following output:

Info: version '644978f' using ffmpeg '3.3.9'
Info: reading VID_20200905_111353.mp4
Info: parsing healthy moov atom ...

Info: reading mdat from truncated file ...
[aac @ 0x55d437392f40] Multiple frames in a packet.
[aac @ 0x55d437392f40] channel element 3.5 is not allocated
Error: unable to find correct codec -> premature end (~99.98%)
       try '-s' to skip unknown sequences

Warning: guessed frame durations of 'hvc1' will probably be wrong!
Info: Found 17621 packets ( mp4a: 10765 hvc1: 6856 hvc1-keyframes: 458 )
Info: Duration of mp4a: 3min 49s 653ms  (229653 ms)
Info: Duration of hvc1: 3min 49s 258ms  (229258 ms)
Info: saving VID_20200829_202505.mp4_fixed.mp4
untrunc: src/atom.cpp:480: void BufferedAtom::write(FileWrite&, bool): Assertion `end - start == new_length' failed.
Aborted (core dumped)

Even with -s it still core dumps. Any ideas?

owang avatar Sep 06 '20 21:09 owang

see https://github.com/anthwlock/untrunc/issues/35

anthwlock avatar Sep 14 '20 17:09 anthwlock