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

Audio restored but not video #151

Open adamn-123 opened 6 months ago

adamn-123 commented 6 months ago

The audio will restore fine but the video is still unusable, I tried multiple times with different referenece videos all recorded from the same device within minutes of each other and same result. Here's the log.

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.

Info: reading mdat from truncated file ... [aac @ 000000000550cb00] Multiple frames in a packet.

Info: Found 5917 packets ( mp4a: 2738 avc1: 3179 avc1-keyframes: 53 ) Tip: Audio and video seem to have different durations (1.10243). If audio and video are not in sync, give -sv a try. See --help Info: Duration of mp4a: 58s 410ms (58410 ms) Info: Duration of avc1: 52s 983ms (52983 ms) Info: saving C:\Users\AdamN\Documents\Nerves\Videos\EAoU recording Videos\20180716_221725.mp4_fixed.mp4

done!

Renari commented 6 months ago

I regret to inform you that this likely means you're out of luck, you can try using -sv as your log suggests but in my experience this tends to only trim the video to the correct length, not fix the video.