Membrane Element: FDK-AAC v0.1.1 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 |
Caps | Membrane.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 |
:output
Availability | :always |
Caps | :any |
Direction | :output |
Mode | :pull |
Link to this section Summary
Types
Struct containing options for Membrane.Element.FDK.AAC.Encoder
Functions
Returns pads descriptions for Membrane.Element.FDK.AAC.Encoder
Returns description of options available for this module
Link to this section Types
allowed_aots()
View Sourceallowed_aots() :: :mpeg2_he | :mpeg2_lc | :mpeg4_he_v2 | :mpeg4_he | :mpeg4_lc
allowed_bitrate_modes()
View Sourceallowed_bitrate_modes() :: 5 | 4 | 3 | 2 | 1 | 0
allowed_sample_rates()
View Sourceallowed_sample_rates() :: 8000 | 11025 | 12000 | 16000 | 22050 | 24000 | 32000 | 44100 | 48000 | 64000 | 88200 | 96000
t()
View Sourcet() :: %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
membrane_pads()
View Sourcemembrane_pads() :: [ {Membrane.Element.Pad.name_t(), Membrane.Element.Pad.description_t()} ]
Returns pads descriptions for Membrane.Element.FDK.AAC.Encoder
Returns description of options available for this module