View Source Membrane.RawVideo.Parser (Membrane raw video parser v0.12.2)
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
Passed via struct Membrane.RawVideo.Parser.t/0
pixel_format
RawVideo.pixel_format()
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()
Default value:
{0, 1}
Framerate of video stream. Passed forward in stream_format.
Pads
:input
Accepted formats:
RemoteStream
Direction: | :input |
Availability: | :always |
Flow control: | :auto |
:output
Accepted formats:
%RawVideo{aligned: true}
Direction: | :output |
Availability: | :always |
Flow control: | :auto |
Summary
Types
Struct containing options for Membrane.RawVideo.Parser
Types
@type t() :: %Membrane.RawVideo.Parser{ framerate: Membrane.RawVideo.framerate(), height: pos_integer(), pixel_format: Membrane.RawVideo.pixel_format(), width: pos_integer() }
Struct containing options for Membrane.RawVideo.Parser
Functions
@spec options() :: keyword()
Returns description of options available for this module