HydrogenAudio

Lossy Audio Compression => AAC => AAC - Tech => Topic started by: enry2k on 2015-01-03 11:49:59

Title: How can I fix an incomplete .aac adts file?
Post by: enry2k on 2015-01-03 11:49:59
Hi,
I forgot to stop the voice recording, after more than an hour I shut down my Android phone accidently while it was still recording in AAC with adts header.  The resulting file is unplayable, I have already tried Besliced and All Media Fixer to fix it, but my attempts miserably failed.  I also played a bit with Hex Workshop modifying a working .aac file. If I alter it it in the middle it will be still playable, but if I troncate the end it will become unreadable. I guess there is some essential information at the end of the file required to be loaded by the player. There is more than a pattern of ADTS headers at the beginning of each frame, right? 
Does FFMPEG help to fix my file, maybe converting it in an ,mp4 file or do you suggest me any hex editing strategy?

Regards
Enrico     
Title: How can I fix an incomplete .aac adts file?
Post by: enry2k on 2015-02-22 20:33:03
http://vcg.isti.cnr.it/~ponchio/untrunc.php (http://vcg.isti.cnr.it/~ponchio/untrunc.php)
Federico Ponchio fixed my file. Despite its extension it was actually an mp4 wrapped aac file, not an adts headered file.

Title: How can I fix an incomplete .aac adts file?
Post by: lozenge on 2015-02-22 22:56:15
Thank you for sharing the fix