View Source Membrane.FFmpeg.SWScale.PixelFormatConverter (Membrane FFmpeg SWScale plugin v0.15.1)

This element performs conversion between pixel formats of raw video.

Only the following pixel formats are supported, both as input and output:

  • I420
  • I422
  • I444
  • RGB
  • BGRA
  • RGBA
  • NV12
  • NV21
  • AYUV
  • YUY2

Element options

Passed via struct Membrane.FFmpeg.SWScale.PixelFormatConverter.t/0

  • format

    RawVideo.pixel_format_t()

    Required
    Desired pixel format of output video.

Pads

:input

Accepted formats:

%RawVideo{aligned: true, pixel_format: pixel_format} when pixel_format in @supported_pixel_formats
Direction::input
Availability::always
Flow control::auto

:output

Accepted formats:

%RawVideo{aligned: true, pixel_format: pixel_format} when pixel_format in @supported_pixel_formats
Direction::output
Availability::always
Flow control::auto

Summary

Functions

Returns description of options available for this module

Types

@type t() :: %Membrane.FFmpeg.SWScale.PixelFormatConverter{
  format: Membrane.RawVideo.pixel_format_t()
}

Struct containing options for Membrane.FFmpeg.SWScale.PixelFormatConverter

Functions

@spec options() :: keyword()

Returns description of options available for this module