View Source Membrane.FFmpeg.SWScale.PixelFormatConverter (Membrane FFmpeg SWScale plugin v0.11.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
Element options
Passed via struct Membrane.FFmpeg.SWScale.PixelFormatConverter.t/0
format
RawVideo.pixel_format_t()
Required
Desired pixel format of output video.
pads
Pads
input
:input
Accepted formats:
%RawVideo{aligned: true, pixel_format: pixel_format} when pixel_format in @supported_pixel_formats
Direction: | :input |
Availability: | :always |
Mode: | :pull |
Demand mode: | :auto |
Demand unit: | :buffers |
output
:output
Accepted formats:
%RawVideo{aligned: true, pixel_format: pixel_format} when pixel_format in @supported_pixel_formats
Direction: | :output |
Availability: | :always |
Mode: | :pull |
Demand mode: | :auto |
Link to this section Summary
Types
Struct containing options for Membrane.FFmpeg.SWScale.PixelFormatConverter
Link to this section Types
@type t() :: %Membrane.FFmpeg.SWScale.PixelFormatConverter{ format: Membrane.RawVideo.pixel_format_t() }
Struct containing options for Membrane.FFmpeg.SWScale.PixelFormatConverter
Link to this section Functions
@spec options() :: keyword()
Returns description of options available for this module