Membrane.G711.FFmpeg.Parser (Membrane G711 FFmpeg Plugin v0.1.4)
View SourceThis 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_formatG711.t() | nilDefault value:
nil
The stream format of the output pad. It has to be specified ifMembrane.RemoteStreamwill be received on the:inputpad.overwrite_pts?boolean()Default value:
false
If set to true, the parser will add timestamps based on payload duration.pts_offsetnon_neg_integer()Default value:
0
If set to a value different than 0, the parser will start timestamps from offset. It's only valid whenoverwrite_pts?is set to true.
Pads
:input
Accepted formats:
G711RemoteStream| Direction: | :input |
| Availability: | :always |
| Flow control: | :auto |
:output
Accepted formats:
%G711{encoding: encoding} when encoding in [:PCMA, :PCMU]| Direction: | :output |
| Availability: | :always |
| Flow control: | :auto |
Summary
Types
Struct containing options for Membrane.G711.FFmpeg.Parser
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