LiveEventEncoding Class

  • java.lang.Object
    • com.microsoft.azure.management.mediaservices.v2020_05_01.LiveEventEncoding

public class LiveEventEncoding

Specifies the live event type and optional encoding settings for encoding live events.

Constructor Summary

Constructor Description
LiveEventEncoding()

Method Summary

Modifier and Type Method and Description
LiveEventEncodingType encodingType()

Get live event type.

org.joda.time.Period keyFrameInterval()

Get use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event.

java.lang.String presetName()

Get the optional encoding preset name, used when encodingType is not None.

StretchMode stretchMode()

Get specifies how the input video will be resized to fit the desired output resolution(s).

LiveEventEncoding withEncodingType(LiveEventEncodingType encodingType)

Set live event type.

LiveEventEncoding withKeyFrameInterval(Period keyFrameInterval)

Set use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event.

LiveEventEncoding withPresetName(String presetName)

Set the optional encoding preset name, used when encodingType is not None.

LiveEventEncoding withStretchMode(StretchMode stretchMode)

Set specifies how the input video will be resized to fit the desired output resolution(s).

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

LiveEventEncoding

public LiveEventEncoding()

Method Details

encodingType

public LiveEventEncodingType encodingType()

Get live event type. When encodingType is set to None, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. See https://go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot be modified after the live event is created. Possible values include: 'None', 'Standard', 'Premium1080p'.

Returns:

the encodingType value

keyFrameInterval

public Period keyFrameInterval()

Get use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). If this value is not set for an encoding live event, the fragment duration defaults to 2 seconds. The value cannot be set for pass-through live events.

Returns:

the keyFrameInterval value

presetName

public String presetName()

Get the optional encoding preset name, used when encodingType is not None. This value is specified at creation time and cannot be updated. If the encodingType is set to Standard, then the default preset name is ‘Default720p’. Else if the encodingType is set to Premium1080p, the default preset is ‘Default1080p’.

Returns:

the presetName value

stretchMode

public StretchMode stretchMode()

Get specifies how the input video will be resized to fit the desired output resolution(s). Default is None. Possible values include: 'None', 'AutoSize', 'AutoFit'.

Returns:

the stretchMode value

withEncodingType

public LiveEventEncoding withEncodingType(LiveEventEncodingType encodingType)

Set live event type. When encodingType is set to None, the service simply passes through the incoming video and audio layer(s) to the output. When encodingType is set to Standard or Premium1080p, a live encoder transcodes the incoming stream into multiple bitrates or layers. See https://go.microsoft.com/fwlink/?linkid=2095101 for more information. This property cannot be modified after the live event is created. Possible values include: 'None', 'Standard', 'Premium1080p'.

Parameters:

encodingType - the encodingType value to set

Returns:

the LiveEventEncoding object itself.

withKeyFrameInterval

public LiveEventEncoding withKeyFrameInterval(Period keyFrameInterval)

Set use an ISO 8601 time value between 0.5 to 20 seconds to specify the output fragment length for the video and audio tracks of an encoding live event. For example, use PT2S to indicate 2 seconds. For the video track it also defines the key frame interval, or the length of a GoP (group of pictures). If this value is not set for an encoding live event, the fragment duration defaults to 2 seconds. The value cannot be set for pass-through live events.

Parameters:

keyFrameInterval - the keyFrameInterval value to set

Returns:

the LiveEventEncoding object itself.

withPresetName

public LiveEventEncoding withPresetName(String presetName)

Set the optional encoding preset name, used when encodingType is not None. This value is specified at creation time and cannot be updated. If the encodingType is set to Standard, then the default preset name is ‘Default720p’. Else if the encodingType is set to Premium1080p, the default preset is ‘Default1080p’.

Parameters:

presetName - the presetName value to set

Returns:

the LiveEventEncoding object itself.

withStretchMode

public LiveEventEncoding withStretchMode(StretchMode stretchMode)

Set specifies how the input video will be resized to fit the desired output resolution(s). Default is None. Possible values include: 'None', 'AutoSize', 'AutoFit'.

Parameters:

stretchMode - the stretchMode value to set

Returns:

the LiveEventEncoding object itself.

Applies to