Skip to content
v2.275.0

Experimental

@aws-cdk/aws-medialive-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

TimecodeConfig Struct ​

Timecode configuration for the channel.

Example ​

ts
declare const stack: Stack;
declare const input: medialive.IInput;
declare const bucket: s3.IBucket;
declare const video: medialive.EncodeConfiguration;
declare const audio: medialive.EncodeConfiguration;

new medialive.Channel(stack, 'Channel', {
  inputs: [{ input }],
  timecodeConfig: {
    source: medialive.TimecodeSource.EMBEDDED,
  },
  globalConfiguration: {
    outputLocking: medialive.OutputLocking.epoch(),
    outputTimingSource: medialive.OutputTimingSource.INPUT_CLOCK,
  },
  outputGroups: [
    medialive.OutputGroupConfiguration.hls({
      name: 'hls',
      destinations: [medialive.OutputDestination.toBucket(bucket, 'live/stream')],
      outputs: [{ encodes: [video, audio], outputName: 'hls_out' }],
    }),
  ],
});

Properties ​

sourceoptionalTimecodeSourcesourceoptionalTimecodeSourcesourceoptionalTimecodeSourceSourceoptionalTimecodeSourceSourceoptionalTimecodeSource= TimecodeSource.EMBEDDED#
The source of timecode.
syncThresholdoptionalnumbersync_thresholdoptionalint | floatsyncThresholdoptionalNumberSyncThresholdoptionaldoubleSyncThresholdoptional*float64#
The threshold in frames beyond which output timecode is resynchronized to the input timecode.

Default: no sync threshold