SourceCdi

class aws_cdk.aws_mediaconnect_alpha.SourceCdi(*, max_sync_buffer, media_stream_source_configurations, port, vpc_interface, flow_source_name=None)

Bases: object

(experimental) Configuration for CDI.

Parameters:
  • max_sync_buffer (Union[int, float]) – (experimental) The size of the buffer (in ms) to use to sync incoming source data. Required by the MediaConnect service for CDI sources.

  • media_stream_source_configurations (Sequence[Union[MediaStreamSourceConfigurationCdi, Dict[str, Any]]]) – (experimental) The media stream that is associated with the source, and the parameters for that association.

  • port (Union[int, float]) – (experimental) The port that the flow will be listening on for incoming content.

  • vpc_interface (Union[VpcInterfaceConfig, Dict[str, Any]]) – (experimental) The VPC interface attachment to use for this bridge source.

  • flow_source_name (Optional[str]) – (experimental) The name of the source. Default: - a name is generated automatically

Stability:

experimental

ExampleMetadata:

infused

Example:

from aws_cdk.aws_mediaconnect_alpha import FmtpVideo, MediaStreamSourceConfigurationCdi
# stack: Stack
# role: iam.IRole
# security_group: ec2.ISecurityGroup
# subnet: ec2.ISubnet


efa_interface = VpcInterface.define(
    vpc_interface_name="efa-interface",
    role=role,
    security_groups=[security_group],
    subnet=subnet,
    network_interface_type=NetworkInterface.EFA
)

video_stream = MediaStream.video(
    media_stream_id=1,
    media_stream_name="video",
    video_format=MediaVideoFormat.HD_1080P,
    fmtp=FmtpVideo(
        exact_framerate=Framerate.FPS_29_97,
        par=PixelAspectRatio.SQUARE
    )
)

flow = Flow(stack, "MyCdiFlow",
    flow_size=FlowSize.LARGE_4X,  # Required for CDI and JPEG XS
    vpc_interfaces=[efa_interface],
    media_streams=[video_stream],
    source=SourceConfiguration.cdi(
        flow_source_name="cdi-source",
        vpc_interface=efa_interface,
        port=5000,
        max_sync_buffer=100,
        media_stream_source_configurations=[MediaStreamSourceConfigurationCdi(
            encoding=Encoding.RAW,
            media_stream=video_stream
        )]
    )
)

Attributes

flow_source_name

(experimental) The name of the source.

Default:
  • a name is generated automatically

Stability:

experimental

max_sync_buffer

(experimental) The size of the buffer (in ms) to use to sync incoming source data.

Required by the MediaConnect service for CDI sources.

Stability:

experimental

media_stream_source_configurations

(experimental) The media stream that is associated with the source, and the parameters for that association.

Stability:

experimental

port

(experimental) The port that the flow will be listening on for incoming content.

Stability:

experimental

vpc_interface

(experimental) The VPC interface attachment to use for this bridge source.

Stability:

experimental