trait VideoAppearanceEffectTrait

Trait VideoAppearanceEffectTrait

Methods

deshake(int $shakeStrength = null)

Removes small motion shifts from the video. with a maximum extent of movement in the horizontal and vertical direction of 32 pixels

fadeIn(int $duration = null)

Fade in at the beginning of the video.

fadeOut(int $duration = null)

Fade out at the end of the video.

noise(int $percentage = null)

Adds visual noise to the video, visible as a random flicker of "dots" or "snow".

Details

static Deshake deshake(int $shakeStrength = null)

Removes small motion shifts from the video. with a maximum extent of movement in the horizontal and vertical direction of 32 pixels

Parameters

Name Type Description
$shakeStrength int The maximum number of pixels in the horizontal and vertical direction that will be addressed. (Possible values: 16, 32, 48, 64. Server default: 16)

Return Value

Deshake

static DurationEffectAction fadeIn(int $duration = null)

Fade in at the beginning of the video.

For details and examples, see 'Fade in and out' in the Video Transformations guide.

Parameters

Name Type Description
$duration int The time in ms for the fade to occur. (Server default: 1000)

Return Value

DurationEffectAction

See also

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

static DurationEffectAction fadeOut(int $duration = null)

Fade out at the end of the video.

For details and examples, see 'Fade in and out' in the Video Transformations guide.

Parameters

Name Type Description
$duration int The time in ms for the fade to occur.

Return Value

DurationEffectAction

See also

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

static EffectAction noise(int $percentage = null)

Adds visual noise to the video, visible as a random flicker of "dots" or "snow".

Parameters

Name Type Description
$percentage int The percent of noise to apply. (Range: 0 to 100 Server default: 0)

Return Value

EffectAction