Interface DynamicHlsApiGetHlsVideoSegmentRequest

Request parameters for getHlsVideoSegment operation in DynamicHlsApi.

DynamicHlsApiGetHlsVideoSegmentRequest

interface DynamicHlsApiGetHlsVideoSegmentRequest {
    _static?: boolean;
    actualSegmentLengthTicks: number;
    allowAudioStreamCopy?: boolean;
    allowVideoStreamCopy?: boolean;
    alwaysBurnInSubtitleWhenTranscoding?: boolean;
    audioBitRate?: number;
    audioChannels?: number;
    audioCodec?: string;
    audioSampleRate?: number;
    audioStreamIndex?: number;
    breakOnNonKeyFrames?: boolean;
    container: string;
    context?: EncodingContext;
    copyTimestamps?: boolean;
    cpuCoreLimit?: number;
    deInterlace?: boolean;
    deviceId?: string;
    deviceProfileId?: string;
    enableAudioVbrEncoding?: boolean;
    enableAutoStreamCopy?: boolean;
    enableMpegtsM2TsMode?: boolean;
    framerate?: number;
    height?: number;
    itemId: string;
    level?: string;
    liveStreamId?: string;
    maxAudioBitDepth?: number;
    maxAudioChannels?: number;
    maxFramerate?: number;
    maxHeight?: number;
    maxRefFrames?: number;
    maxVideoBitDepth?: number;
    maxWidth?: number;
    mediaSourceId?: string;
    minSegments?: number;
    params?: string;
    playlistId: string;
    playSessionId?: string;
    profile?: string;
    requireAvc?: boolean;
    requireNonAnamorphic?: boolean;
    runtimeTicks: number;
    segmentContainer?: string;
    segmentId: number;
    segmentLength?: number;
    startTimeTicks?: number;
    streamOptions?: {
        [key: string]: string;
    };
    subtitleCodec?: string;
    subtitleMethod?: SubtitleDeliveryMethod;
    subtitleStreamIndex?: number;
    tag?: string;
    transcodeReasons?: string;
    transcodingMaxAudioChannels?: number;
    videoBitRate?: number;
    videoCodec?: string;
    videoStreamIndex?: number;
    width?: number;
}

Properties

_static?: boolean

Optional. If true, the original file will be streamed statically without any encoding. Use either no url extension or the original file extension. true/false.

DynamicHlsApiGetHlsVideoSegment

actualSegmentLengthTicks: number

The length of the requested segment in ticks.

DynamicHlsApiGetHlsVideoSegment

allowAudioStreamCopy?: boolean

Whether or not to allow copying of the audio stream url.

DynamicHlsApiGetHlsVideoSegment

allowVideoStreamCopy?: boolean

Whether or not to allow copying of the video stream url.

DynamicHlsApiGetHlsVideoSegment

alwaysBurnInSubtitleWhenTranscoding?: boolean

Whether to always burn in subtitles when transcoding.

DynamicHlsApiGetHlsVideoSegment

audioBitRate?: number

Optional. Specify an audio bitrate to encode to, e.g. 128000. If omitted this will be left to encoder defaults.

DynamicHlsApiGetHlsVideoSegment

audioChannels?: number

Optional. Specify a specific number of audio channels to encode to, e.g. 2.

DynamicHlsApiGetHlsVideoSegment

audioCodec?: string

Optional. Specify an audio codec to encode to, e.g. mp3.

DynamicHlsApiGetHlsVideoSegment

audioSampleRate?: number

Optional. Specify a specific audio sample rate, e.g. 44100.

DynamicHlsApiGetHlsVideoSegment

audioStreamIndex?: number

Optional. The index of the audio stream to use. If omitted the first audio stream will be used.

DynamicHlsApiGetHlsVideoSegment

breakOnNonKeyFrames?: boolean

Optional. Whether to break on non key frames.

DynamicHlsApiGetHlsVideoSegment

container: string

The video container. Possible values are: ts, webm, asf, wmv, ogv, mp4, m4v, mkv, mpeg, mpg, avi, 3gp, wmv, wtv, m2ts, mov, iso, flv.

DynamicHlsApiGetHlsVideoSegment

context?: EncodingContext

Optional. The MediaBrowser.Model.Dlna.EncodingContext.

DynamicHlsApiGetHlsVideoSegment

copyTimestamps?: boolean

Whether or not to copy timestamps when transcoding with an offset. Defaults to false.

DynamicHlsApiGetHlsVideoSegment

cpuCoreLimit?: number

Optional. The limit of how many cpu cores to use.

DynamicHlsApiGetHlsVideoSegment

deInterlace?: boolean

Optional. Whether to deinterlace the video.

DynamicHlsApiGetHlsVideoSegment

deviceId?: string

The device id of the client requesting. Used to stop encoding processes when needed.

DynamicHlsApiGetHlsVideoSegment

deviceProfileId?: string

Optional. The dlna device profile id to utilize.

DynamicHlsApiGetHlsVideoSegment

