Membrane Element: Raw video parser v0.2.0 Membrane.Element.RawVideo.Parser View Source
Simple module responsible for splitting the incoming buffers into frames of raw (uncompressed) video frames of desired format.
The parser sends proper caps 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.Element.RawVideo.Parser.t/0
format
Required
Format used to encode pixels of the video frame.
width
Required
Width of a frame in pixels.
height
Required
Height of a frame in pixels.
framerate
Default value:
{0, 1}
Framerate of video stream. Passed forward in caps.
Pads
:input
Availability | :always |
Bin? | false |
Caps | :any |
Demand unit | :bytes |
Direction | :input |
Mode | :pull |
Name | :input |
:output
Availability | :always |
Bin? | false |
Caps | Membrane.Caps.Video.Raw , restrictions:aligned: true |
Direction | :output |
Mode | :pull |
Name | :output |
Link to this section Summary
Types
Struct containing options for Membrane.Element.RawVideo.Parser
Functions
Returns pads descriptions for Membrane.Element.RawVideo.Parser
Returns description of options available for this module
Link to this section Types
t()
View Sourcet() :: %Membrane.Element.RawVideo.Parser{ format: Membrane.Caps.Video.Raw.format_t(), framerate: Membrane.Caps.Video.Raw.framerate_t(), height: any(), width: any() }
Struct containing options for Membrane.Element.RawVideo.Parser
Link to this section Functions
membrane_pads()
View Sourcemembrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]
Returns pads descriptions for Membrane.Element.RawVideo.Parser
Returns description of options available for this module