View Source Membrane.RawVideo.Parser (Membrane raw video parser v0.10.0)
Simple module responsible for splitting the incoming buffers into frames of raw (uncompressed) video frames of desired format.
The parser sends proper stream_format when moves to playing state. No data analysis is done, this element simply ensures that the resulting packets have proper size.
element-options
Element options
Passed via struct Membrane.RawVideo.Parser.t/0
pixel_format
RawVideo.pixel_format_t()
Required
Format used to encode pixels of the video frame.width
pos_integer()
Required
Width of a frame in pixels.height
pos_integer()
Required
Height of a frame in pixels.framerate
RawVideo.framerate_t()
Default value:
{0, 1}
Framerate of video stream. Passed forward in stream_format.
pads
Pads
input
:input
Accepted formats |
|
Availability | :always |
Demand mode | :auto |
Demand unit | :bytes |
Direction | :input |
Mode | :pull |
Name | :input |
output
:output
Accepted formats |
|
Availability | :always |
Demand mode | :auto |
Direction | :output |
Mode | :pull |
Name | :output |
Link to this section Summary
Types
Struct containing options for Membrane.RawVideo.Parser
Link to this section Types
@type t() :: %Membrane.RawVideo.Parser{ framerate: Membrane.RawVideo.framerate_t(), height: pos_integer(), pixel_format: Membrane.RawVideo.pixel_format_t(), width: pos_integer() }
Struct containing options for Membrane.RawVideo.Parser
Link to this section Functions
@spec options() :: keyword()
Returns description of options available for this module