anthwlock / untrunc

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

Could not read at position #19

Closed ghost closed 5 years ago

ghost commented 5 years ago

I am but a simple meme farmer trying to save a meme. I tried this on both Windows and Linux! Same output for both

I did: youtube-dl https://coub.com/view/1cr0g0 renamed the file to smoke.mp4

then when I noticed the file was corrupted, I looked into solutions. I came upon untrunc, but unfortunately, it can't recover anything.

untrunc -i smoke.mp4 Info: version 'b7a674c' using ffmpeg '3.3.4' Info: reading smoke.mp4 Info: parsing healthy moov atom ... Could not read at position

I know this is largely a youtube-dl dilemma, but given they are constantly backlogged, I figured I'd have more luck with this. Any thoughts?

anthwlock commented 5 years ago

Hey, I found some working bash scripts here! There are different variants on how to deal with audio being longer than video. But they all download audio separately. You should be able to recover your already downloaded videos with printf '\x00\x00' | dd of=smoke.mp4 bs=1 count=2 conv=notrunc

Also: The usage is untrunc -i good.mp4, not untrunc -i bad.mp4.