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

invalid atom name: 'drm ' + skip audio #33

Closed paqio closed 4 years ago

paqio commented 4 years ago

The space is clearly the issue. I removed the check and it went further.

Yet now there is another issue: "This audio codec is EVIL, there is no hope to guess it". Is there a way to skipp audio?

anthwlock commented 4 years ago

If there is really no way to guess it's size, one possibility is to search the beginning of the video codec. For example h264 often starts with '0x000001' and so on.. Btw this logic is already implemented for 'unknown sequences', see Mp4::unknown_length_ and its usage. If you need further help please send me the broken and healthy videos! Maybe there is a way to guess the size. That would be the best solution.

anthwlock commented 4 years ago

relevant.