View Source Membrane.FramerateConverter (Membrane Framerate Converter plugin v0.4.0)
Element converts video to target constant frame rate, by dropping and duplicating frames as necessary.
Input video may have constant or variable frame rate.
Element expects each frame to be received in separate buffer.
Additionally, presentation timestamps must be passed in each buffer's pts
fields.
element-options
Element options
Passed via struct Membrane.FramerateConverter.t/0
framerate
{pos_integer(), pos_integer()}
Default value:
{30, 1}
Target framerate.
pads
Pads
input
:input
Availability | :always |
Caps | Membrane.RawVideo , restrictions:aligned: true |
Demand mode | :auto |
Demand unit | :buffers |
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
Struct containing options for Membrane.FramerateConverter
Functions
Returns pads descriptions for Membrane.FramerateConverter
Returns description of options available for this module
Link to this section Types
Specs
t() :: %Membrane.FramerateConverter{framerate: {pos_integer(), pos_integer()}}
Struct containing options for Membrane.FramerateConverter
Link to this section Functions
Specs
membrane_pads() :: [{Membrane.Pad.name_t(), Membrane.Pad.description_t()}]
Returns pads descriptions for Membrane.FramerateConverter
Specs
options() :: keyword()
Returns description of options available for this module