HydrogenAudio

Lossy Audio Compression => AAC => AAC - Tech => Topic started by: tazdevl on 2012-03-06 22:19:40

Title: Need some m4a audio guru assistance
Post by: tazdevl on 2012-03-06 22:19:40
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)
Title: Need some m4a audio guru assistance
Post by: tazdevl on 2012-03-06 23:27:17
If you've got it working, post a message on the thread and we can work through logistics via PM.
Title: Need some m4a audio guru assistance
Post by: db1989 on 2012-03-06 23:37:09
I trust this is not copyrighted material, as per #9 of the Terms of Service (http://www.hydrogenaudio.org/forums/index.php?showtopic=3974).
Title: Need some m4a audio guru assistance
Post by: tazdevl on 2012-03-07 00:19:30
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.
Title: Need some m4a audio guru assistance
Post by: nu774 on 2012-03-07 01:19:54
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.
Code: [Select]
$ dd ibs=1 skip=44 if='your broken file.m4a' of=raw.aac
$ faad -a adts.aac raw.aac

Title: Need some m4a audio guru assistance
Post by: teemuek on 2012-09-12 21:03:20
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)
Title: Need some m4a audio guru assistance
Post by: psycho on 2012-09-12 22:18:44
teemuek, by using the method described by nu774, I managed to get the following result (http://www.sendspace.com/file/es7nj5).
Title: Need some m4a audio guru assistance
Post by: teemuek on 2012-09-15 18:54:01
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!!
Title: Need some m4a audio guru assistance
Post by: psycho on 2012-09-16 08:08:58
You're welcome.
Title: Need some m4a audio guru assistance
Post by: nu774 on 2015-02-22 02:07:22
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.
Title: Need some m4a audio guru assistance
Post by: enry2k on 2015-02-22 20:26:32
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