interface VideoTransformationInterface implements CommonTransformationInterface

Interface VideoTransformationInterface

Methods

trim(Timeline $range)

Shortens a video to the specified range.

roundCorners(int|string $radius)

Rounds the corners of a video.

overlay(BaseSource|string $videoLayer, BasePosition|null $position = null, Timeline|null $timeline = null)

Adds another video, text or image as an overlay over the container video.

concatenate(Concatenate|VideoSource|string $videoLayer)

Concatenates another video or image.

cutter(VideoSource|string $videoLayer, BasePosition|null $position = null, Timeline|null $timeline = null)

Applies the video as a cutter for the main video.

addSubtitles(string $subtitlesId)

Adds subtitles to the video.

transcode(AudioCodec|VideoCodec|AudioFrequency|ToAnimatedAction $transcode)

Transcodes the video (or audio) to another format.

Details

VideoTransformationInterface trim(Timeline $range)

Shortens a video to the specified range.

Parameters

Name Type Description
$range Timeline The part of the video to keep.

Return Value

VideoTransformationInterface

See also

Timeline

VideoTransformationInterface roundCorners(int|string $radius)

Rounds the corners of a video.

Parameters

Name Type Description
$radius int|string The radius of the corners in pixels.

Return Value

VideoTransformationInterface

VideoTransformationInterface overlay(BaseSource|string $videoLayer, BasePosition|null $position = null, Timeline|null $timeline = null)

Adds another video, text or image as an overlay over the container video.

Parameters

Name Type Description
$videoLayer BaseSource|string The overlay.
$position BasePosition|null The position of the overlay.
$timeline Timeline|null The timeline position of the overlay.

Return Value

VideoTransformationInterface

VideoTransformationInterface concatenate(Concatenate|VideoSource|string $videoLayer)

Concatenates another video or image.

Parameters

Name Type Description
$videoLayer Concatenate|VideoSource|string The layer to concatenate.

Return Value

VideoTransformationInterface

VideoTransformationInterface cutter(VideoSource|string $videoLayer, BasePosition|null $position = null, Timeline|null $timeline = null)

Applies the video as a cutter for the main video.

Parameters

Name Type Description
$videoLayer VideoSource|string The cutter video layer.
$position BasePosition|null The position of the cutter.
$timeline Timeline|null The timeline position of the cutter.

Return Value

VideoTransformationInterface

mixed addSubtitles(string $subtitlesId)

Adds subtitles to the video.

Parameters

Name Type Description
$subtitlesId string The subtitles file public ID.

Return Value

mixed

VideoTransformationInterface transcode(AudioCodec|VideoCodec|AudioFrequency|ToAnimatedAction $transcode)

Transcodes the video (or audio) to another format.

Parameters

Name Type Description
$transcode AudioCodec|VideoCodec|AudioFrequency|ToAnimatedAction The new format.

Return Value

VideoTransformationInterface