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
MAPPING_GLUE
public
mixed
MAPPING_GLUE
= "_hls_"
Properties
$driver
private
PHPFFMpeg
$driver
$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
__construct()
public
__construct(PHPFFMpeg $driver, int $formatKey) : mixed
Parameters
- $driver : PHPFFMpeg
- $formatKey : int
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
selfaddLegacyFilter()
Adds a filter as a complex filter.
public
addLegacyFilter(mixed ...$arguments) : self
Parameters
- $arguments : mixed
Return values
selfaddWatermark()
Shortcut for the WatermarkFactory.
public
addWatermark(callable $withWatermarkFactory) : self
Parameters
- $withWatermarkFactory : callable
Return values
selfbeforeGlue()
public
static beforeGlue(mixed $input) : string
Parameters
- $input : mixed
Return values
stringcount()
public
count() : int
Return values
intglue()
public
static glue(mixed $format, mixed $filter) : string
Parameters
- $format : mixed
- $filter : mixed
Return values
stringresize()
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
selfscale()
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
selfincreaseFilterCount()
private
increaseFilterCount() : self
Return values
selfinput()
Generates an input mapping for a new filter.
private
input() : string
Return values
stringoutput()
Generates an output mapping for a new filter.
private
output() : string