From Hydrogenaudio Knowledgebase
Jump to: navigation, search

Developer(s) tmkk
Release information
Initial release
Stable release 20120624 (June 24, 2012; 10 years ago)
Preview release
Operating system Windows
Additional information
Use Encoder
License MIT
Website github.com/tmkk/fhgaacenc

fhgaacenc is a command-line encoder through which the FhG AAC encoder included with Winamp can be used.

An updated version (20151024) with some fixes by Case is included with the foobar2000 Free Encoder Pack.[1]


Option 1[edit]

  • Download and install the relevant version of Winamp.

Option 2[edit]

  • Download the relevant version of Winamp, but do not install it.
  • Open the setup exe file as an archive using a tool such as 7-Zip.
  • Copy the following files to the same folder as fhgaacenc.exe:
    • Plugins\enc_fhgaac.dll
    • libmp4v2.dll
    • nsutil.dll

Command-line usage[edit]

The following usage notes are from version 20151024:

Usage: fhgaacenc.exe [options] infile [outfile]
  Note: pass - as infile to encode from stdin.
        pass - as outfile to encode to stdout (ADTS only).

  General encoding options
        --cbr <bitrate> : encode in CBR mode, bitrate=8..576
        --vbr <preset>  : encode in VBR mode, preset=1..6 [default, preset 4]
            1: HE-AAC v2  (~32 kbps)
            2: HE-AAC     (~64 kbps)
            3: AAC LC     (~96 kbps)
            4: AAC LC    (~128 kbps)
            5: AAC LC    (~192 kbps)
            6: AAC LC    (~256 kbps)
        --profile <auto|lc|he|hev2> : choose AAC profile (only for CBR mode)
            auto : automatically choose the optimum profile
                   according to the bitrate [default]
            lc   : force use LC-AAC profile
            he   : force use HE-AAC (AAC+SBR) profile
            hev2 : force use HE-AAC v2 (AAC+SBR+PS) profile
        --adts : use ADTS container instead of MPEG-4
  Other options
        --ignorelength : ignore the size of data chunk when encoding from pipe
        --quiet        : don't print the progress


  1. qaac.exe and fhgaacenc.exe on hydrogenaudio

External links[edit]