PresetWatermark

Settings for the size, location, and opacity of graphics that you want Elastic Transcoder to overlay over videos that are transcoded using this preset. You can specify settings for up to four watermarks. Watermarks appear in the specified size and location, and with the specified opacity for the duration of the transcoded video.

Watermarks can be in .png or .jpg format. If you want to display a watermark that is not rectangular, use the .png format, which supports transparency.

When you create a job that uses this preset, you specify the .png or .jpg graphics that you want Elastic Transcoder to include in the transcoded videos. You can specify fewer graphics in the job than you specify watermark settings in the preset, which allows you to use the same preset for up to four watermarks that have different dimensions.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The horizontal position of the watermark unless you specify a non-zero value for HorizontalOffset:

Link copied to clipboard

The amount by which you want the horizontal position of the watermark to be offset from the position specified by HorizontalAlign:

Link copied to clipboard
val id: String?

A unique identifier for the settings for one watermark. The value of Id can be up to 40 characters long.

Link copied to clipboard

The maximum height of the watermark in one of the following formats:

Link copied to clipboard

The maximum width of the watermark in one of the following formats:

Link copied to clipboard

A percentage that indicates how much you want a watermark to obscure the video in the location where it appears. Valid values are 0 (the watermark is invisible) to 100 (the watermark completely obscures the video in the specified location). The datatype of Opacity is float.

Link copied to clipboard

A value that controls scaling of the watermark:

Link copied to clipboard

A value that determines how Elastic Transcoder interprets values that you specified for HorizontalOffset, VerticalOffset, MaxWidth, and MaxHeight:

Link copied to clipboard

The vertical position of the watermark unless you specify a non-zero value for VerticalOffset:

Link copied to clipboard

VerticalOffset

Functions

Link copied to clipboard
inline fun copy(block: PresetWatermark.Builder.() -> Unit = {}): PresetWatermark
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String