Membrane.Element.RawVideo.Parser (Membrane Element: Raw video parser v0.3.0) 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
CapsMembrane.Caps.Video.Raw, restrictions:<br />&nbsp;&nbsp;aligned: true
Direction:output
Mode:pull
Name:output

Link to this section Summary

Types

t()

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

Specs

t() :: %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

Specs

membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]

Returns pads descriptions for Membrane.Element.RawVideo.Parser

Specs

options() :: keyword()

Returns description of options available for this module