TranscodingProfile

@Serializable
data class TranscodingProfile(val container: String, val type: DlnaProfileType, val videoCodec: String, val audioCodec: String, val protocol: MediaStreamProtocol, val estimateContentLength: Boolean = false, val enableMpegtsM2TsMode: Boolean = false, val transcodeSeekInfo: TranscodeSeekInfo = TranscodeSeekInfo.AUTO, val copyTimestamps: Boolean = false, val context: EncodingContext = EncodingContext.STREAMING, val enableSubtitlesInManifest: Boolean = false, val maxAudioChannels: String? = null, val minSegments: Int = 0, val segmentLength: Int = 0, val breakOnNonKeyFrames: Boolean = false, val conditions: List<ProfileCondition>, val enableAudioVbrEncoding: Boolean = true)

A class for transcoding profile information. Note for client developers: Conditions defined in MediaBrowser.Model.Dlna.CodecProfile has higher priority and can override values defined here.

Constructors

Link copied to clipboard
constructor(container: String, type: DlnaProfileType, videoCodec: String, audioCodec: String, protocol: MediaStreamProtocol, estimateContentLength: Boolean = false, enableMpegtsM2TsMode: Boolean = false, transcodeSeekInfo: TranscodeSeekInfo = TranscodeSeekInfo.AUTO, copyTimestamps: Boolean = false, context: EncodingContext = EncodingContext.STREAMING, enableSubtitlesInManifest: Boolean = false, maxAudioChannels: String? = null, minSegments: Int = 0, segmentLength: Int = 0, breakOnNonKeyFrames: Boolean = false, conditions: List<ProfileCondition>, enableAudioVbrEncoding: Boolean = true)

Properties

Link copied to clipboard
@SerialName(value = "AudioCodec")
val audioCodec: String

The audio codec.

Link copied to clipboard
@SerialName(value = "BreakOnNonKeyFrames")
val breakOnNonKeyFrames: Boolean

A value indicating whether breaking the video stream on non-keyframes is supported.

Link copied to clipboard
@SerialName(value = "Conditions")
val conditions: List<ProfileCondition>

The profile conditions.

Link copied to clipboard
@SerialName(value = "Container")
val container: String

The container.

Link copied to clipboard
@SerialName(value = "Context")
val context: EncodingContext

The encoding context.

Link copied to clipboard
@SerialName(value = "CopyTimestamps")
val copyTimestamps: Boolean

A value indicating whether timestamps should be copied.

Link copied to clipboard
@SerialName(value = "EnableAudioVbrEncoding")
val enableAudioVbrEncoding: Boolean

A value indicating whether variable bitrate encoding is supported.

Link copied to clipboard
@SerialName(value = "EnableMpegtsM2TsMode")
val enableMpegtsM2TsMode: Boolean

A value indicating whether M2TS mode is enabled.

Link copied to clipboard
@SerialName(value = "EnableSubtitlesInManifest")
val enableSubtitlesInManifest: Boolean

A value indicating whether subtitles are allowed in the manifest.

Link copied to clipboard
@SerialName(value = "EstimateContentLength")
val estimateContentLength: Boolean

A value indicating whether the content length should be estimated.

Link copied to clipboard
@SerialName(value = "MaxAudioChannels")
val maxAudioChannels: String?

The maximum audio channels.

Link copied to clipboard
@SerialName(value = "MinSegments")
val minSegments: Int

The minimum amount of segments.

Link copied to clipboard
@SerialName(value = "Protocol")
val protocol: MediaStreamProtocol

The protocol.

Link copied to clipboard
@SerialName(value = "SegmentLength")
val segmentLength: Int

The segment length.

Link copied to clipboard
@SerialName(value = "TranscodeSeekInfo")
val transcodeSeekInfo: TranscodeSeekInfo

The transcoding seek info mode.

Link copied to clipboard
@SerialName(value = "Type")
val type: DlnaProfileType

The DLNA profile type.

Link copied to clipboard
@SerialName(value = "VideoCodec")
val videoCodec: String

The video codec.