View Source Membrane.AAC.FDK.Encoder (Membrane AAC FDK plugin v0.14.0)
Element encoding raw audio into AAC format
element-options
Element options
Passed via struct Membrane.AAC.FDK.Encoder.t/0
aotallowed_aots()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_modeallowed_bitrate_modes()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 Bitratebitratepos_integer() | nilDefault 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.
pads
Pads
input
:input
| Accepted formats |
|
| Availability | :always |
| Demand mode | :auto |
| Demand unit | :bytes |
| Direction | :input |
| Mode | :pull |
| Name | :input |
| Accepted formats |
|
| Availability | :always |
| Demand mode | :auto |
| Direction | :output |
| Mode | :pull |
| Name | :output |
Link to this section Summary
Types
Struct containing options for Membrane.AAC.FDK.Encoder
Link to this section Types
@type allowed_aots() :: :mpeg4_lc | :mpeg4_he | :mpeg4_he_v2 | :mpeg2_lc | :mpeg2_he
@type allowed_bitrate_modes() :: 0 | 1 | 2 | 3 | 4 | 5
@type allowed_channels() :: 1 | 2
@type allowed_sample_rates() ::
96000
| 88200
| 64000
| 48000
| 44100
| 32000
| 24000
| 22050
| 16000
| 12000
| 11025
| 8000
@type t() :: %Membrane.AAC.FDK.Encoder{ aot: allowed_aots(), bitrate: pos_integer() | nil, bitrate_mode: allowed_bitrate_modes() }
Struct containing options for Membrane.AAC.FDK.Encoder
Link to this section Functions
@spec options() :: keyword()
Returns description of options available for this module