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

Warning: expected codec hev1 but found mp4a #104

Open erickskrauch opened 2 years ago

erickskrauch commented 2 years ago

Hi. I'm trying to restore a broken mp4 file. It contains 1 video, encoded with nvenc_hevc codec and 6 aac tracks. Got this error:

~ untrunc 2021-10-16\ 18-36-39.mp4 2021-10-16\ 16-17-59.mp4
Info: version '4a2e4a6' using ffmpeg 'n4.4'
Info: reading 2021-10-16 18-36-39.mp4
Info: parsing healthy moov atom ... 

Info: reading mdat from truncated file ...
Info: using 64-bit offsets for the broken file
Info: Muted ffmpeg to reduce redundant warnings/errors. Use '-do' to see them.
Warning: expected codec hev1 but found mp4a
untrunc: src/mp4.cpp:896: void Mp4::correctChunkIdxSimple(int): Assertion `off_ok >= 0' failed.
fish: Job 1, 'untrunc 2021-10-16\ 18-36-39' terminated by signal SIGABRT (Abort)

The files are uploaded here. The larger one is broken.