Need some assitance. Have a m4a file that appears to be corrupted. Happy to pp some scratch to whoever can fix it.
http://www.box.com/s/fthemrn4x153cjsf0pyy (http://www.box.com/s/fthemrn4x153cjsf0pyy)
If you've got it working, post a message on the thread and we can work through logistics via PM.
I trust this is not copyrighted material, as per #9 of the Terms of Service (http://www.hydrogenaudio.org/forums/index.php?showtopic=3974).
I trust this is not copyrighted material, as per #9 of the Terms of Service (http://www.hydrogenaudio.org/forums/index.php?showtopic=3974).
Nope. Just need to pull some meeting notes from it. I'm thinking the metadata is jacked up.
Seems just moov box missing. Probably file was not finalized properly, due to premature termination of writing software or hardware. The following worked. If you want rescued file, I can upload it and will let you know.
$ dd ibs=1 skip=44 if='your broken file.m4a' of=raw.aac
$ faad -a adts.aac raw.aac
Hey!
I'm having corrupted m4a file issue as well. I recorded an interview today with iPhone 4's Voice Memo app and the recorded file won't play. I'd be very thankful if someone could take a look at it
Link to the file: https://dl.dropbox.com/u/50308108/haast.m4a (https://dl.dropbox.com/u/50308108/haast.m4a)
teemuek, by using the method described by nu774, I managed to get the following result (http://www.sendspace.com/file/es7nj5).
teemuek, by using the method described by nu774, I managed to get the following result (http://www.sendspace.com/file/es7nj5).
Thank you so much! It seems to miss about 12 minutes from the end but i'm very happy anyway. Thanks!!
You're welcome.
Since my post seems to be occasionally referred to....
- This method only works for a single track file. If more than two tracks are multiplexed, there's no way to rescue it.
- Basically, you have to cut mdat content out of the broken MP4 first. However, mdat location is not always the same. 44 bytes skip in my previous post is only for the OP's specific file.
- To find mdat location, just open the file with a hex editor, and search for the string "mdat". Bytes that follows "mdat" are the actual contents, and you have to cut them out.
- When you feed the resulting raw (headerless) AAC to faad command, you may additionally have to specify samplerate by -s option if it is not 44.1kHz.
You can also try the Federico Ponchio's code:http://vcg.isti.cnr.it/~ponchio/untrunc.php
It worked great for a file of mine.
Regards
Enrico