abstract class VideoEdit

Methods for editing a video.

Learn more: Video manipulation

Methods

trim(null $startOffset = null, null $endOffset = null, null $duration = null)

Trims a video (and discards the rest).

concatenate(VideoSource|string $videoSource)

Concatenates another video or image.

preview(int $duration = null)

Generates an excerpt of the video based on Cloudinary's AI-powered preview algorithm, which identifies the most interesting video chunks from a video and uses these to generate a video preview.

volume(int|Volume $level)

Increases or decreases the volume by a percentage of the current volume.

Details

static Timeline trim(null $startOffset = null, null $endOffset = null, null $duration = null)

Trims a video (and discards the rest).

Parameters

Name Type Description
$startOffset null
$endOffset null
$duration null

Return Value

Timeline

See also

https://cloudinary.com/documentation/video_manipulation_and_delivery#trimming_videos

static Concatenate concatenate(VideoSource|string $videoSource)

Concatenates another video or image.

Parameters

Name Type Description
$videoSource VideoSource|string The source to concatenate.

Return Value

Concatenate

See also

https://cloudinary.com/documentation/video_manipulation_and_delivery#concatenating_videos

static Preview preview(int $duration = null)

Generates an excerpt of the video based on Cloudinary's AI-powered preview algorithm, which identifies the most interesting video chunks from a video and uses these to generate a video preview.

Parameters

Name Type Description
$duration int The duration of the excerpt in seconds (Server default: 5 seconds).

Return Value

Preview

static EffectAction volume(int|Volume $level)

Increases or decreases the volume by a percentage of the current volume.

Also see \Cloudinary\Transformation\Volume for different ways to change the volume.

Parameters

Name Type Description
$level int|Volume The percentage change of volume (Range: -100 to 400).

Return Value

EffectAction

See also

Volume