VideoMetadata

@Serializable
data class VideoMetadata(val endOffset: Duration? = null, val fps: Double? = null, val startOffset: Duration? = null)

Provides metadata for a video, including the start and end offsets for clipping and the frame rate.

Constructors

Link copied to clipboard
constructor(endOffset: Duration? = null, fps: Double? = null, startOffset: Duration? = null)

Properties

Link copied to clipboard
@Serializable(with = DurationStringSerializer::class)
val endOffset: Duration? = null

Optional. The end offset of the video.

Link copied to clipboard
val fps: Double? = null

Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].

Link copied to clipboard
@Serializable(with = DurationStringSerializer::class)
val startOffset: Duration? = null

Optional. The start offset of the video.