In case untrunc doesn't support the codec inside your file, you can try to fix it with an hex editor:
- get another file with the same format, I got a bigger one but probably any length will work
- open both files in an hex editor
- replace the
mdat
section in the "ok" file with themdat
section in the "broken" file, without the header (i.e. copy only the bytes after 'mdat') - it would probably already work like that, if not, the 4 bytes before 'mdat' specify the size of the
mdat
section, the current value will be the old size ("ok" filemdat
section size), replace it with the new size ("broken" filemdat
section size)
I ended up coding a simple program to do it: https://github.com/golimarrrr/fix-3gp
Both the program and by hand using the hex editor should create the same fixed file