Skip to content
v2.273.0

Experimental

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

ScanMode Class ​

Options for Scan Mode.

Example ​

ts
declare const stack: Stack;
declare const role: iam.IRole;
declare const sg1: ec2.ISecurityGroup;
declare const sg2: ec2.ISecurityGroup;
declare const subnet: ec2.ISubnet;

const efaInterface = VpcInterface.define({
  vpcInterfaceName: 'efa-interface',
  role: role,
  securityGroups: [sg1],
  subnet: subnet,
  networkInterfaceType: NetworkInterface.EFA,
});

const enaInterface = VpcInterface.define({
  vpcInterfaceName: 'ena-interface',
  role: role,
  securityGroups: [sg2],
  subnet: subnet,
  networkInterfaceType: NetworkInterface.ENA,
});

const videoStream = MediaStream.video({
  mediaStreamId: 1,
  mediaStreamName: 'video',
  videoFormat: MediaVideoFormat.UHD_2160P,
  fmtp: {
    exactFramerate: Framerate.FPS_59_94,
    par: PixelAspectRatio.SQUARE,
    colorimetry: Colorimetry.BT2020,
    videoRange: VideoRange.FULL,
    scanMode: ScanMode.PROGRESSIVE,
    tcs: Tcs.PQ,
  },
});

const flow = new Flow(stack, 'MyJpegXsFlow', {
  flowSize: FlowSize.LARGE_4X,  // Required for JPEG XS
  vpcInterfaces: [efaInterface, enaInterface],
  mediaStreams: [videoStream],
  source: SourceConfiguration.jpegXs({
    flowSourceName: 'jpegxs-source',
    maxSyncBuffer: 100,
    mediaStreamSourceConfigurations: [{
      encoding: Encoding.JXSV,
      port: 5000,
      inputInterface: [efaInterface, enaInterface],  // 2 interfaces for redundancy
      mediaStream: videoStream,
    }],
  }),
});

Properties ​

INTERLACEScanModeinterlaceScanModeINTERLACEScanModeINTERLACEScanModeINTERLACEScanModerequiredstatic#
Option for Interlace.
PROGRESSIVEScanModeprogressiveScanModePROGRESSIVEScanModePROGRESSIVEScanModePROGRESSIVEScanModerequiredstatic#
Option for Progressive.
PROGRESSIVE_SEGMENTED_FRAMEScanModeprogressive_segmented_frameScanModePROGRESSIVE_SEGMENTED_FRAMEScanModePROGRESSIVE_SEGMENTED_FRAMEScanModePROGRESSIVE_SEGMENTED_FRAMEScanModerequiredstatic#
Option for Progressive Segmented Frame.
valuestringvaluestrvalueStringValuestringValue*stringrequired#
The scan mode string value.

Methods ​

of(value: string): ScanMode // chainable@staticmethod def of(value: str) -> ScanModepublic static ScanMode of(String value)public static ScanMode Of(string value)func Of(Value *string) ScanModestatic#
Use a custom scan mode value.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string#
Returns the string value.