View Source Membrane.RawVideo.Parser (Membrane raw video parser v0.7.0)

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

Element options

Passed via struct Membrane.RawVideo.Parser.t/0

  • pixel_format

    RawVideo.pixel_format_t()

    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_t()

    Default value: {0, 1}
    Framerate of video stream. Passed forward in caps.

pads

Pads

input

:input

Availability :always
Caps Membrane.RemoteStream
Demand mode :auto
Demand unit :bytes
Direction :input
Mode :pull
Name :input

output

:output

Availability :always
Caps Membrane.RawVideo, restrictions:
  aligned: true
Demand mode :auto
Demand unit :buffers
Direction :output
Mode :pull
Name :output

Link to this section Summary

Types

t()

Struct containing options for Membrane.RawVideo.Parser

Functions

Returns pads descriptions for Membrane.RawVideo.Parser

Returns description of options available for this module

Link to this section Types

Specs

t() :: %Membrane.RawVideo.Parser{
  framerate: Membrane.RawVideo.framerate_t(),
  height: pos_integer(),
  pixel_format: Membrane.RawVideo.pixel_format_t(),
  width: pos_integer()
}

Struct containing options for Membrane.RawVideo.Parser

Link to this section Functions

Specs

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

Returns pads descriptions for Membrane.RawVideo.Parser

Specs

options() :: keyword()

Returns description of options available for this module