HydrogenAudio

Lossy Audio Compression => AAC => Topic started by: tuanpm on 2017-03-30 06:03:06

Title: FAAD2 HE-AAC with SBR ext Chirp noise
Post by: tuanpm on 2017-03-30 06:03:06
Hello guys,

I have tried to use FAAD2 and FDK-AAC to decode HE-AAC with SBR extension, with FDK-AAC can play very well, but with FAAD2, sometime i got some "chirp" noise as audio file attached

Does anyone meet this problem like me, could you please share your experience about this?

FAAD2 configurations:
Code: [Select]
#define SBR_LOW_POWER
//#define FIXED_POINT
#define MAIN_DEC
#define LTP_DEC
#define LD_DEC
#define SBR_DEC
//#define PS_DEC
FAAD2 init

Code: [Select]
codec->hDecoder = NeAACDecOpen();
codec->config = NeAACDecGetCurrentConfiguration(codec->hDecoder);

codec->config->defObjectType = HE_AAC;
codec->config->outputFormat = FAAD_FMT_16BIT;
codec->config->downMatrix = 0;
codec->config->useOldADTSFormat = 0;
codec->config->dontUpSampleImplicitSBR = 1;

=> Noise has recored: IMG_0546.m4a
=> HE-AAC file: sbr-dec.aac

Thanks

Edited: I posted the wrong forum, Thanks mod to help me in the right place
Title: Re: FAAD2 HE-AAC with SBR ext Chirp noise
Post by: saratoga on 2017-03-31 03:06:10
Try without SBR_LOW_POWER ?
Title: Re: FAAD2 HE-AAC with SBR ext Chirp noise
Post by: tuanpm on 2017-03-31 03:12:24
Try without SBR_LOW_POWER ?

Because I use a 240Mhz chip, it does not have sufficient decoding capability when turning off SBR_LOW_POWER
Title: Re: FAAD2 HE-AAC with SBR ext Chirp noise
Post by: saratoga on 2017-03-31 05:11:39
I mean for testing. Disable the low power shortcuts and see if the problems are still present.

The rockbox fork of libfaad needs about 100 MHz on Arm9e without using SBR_LOW_POWER by the way. It is much better optimized then the normal code though.
Title: Re: FAAD2 HE-AAC with SBR ext Chirp noise
Post by: tuanpm on 2017-03-31 05:24:53
Thank you @saratoga for your quick reply
When I turned off this mode, the sound seemed to be decoding very slowly. Including the FDK-AAC, I will find out why, because you can run on 100Mhz chip. Do you have any suggestions for this?
Title: Re: FAAD2 HE-AAC with SBR ext Chirp noise
Post by: saratoga on 2017-03-31 12:14:07
We heavily optimized libfaad for ARM/Coldfire decoding:

https://git.rockbox.org/?p=rockbox.git;a=history;f=apps/codecs/libfaad;hb=a0009907de7a0107d49040d8a180f140e2eff299

The reference version is a relatively stable but requires a lot of memory and is not well optimized.