View Source Membrane.G711.FFmpeg.Parser (Membrane G711 FFmpeg Plugin v0.1.1)

This element is responsible for parsing audio in G711 format. The Parser ensures that output buffers have whole samples. The parser doesn't ensure that in each output buffer, there will be the same number of samples.

Element options

Passed via struct Membrane.G711.FFmpeg.Parser.t/0

  • stream_format

    G711.t() | nil

    Default value: nil
    The stream format of the output pad. It has to be specified if Membrane.RemoteStream will be received on the :input pad.

  • overwrite_pts?

    boolean()

    Default value: false
    If set to true, the parser will add timestamps based on payload duration.

  • pts_offset

    non_neg_integer()

    Default value: 0
    If set to a value different than 0, the parser will start timestamps from offset. It's only valid when overwrite_pts? is set to true.

Pads

:input

Accepted formats:

G711
RemoteStream
Direction::input
Availability::always
Flow control::auto

:output

Accepted formats:

G711
Direction::output
Availability::always
Flow control::auto

Summary

Types

t()

Struct containing options for Membrane.G711.FFmpeg.Parser

Functions

Returns description of options available for this module

Types

@type t() :: %Membrane.G711.FFmpeg.Parser{
  overwrite_pts?: boolean(),
  pts_offset: non_neg_integer(),
  stream_format: Membrane.G711.t() | nil
}

Struct containing options for Membrane.G711.FFmpeg.Parser

Functions

@spec options() :: keyword()

Returns description of options available for this module