SourceNdi

class aws_cdk.aws_mediaconnect_alpha.SourceNdi(*, description=None, flow_source_name=None, source_name=None)

Bases: object

(experimental) Configuration for NDI (SpeedHQ) source.

NDI sources are ingested from NDI senders inside your VPC. The flow must be configured with flowSize: FlowSize.LARGE and ndiConfig.ndiState = ENABLED with at least one NDI discovery server. The VPC connectivity for NDI is configured on the discovery server entries in NdiConfig, not on the source itself.

Parameters:
  • description (Optional[str]) – (experimental) A description of the source. This description appears only on the MediaConnect console and will not be seen by the end user. Default: - no description

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

  • source_name (Optional[str]) – (experimental) The exact name of an existing NDI sender that’s registered with your discovery server. If included, the format of this name must be MACHINENAME (ProgramName). If not specified, you can select the upstream NDI sender from the console after starting the flow. Default: - select the NDI sender after starting the flow

Stability:

experimental

ExampleMetadata:

infused

Example:

from aws_cdk.aws_mediaconnect_alpha import NdiConfig, NdiDiscoveryServerConfig, EncodingConfig, MediaStreamSourceConfigurationCdi
# stack: Stack
# ndi_vpc_interface: VpcInterfaceConfig
# efa_interface: VpcInterfaceConfig
# video_stream: MediaStream


# NDI requires LARGE, an encoding profile, and at least one discovery server
Flow(stack, "NdiFlow",
    flow_size=FlowSize.LARGE,
    ndi_config=NdiConfig(
        ndi_state=State.ENABLED,
        ndi_discovery_servers=[NdiDiscoveryServerConfig(
            discovery_server_address="10.0.0.10",
            vpc_interface=ndi_vpc_interface
        )]
    ),
    encoding_config=EncodingConfig(
        encoding_profile=EncodingProfile.CONTRIBUTION_H264_DEFAULT
    ),
    source=SourceConfiguration.ndi(
        flow_source_name="ndi-source"
    )
)

# CDI and JPEG XS require LARGE_4X
Flow(stack, "CdiFlow",
    flow_size=FlowSize.LARGE_4X,
    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

description

(experimental) A description of the source.

This description appears only on the MediaConnect console and will not be seen by the end user.

Default:
  • no description

Stability:

experimental

flow_source_name

(experimental) The name of the source.

Default:
  • a name is generated automatically

Stability:

experimental

source_name

(experimental) The exact name of an existing NDI sender that’s registered with your discovery server.

If included, the format of this name must be MACHINENAME (ProgramName).

If not specified, you can select the upstream NDI sender from the console after starting the flow.

Default:
  • select the NDI sender after starting the flow

Stability:

experimental