View Source Membrane.RawAudioParser (Membrane RawAudioParser plugin v0.2.0)
This element is responsible for parsing audio in RawAudio 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
Element options
Passed via struct Membrane.RawAudioParser.t/0
stream_format
RawAudio.t() | nil
Default value:
nil
The value defines a raw audio format of the input pad.overwrite_pts?
boolean()
Default value:
false
If set to true RawAudioParser will add timestamps based on payload durationpts_offset
non_neg_integer()
Default value:
0
If set to value different than 0, RawAudioParser will start timestamps from offset. It's only valid whenoverwrite_pts?
is set to true.
pads
Pads
input
:input
Accepted formats:
RawAudio
Membrane.RemoteStream
Direction: | :input |
Availability: | :always |
Flow control: | :auto |
Demand unit: | nil |
output
:output
Accepted formats:
RawAudio
Direction: | :output |
Availability: | :always |
Flow control: | :auto |
Demand unit: | nil |
Link to this section Summary
Types
Struct containing options for Membrane.RawAudioParser
Link to this section Types
@type t() :: %Membrane.RawAudioParser{ overwrite_pts?: boolean(), pts_offset: non_neg_integer(), stream_format: Membrane.RawAudio.t() | nil }
Struct containing options for Membrane.RawAudioParser
Link to this section Functions
@spec options() :: keyword()
Returns description of options available for this module