Membrane Element: Raw video parser v0.1.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.

Link to this section Summary

Types

t()

Struct containing options for Membrane.Element.RawVideo.Parser

  • framerate: Framerate of video stream. Passed forward in caps

Functions

Returns pads specification for Membrane.Element.RawVideo.Parser

Returns description of options available for this module

Link to this section Types

Link to this type t() View Source
t() :: %Membrane.Element.RawVideo.Parser{
  format: Membrane.Caps.Video.Raw.format_t(),
  width: any(),
  height: any(),
  framerate: Membrane.Caps.Video.Raw.framerate_t()
}

Struct containing options for Membrane.Element.RawVideo.Parser

  • framerate: Framerate of video stream. Passed forward in caps.

    Defaults to {0, 1}

  • height: Height of a frame in pixels.

  • width: Width of a frame in pixels.

  • format: Format used to encode pixels of the video frame.

Link to this section Functions

Returns pads specification for Membrane.Element.RawVideo.Parser

They are the following:

  • Pad :output

  • Pad :input

    • availability: :always
    • caps: :any
    • demand unit: :bytes
    • direction: :input
    • mode: :pull

Returns description of options available for this module