Bånder

HLSVideoFilters
in package

Table of Contents

Constants

MAPPING_GLUE  = "_hls_"

Properties

$driver  : PHPFFMpeg
$filterCount  : int
Number of filters added to this video.
$formatKey  : int
Key of the video in the HLS export.

Methods

__construct()  : mixed
addFilter()  : self
Adds a filter object or a callable to the driver and automatically chooses the right input and output mapping.
addLegacyFilter()  : self
Adds a filter as a complex filter.
addWatermark()  : self
Shortcut for the WatermarkFactory.
beforeGlue()  : string
count()  : int
glue()  : string
resize()  : self
Shortcut for the ResizeFilter.
scale()  : self
Adds a scale filter to the video, will be replaced in favor of resize().
increaseFilterCount()  : self
input()  : string
Generates an input mapping for a new filter.
output()  : string
Generates an output mapping for a new filter.

Constants

Properties

$filterCount

Number of filters added to this video.

private int $filterCount = 0

$formatKey

Key of the video in the HLS export.

private int $formatKey

Methods

addFilter()

Adds a filter object or a callable to the driver and automatically chooses the right input and output mapping.

public addFilter(mixed ...$arguments) : self
Parameters
$arguments : mixed
Return values
self

addLegacyFilter()

Adds a filter as a complex filter.

public addLegacyFilter(mixed ...$arguments) : self
Parameters
$arguments : mixed
Return values
self

addWatermark()

Shortcut for the WatermarkFactory.

public addWatermark(callable $withWatermarkFactory) : self
Parameters
$withWatermarkFactory : callable
Return values
self

beforeGlue()

public static beforeGlue(mixed $input) : string
Parameters
$input : mixed
Return values
string

glue()

public static glue(mixed $format, mixed $filter) : string
Parameters
$format : mixed
$filter : mixed
Return values
string

resize()

Shortcut for the ResizeFilter.

public resize(int $width, int $height[, string $mode = ResizeFilter::RESIZEMODE_FIT ][, bool $forceStandards = true ]) : self
Parameters
$width : int
$height : int
$mode : string = ResizeFilter::RESIZEMODE_FIT
$forceStandards : bool = true
Return values
self

scale()

Adds a scale filter to the video, will be replaced in favor of resize().

public scale(int $width, int $height) : self
Parameters
$width : int
$height : int
Return values
self

increaseFilterCount()

private increaseFilterCount() : self
Return values
self

input()

Generates an input mapping for a new filter.

private input() : string
Return values
string

output()

Generates an output mapping for a new filter.

private output() : string
Return values
string

        
On this page

Search results