View Source Membrane.RawAudioParser (Membrane RawAudioParser plugin v0.4.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
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
:input
Accepted formats:
RawAudio
Membrane.RemoteStream
Direction: | :input |
Availability: | :always |
Flow control: | :auto |
:output
Accepted formats:
RawAudio
Direction: | :output |
Availability: | :always |
Flow control: | :auto |
Summary
Types
Struct containing options for Membrane.RawAudioParser
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
Functions
@spec options() :: keyword()
Returns description of options available for this module