Membrane Element: FDK-AAC v0.2.2 Membrane.Element.FDK.AAC.Encoder View Source

Element encoding raw audio into AAC format

Element options

Passed via struct Membrane.Element.FDK.AAC.Encoder.t/0

  • aot

    Default value: :mpeg4_lc

    Audio object type. See: https://github.com/mstorsjo/fdk-aac/blob/master/libAACenc/include/aacenc_lib.h#L1280 2: MPEG-4 AAC Low Complexity. 5: MPEG-4 AAC Low Complexity with Spectral Band Replication (HE-AAC). 29: MPEG-4 AAC Low Complexity with Spectral Band Replication and Parametric Stereo (HE-AAC v2). This configuration can be used only with stereo input audio data. 129: MPEG-2 AAC Low Complexity. 132: MPEG-2 AAC Low Complexity with Spectral Band Replication (HE-AAC).

  • bitrate_mode

    Default value: 0

    Bitrate Mode. See: http://wiki.hydrogenaud.io/index.php?title=Fraunhofer_FDK_AAC#Bitrate_Modes 0 - Constant Bitrate (default). 1-5 - Variable Bitrate

  • bitrate

    Default value: nil

    Bitrate in bits/s for CBR. If set to nil (default value), the bitrate will be estimated based on the number of channels and sample rate. See: https://trac.ffmpeg.org/wiki/Encode/AAC#fdk_cbr Note that for VBR this parameter is ignored.

  • input_caps

    Default value: nil

    Caps for the input pad. If set to nil (default value), caps are assumed to be received through the pad. If explicitly set to some caps, they cannot be changed by caps received through the pad.

Pads

:input

Availability:always
Bin?false
CapsMembrane.Caps.Audio.Raw, restrictions:
  format: :s16le,
  channels: one_of([1, 2]),
  sample_rate: one_of([96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000, 12000, 11025, 8000])
Demand unit:bytes
Direction:input
Mode:pull
Name:input

:output

Availability:always
Bin?false
Caps:any
Direction:output
Mode:pull
Name:output

Link to this section Summary

Functions

Returns pads descriptions for Membrane.Element.FDK.AAC.Encoder

Returns description of options available for this module

Link to this section Types

Link to this type

allowed_aots()

View Source
allowed_aots() :: :mpeg2_he | :mpeg2_lc | :mpeg4_he_v2 | :mpeg4_he | :mpeg4_lc
Link to this type

allowed_bitrate_modes()

View Source
allowed_bitrate_modes() :: 5 | 4 | 3 | 2 | 1 | 0
Link to this type

allowed_channels()

View Source
allowed_channels() :: 2 | 1
Link to this type

allowed_sample_rates()

View Source
allowed_sample_rates() ::
  8000
  | 11025
  | 12000
  | 16000
  | 22050
  | 24000
  | 32000
  | 44100
  | 48000
  | 64000
  | 88200
  | 96000
Link to this type

t()

View Source
t() :: %Membrane.Element.FDK.AAC.Encoder{
  aot: allowed_aots(),
  bitrate: pos_integer() | nil,
  bitrate_mode: allowed_bitrate_modes(),
  input_caps: Membrane.Caps.Audio.Raw.t() | nil
}

Struct containing options for Membrane.Element.FDK.AAC.Encoder

Link to this section Functions

Returns pads descriptions for Membrane.Element.FDK.AAC.Encoder

Returns description of options available for this module