world leader in high performance signal processing
Trace: » faad

FAAD2

FAAD2 is a HE, LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder.

FAAD2 includes code for SBR (HE AAC) decoding.

FAAD2 is licensed under the GPL.

The source is available at:

http://sourceforge.net/projects/faac/

You will need the cvs version to get the latest blackfin optimizations.

autoreconf -vif
./configure --host=bfin-linux-uclibc
make

Initial performance.

I have selected the following content as my benchmarking source

http://www1.mplayerhq.hu/MPlayer/samples/A-codecs/AAC/ct_nero-heaac.mp4

Which is a 20second clip with the following format: HE AAC 20.052 secs, 2 ch, 44100 Hz.

root:/u/dev/faad2/frontend> ./.libs/faad -o fun.wav /u/vid/ct_nero-heaac.mp4 
 *********** Ahead Software MPEG-4 AAC Decoder V2.6 beta ******************

 Build: Sep 11 2007
 Copyright 2002-2004: Ahead Software AG
 http://www.audiocoding.com
 Floating point version

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License.

 **************************************************************************

/u/vid/ct_nero-heaac.mp4 file info:

HE AAC  20.052 secs, 2 ch, 44100 Hz

tool: Nero AAC Codec 2.5.5.3

  ---------------------
 | Config:  2 Ch       |
  ---------------------
 | Ch |    Position    |
  ---------------------
 | 00 | Left front     |
 | 01 | Right front    |
  ---------------------

Decoding /u/vid/ct_nero-heaac.mp4 took: 183.48 sec.  0.11x real-time.
root:/u/dev/faad2/frontend> 
root:/u/dev/faad2/frontend> ./.libs/faad -o fun.wav /u/vid/ct_nero-heaac.mp4 
 *********** Ahead Software MPEG-4 AAC Decoder V2.6 beta ******************

 Build: Sep 11 2007
 Copyright 2002-2004: Ahead Software AG
 http://www.audiocoding.com
 Fixed point version

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License.

 **************************************************************************

/u/vid/ct_nero-heaac.mp4 file info:

HE AAC  20.052 secs, 2 ch, 44100 Hz

tool: Nero AAC Codec 2.5.5.3

  ---------------------
 | Config:  2 Ch       |
  ---------------------
 | Ch |    Position    |
  ---------------------
 | 00 | Left front     |
 | 01 | Right front    |
  ---------------------

Decoding /u/vid/ct_nero-heaac.mp4 took: 22.92 sec.  0.87x real-time.
root:/u/dev/faad2/frontend> 

With optimized fixed point mults.

root:/u/dev/faad2/frontend> ./.libs/faad -o fun.wav /u/vid/ct_nero-heaac.mp4 
 *********** Ahead Software MPEG-4 AAC Decoder V2.6 beta ******************

 Build: Sep 11 2007
 Copyright 2002-2004: Ahead Software AG
 http://www.audiocoding.com
 Fixed point version

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License.

 **************************************************************************

/u/vid/ct_nero-heaac.mp4 file info:

HE AAC  20.052 secs, 2 ch, 44100 Hz

tool: Nero AAC Codec 2.5.5.3

  ---------------------
 | Config:  2 Ch       |
  ---------------------
 | Ch |    Position    |
  ---------------------
 | 00 | Left front     |
 | 01 | Right front    |
  ---------------------

Decoding /u/vid/ct_nero-heaac.mp4 took: 13.92 sec.  1.44x real-time.
root:/u/dev/faad2/frontend> 

Not sure why but the version of the codec in our repository with the above changes has the following performance.

root:/u/dev/ucl-faad2/frontend> ./.libs/faad -o /x.wav /u/vid/ct_nero-heaac.mp4 
 *********** Ahead Software MPEG-4 AAC Decoder V2.0      ******************

 Build: Sep 11 2007
 Copyright 2002-2004: Ahead Software AG
 http://www.audiocoding.com
 Fixed point version

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

 **************************************************************************

/u/vid/ct_nero-heaac.mp4 file info:

LC AAC  20.042 secs, 2 ch, 22050 Hz

tool: Nero AAC Codec 2.5.5.3

  ---------------------
 | Config:  2 Ch       |
  ---------------------
 | Ch |    Position    |
  ---------------------
 | 00 | Left front     |
 | 01 | Right front    |
  ---------------------

Decoding /u/vid/ct_nero-heaac.mp4 took:  1.57 sec. 12.77x real-time.