enableAudioVbrEncoding?: boolean

Optional. Whether to enable Audio Encoding.

DynamicHlsApiGetHlsVideoSegment

enableAutoStreamCopy?: boolean

Whether or not to allow automatic stream copy if requested values match the original source. Defaults to true.

DynamicHlsApiGetHlsVideoSegment

enableMpegtsM2TsMode?: boolean

Optional. Whether to enable the MpegtsM2Ts mode.

DynamicHlsApiGetHlsVideoSegment

framerate?: number

Optional. A specific video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.

DynamicHlsApiGetHlsVideoSegment

height?: number

Optional. The fixed vertical resolution of the encoded video.

DynamicHlsApiGetHlsVideoSegment

itemId: string

The item id.

DynamicHlsApiGetHlsVideoSegment

level?: string

Optional. Specify a level for the encoder profile (varies by encoder), e.g. 3, 3.1.

DynamicHlsApiGetHlsVideoSegment

liveStreamId?: string

The live stream id.

DynamicHlsApiGetHlsVideoSegment

maxAudioBitDepth?: number

Optional. The maximum audio bit depth.

DynamicHlsApiGetHlsVideoSegment

maxAudioChannels?: number

Optional. Specify a maximum number of audio channels to encode to, e.g. 2.

DynamicHlsApiGetHlsVideoSegment

maxFramerate?: number

Optional. A specific maximum video framerate to encode to, e.g. 23.976. Generally this should be omitted unless the device has specific requirements.

DynamicHlsApiGetHlsVideoSegment

maxHeight?: number

Optional. The maximum vertical resolution of the encoded video.

DynamicHlsApiGetHlsVideoSegment

maxRefFrames?: number

Optional.

DynamicHlsApiGetHlsVideoSegment

maxVideoBitDepth?: number

Optional. The maximum video bit depth.

DynamicHlsApiGetHlsVideoSegment

maxWidth?: number

Optional. The maximum horizontal resolution of the encoded video.

DynamicHlsApiGetHlsVideoSegment

mediaSourceId?: string

The media version id, if playing an alternate version.

DynamicHlsApiGetHlsVideoSegment

minSegments?: number

The minimum number of segments.

DynamicHlsApiGetHlsVideoSegment

params?: string

The streaming parameters.

DynamicHlsApiGetHlsVideoSegment

playlistId: string

The playlist id.

DynamicHlsApiGetHlsVideoSegment

playSessionId?: string

The play session id.

DynamicHlsApiGetHlsVideoSegment

profile?: string

Optional. Specify a specific an encoder profile (varies by encoder), e.g. main, baseline, high.

DynamicHlsApiGetHlsVideoSegment

requireAvc?: boolean

Optional. Whether to require avc.

DynamicHlsApiGetHlsVideoSegment

requireNonAnamorphic?: boolean

Optional. Whether to require a non anamorphic stream.

DynamicHlsApiGetHlsVideoSegment

runtimeTicks: number

The position of the requested segment in ticks.

DynamicHlsApiGetHlsVideoSegment

segmentContainer?: string

The segment container.

DynamicHlsApiGetHlsVideoSegment

segmentId: number

The segment id.

DynamicHlsApiGetHlsVideoSegment

segmentLength?: number

The desired segment length.

DynamicHlsApiGetHlsVideoSegment

startTimeTicks?: number

Optional. Specify a starting offset, in ticks. 1 tick = 10000 ms.

DynamicHlsApiGetHlsVideoSegment

streamOptions?: {
    [key: string]: string;
}

Optional. The streaming options.

DynamicHlsApiGetHlsVideoSegment

subtitleCodec?: string

Optional. Specify a subtitle codec to encode to.

DynamicHlsApiGetHlsVideoSegment

subtitleMethod?: SubtitleDeliveryMethod

Optional. Specify the subtitle delivery method.

DynamicHlsApiGetHlsVideoSegment

subtitleStreamIndex?: number

Optional. The index of the subtitle stream to use. If omitted no subtitles will be used.

DynamicHlsApiGetHlsVideoSegment

tag?: string

The tag.

DynamicHlsApiGetHlsVideoSegment

transcodeReasons?: string

Optional. The transcoding reason.

DynamicHlsApiGetHlsVideoSegment

transcodingMaxAudioChannels?: number

Optional. The maximum number of audio channels to transcode.

DynamicHlsApiGetHlsVideoSegment

videoBitRate?: number

Optional. Specify a video bitrate to encode to, e.g. 500000. If omitted this will be left to encoder defaults.

DynamicHlsApiGetHlsVideoSegment

videoCodec?: string

Optional. Specify a video codec to encode to, e.g. h264.

DynamicHlsApiGetHlsVideoSegment

videoStreamIndex?: number

Optional. The index of the video stream to use. If omitted the first video stream will be used.

DynamicHlsApiGetHlsVideoSegment

width?: number

Optional. The fixed horizontal resolution of the encoded video.

DynamicHlsApiGetHlsVideoSegment