TimecodeConfig

class aws_cdk.aws_medialive_alpha.TimecodeConfig(*, source=None, sync_threshold=None)

Bases: object

(experimental) Timecode configuration for the channel.

Parameters:
  • source (Optional[TimecodeSource]) – (experimental) The source of timecode. Default: TimecodeSource.EMBEDDED

  • sync_threshold (Union[int, float, None]) – (experimental) The threshold in frames beyond which output timecode is resynchronized to the input timecode. Default: - no sync threshold

Stability:

experimental

ExampleMetadata:

infused

Example:

# stack: Stack
# input: medialive.IInput
# bucket: s3.IBucket
# video: medialive.EncodeConfiguration
# audio: medialive.EncodeConfiguration


medialive.Channel(stack, "Channel",
    inputs=[medialive.InputAttachment(input=input)],
    timecode_config=medialive.TimecodeConfig(
        source=medialive.TimecodeSource.EMBEDDED
    ),
    global_configuration=medialive.GlobalConfiguration(
        output_locking=medialive.OutputLocking.epoch(),
        output_timing_source=medialive.OutputTimingSource.INPUT_CLOCK
    ),
    output_groups=[
        medialive.OutputGroupConfiguration.hls(
            name="hls",
            destinations=[medialive.OutputDestination.to_bucket(bucket, "live/stream")],
            outputs=[medialive.HlsOutputDefinition(encodes=[video, audio], output_name="hls_out")]
        )
    ]
)

Attributes

source

(experimental) The source of timecode.

Default:

TimecodeSource.EMBEDDED

Stability:

experimental

sync_threshold

(experimental) The threshold in frames beyond which output timecode is resynchronized to the input timecode.

Default:
  • no sync threshold

Stability:

experimental