anthwlock / untrunc

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

src/mp4.cpp:537: void Mp4::saveVideo(const string&): Assertion `track.chunks_.size()' failed. // track.codec_.name_=avc1, track.getNumSamples()=14348 #172

Open karepiu opened 2 months ago

karepiu commented 2 months ago

`Info: version 'v364-bd783dd' using ffmpeg '3.3.4' Lavc57.89.100 Info: reading DJI_0154.mp4 Info: parsing healthy moov atom ... Composition time offset atom found. Out of order samples possible.

Info: reading mdat from truncated file ... Info: Found 14348 packets ( avc1: 14348 avc1-keyframes: 479 ) Info: Duration of avc1: 7min 58s 744ms (478744 ms) src/mp4.cpp:537: void Mp4::saveVideo(const string&): Assertion track.chunks_.size()' failed. // track.codec_.name_=avc1, track.getNumSamples()=14348

Damaged file is > 2GB and seems the tool sees 7 mins of footage but still the chunk error.

Regards

anthwlock commented 2 months ago

Please send me the files (healthy+broken) and I might take a look at some point. You can upload them on dropmefiles.net. If you think they are too big, you can use untrunc -sh file.mp4. In case you want to keep the link private, you can send me an email - see my Profile page. Thank you!