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_formatRawVideo.pixel_format()Required
Format used to encode pixels of the video frame.widthpos_integer()Required
Width of a frame in pixels.heightpos_integer()Required
Height of a frame in pixels.framerateRawVideo.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