AAC problem

Think you found a bug in getID3()? Post here with details.
Post Reply
Joined:Sat Aug 07, 2010 3:22 am
Are you a spambot?:no
AAC problem

Post by Bedlore » Fri Sep 26, 2014 5:10 pm

GetID3 poorly parses AAC files. It parses each frame of the file resulting in millions of iterations on a big aac with length of an hour, one file I encountered had an audio length of 2h 20min which results in huge loading times.

I checked the current "known issues" and did see the two AAC issues but I'm not sure if this is covered or not already so thought I'd best raise it also. Here is what mediainfo has to say about the file.
$ mediainfo 13-0001.aac
Complete name : 13-0001.aac
Format : ADTS
Format/Info : Audio Data Transport Stream
File size : 64.8 MiB
Overall bit rate mode : Variable

Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Bit rate mode : Variable
Channel(s) : 1 channel
Channel positions : Front: C
Sampling rate : 44.1 KHz
Compression mode : Lossy
Stream size : 64.8 MiB (100%)

Let me know if I can help further please, this issue is heavily disruptive for us.

James Heinrich
getID3() v1 developer
Joined:Fri May 04, 2001 4:00 pm
Are you a spambot?:no
Location:Northern Ontario, Canada

Re: AAC problem

Post by James Heinrich » Sat Sep 27, 2014 3:57 am

If the AAC file has an ADIF header structure then relatively minimal data is parsed.
If on the other hand it uses a ADTS header structure a more brute-force approach is used.

Any patches to enable getID3 to return equally-accurate data with less effort are appreciated.

Post Reply