View Source Membrane.AAC.Parser (Membrane AAC plugin v0.14.0)

Parser for Advanced Audio Codec.

Supports both plain and ADTS-encapsulated output (configured by out_encapsulation). Input with encapsulation :none is supported, but correct AAC stream format needs to be supplied with the stream.

If PTS is absent, it calculates and puts one based on the sample rate.

element-options

Element options

Passed via struct Membrane.AAC.Parser.t/0

  • samples_per_frame

    AAC.samples_per_frame_t()

    Default value: 1024
    Count of audio samples in each AAC frame

  • out_encapsulation

    AAC.encapsulation_t()

    Default value: :ADTS
    Determines whether output AAC frames should be prefixed with ADTS headers

  • in_encapsulation

    AAC.encapsulation_t()

    Default value: :ADTS

pads

Pads

input

:input

Accepted formats

AAC

AAC.RemoteStream

Membrane.RemoteStream

Availability :always
Demand mode :manual
Demand unit :buffers
Direction :input
Mode :pull
Name :input

output

:output

Accepted formats

AAC

Availability :always
Demand mode :manual
Direction :output
Mode :pull
Name :output

Link to this section Summary

Types

t()

Struct containing options for Membrane.AAC.Parser

Functions

Returns description of options available for this module

Link to this section Types

@type t() :: %Membrane.AAC.Parser{
  in_encapsulation: Membrane.AAC.encapsulation_t(),
  out_encapsulation: Membrane.AAC.encapsulation_t(),
  samples_per_frame: Membrane.AAC.samples_per_frame_t()
}

Struct containing options for Membrane.AAC.Parser

@type timestamp_t() :: Ratio.t() | Membrane.Time.t()

Link to this section Functions

@spec options() :: keyword()

Returns description of options available for this module