Skip to content

fdkaacenc: HE-AAC / HE-AACv2 profile support

This PR aims to include basic support for encoding with SBR (HE-AAC) / SBR + PS (HE-AACv2) when using fdkaacenc.

Target AOT is chosen using the profile caps in fdkaacenc, e.g: gst-launch-1.0 audiotestsrc ! fdkaacenc ! audio/mpeg,mpegversion=4,profile=sbr ! fakesink. If profile=ps (Parametric Stereo) is used, the encoder sink will limit its channels caps to >=2.

This required some additions to pbutils, as the current AOT parser didn't support the backwards-compatible signaling at all and only kind-of supported the hierarchical (non-BC) variant. Also added was correct encoder profile calculation when HE-AAC/v2 is in use.

Merge request reports