anthwlock / untrunc

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

Core dumped after Assertion `track.offsets_.back() < mdat->start_ + mdat->length_' failed #39

Closed Lotus907efi closed 4 years ago

Lotus907efi commented 4 years ago

Info: version '51ebdc1-dirty' using ffmpeg 'N-95906-g2952d9c' Info: reading /media/cdrom/backup/Videos/dessert.mp4 Info: parsing healthy moov atom ... Composition time offset atom found. Out of order samples possible. Sample dependency flag atom found. I and P frames might need to recover that info. untrunc: src/mp4.cpp:117: void Mp4::parseTracksOk(): Assertion `track.offsets.back() < mdat->start + mdat->length_' failed. Aborted (core dumped)

anthwlock commented 4 years ago

Interesting! Please send me the files (healthy+broken) to the email mentioned on my profile. For uploading you can use wetransfer.

Lotus907efi commented 4 years ago

OK, but these are XXX films. You OK with that?

anthwlock commented 4 years ago

yes, as long as it contains nothing illegal

anthwlock commented 4 years ago

For some reason your files contain two mdat atoms, the first one containing nothing but itself. untrunc now skips such mdat atoms. However, it probably would still fail if the first one wasn't empty. But since I have no such file, I can't test this further.

Will close this soon if you don't report any further problems/bugs.

Lotus907efi commented 4 years ago

So I should re-pull source from git and try it again?

anthwlock commented 4 years ago

sounds reasonable.