commonMain.aws.sdk.kotlin.services.mediaconvert.model.MpdAudioDuration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mediaconvert-jvm Show documentation
Show all versions of mediaconvert-jvm Show documentation
The AWS SDK for Kotlin client for MediaConvert
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediaconvert.model
import kotlin.collections.List
/**
* Specify this setting only when your output will be consumed by a downstream repackaging workflow that is sensitive to very small duration differences between video and audio. For this situation, choose Match video duration. In all other cases, keep the default value, Default codec duration. When you choose Match video duration, MediaConvert pads the output audio streams with silence or trims them to ensure that the total duration of each audio stream is at least as long as the total duration of the video stream. After padding or trimming, the audio stream duration is no more than one frame longer than the video stream. MediaConvert applies audio padding or trimming only to the end of the last segment of the output. For unsegmented outputs, MediaConvert adds padding only to the end of the file. When you keep the default value, any minor discrepancies between audio and video duration will depend on your output audio codec.
*/
public sealed class MpdAudioDuration {
public abstract val value: kotlin.String
public object DefaultCodecDuration : aws.sdk.kotlin.services.mediaconvert.model.MpdAudioDuration() {
override val value: kotlin.String = "DEFAULT_CODEC_DURATION"
override fun toString(): kotlin.String = "DefaultCodecDuration"
}
public object MatchVideoDuration : aws.sdk.kotlin.services.mediaconvert.model.MpdAudioDuration() {
override val value: kotlin.String = "MATCH_VIDEO_DURATION"
override fun toString(): kotlin.String = "MatchVideoDuration"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.MpdAudioDuration() {
override fun toString(): kotlin.String = "SdkUnknown($value)"
}
public companion object {
/**
* Convert a raw value to one of the sealed variants or [SdkUnknown]
*/
public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.mediaconvert.model.MpdAudioDuration = when (value) {
"DEFAULT_CODEC_DURATION" -> DefaultCodecDuration
"MATCH_VIDEO_DURATION" -> MatchVideoDuration
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
DefaultCodecDuration,
MatchVideoDuration,
)
}
}