AAC headers

Locked
rfor
User
Posts:3
Joined:Wed Apr 27, 2011 9:47 am
Are you a spambot?:no
AAC headers

Post by rfor » Wed Apr 27, 2011 9:54 am

I am using getid3 version 1.8.5 and trying to extract duration from an AAC-file.

However, I am getting a error:

Synch pattern (0x0FFF) not found at offset XXX (found 0x0XXX instead) (XXX varies, depending on the file)

The complete array can be found on http://movibooks.com/admin/fileDuration.php.

I have tried two different AAC-encoders (in case there is a problem with the AAC-file) with the same result.

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

Re: AAC headers

Post by James Heinrich » Wed Apr 27, 2011 11:54 am

Please send me a sample file that does this (PM me a link, or email directly to info@getid3.org if <10MB).

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

Re: AAC headers

Post by James Heinrich » Thu Apr 28, 2011 3:28 pm

Thanks. I've rewritten the AAC-ADTS header parsing and it works much better now. Your file is recognized no problem.

The rewrite was done on v1.9.0 development version, but the attached version is an untested back-port of the new code, and should hopefully work for you until v1.9.0 is released.
Last edited by James Heinrich on Thu Apr 28, 2011 4:03 pm, edited 1 time in total.
Reason: removed non-working attachment

rfor
User
Posts:3
Joined:Wed Apr 27, 2011 9:47 am
Are you a spambot?:no

Re: AAC headers

Post by rfor » Thu Apr 28, 2011 3:48 pm

Thanks for you quick response and correction.
I have replace the old module.audio.aac.php in my existing getid3-directory.

However, there seems to be some problem.
If you check the same link as before you can see which is the output I get.

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

Re: AAC headers

Post by James Heinrich » Thu Apr 28, 2011 4:04 pm

Hmm, that's what I get for not testing patches... here, try this version instead :)
Attachments
module.audio.aac.php
(24.64KiB)Downloaded 925 times

rfor
User
Posts:3
Joined:Wed Apr 27, 2011 9:47 am
Are you a spambot?:no

Re: AAC headers

Post by rfor » Thu Apr 28, 2011 4:10 pm

Gr8!!!
Works perfect.
Huge thanks.....
Will light a candle in your name this night :-)

Locked