I am presently verifying a new AAC decoder and many of my AAC test streams were generated in "ADIF" format. Is there a tool available already that will convert "ADIF" to "ADTS" format in a single or batch convert format. Command line is acceptable and GUI based tool is a plus.
regards,
Terry Shultz
Motorola Inc.
I don't think such a tool exists.
For ADIF files there is no way to detect the frame beginnings. You need to decode the whole file to get all the frame offsets, then use those to split up the ADIF file and create ADTS headers.
Shouldn't be too hard to implement using a decoder, just somebody needs to do it
Menno
Ok, FAAD2 supports this option now. Get the latest CVS code, or wait until a new version gets compiled.
faad.exe -a adts_out.aac input.aac
Note that this simply decodes the whole file, for the reasons given above, so it's not very fast. It works for all possible input files (MP4, AAC).
Menno
edit: typo
Here for example: faad.zip (http://www.saunalahti.fi/cse/files/faad.zip)
Menno
I have been trying it, but it seems not to work, showing library error
enrico
How exactly did you use it?
Menno
I have tried this: faad -a new.aac adif.aac
and the screenshot I get is this:
****** FAAD2 (Freeware AAC Decoder) V2.0 RC1 ******
Build: Sep 24 2003
Copyright: M. Bakker
Ahead Software AG
http://www.audiocoding.com (http://www.audiocoding.com)
Floating point version
****************************************************
rror initializing decoder library.
ress any key to continue . . .
What do think about?
That means that your adif.aac file is corrupted. Can you upload it somewhere so that I can test it?
Menno
Ok give me a valid address to send to
Correction!
You was right the file is corrupted, it really works with a different file.
Enrico
there is also an iso standard tool to convert from raw to adts from raw to adif from adts to adif and vice versa
this tool is called adif2mp4 and is part of the standard MPEG4 AAC reference software release.
Alastair