MediaStreamVideo

class aws_cdk.aws_mediaconnect_alpha.MediaStreamVideo(*, media_stream_id, media_stream_name, description=None, fmtp, video_format, clock_rate=None, fmt=None)

Bases: MediaStreamBase

(experimental) A media stream represents one component of your content, such as video, audio, or ancillary data.

After you add a media stream to your flow, you can associate it with sources and outputs that use the ST 2110 JPEG XS or CDI protocol.

Parameters:
  • media_stream_id (Union[int, float]) – (experimental) A unique identifier for the media stream.

  • media_stream_name (str) – (experimental) A name that helps you distinguish one media stream from another.

  • description (Optional[str]) – (experimental) A description that can help you quickly identify what your media stream is used for. Default: - no description

  • fmtp (Union[FmtpVideo, Dict[str, Any]]) – (experimental) Attributes that are related to the media stream.

  • video_format (MediaVideoFormat) – (experimental) The resolution of the video.

  • clock_rate (Union[int, float, None]) – (experimental) The sample rate for the stream. This value is measured in Hz. Default: - default clock rate for the media stream type

  • fmt (Union[int, float, None]) – (experimental) The format type number (sometimes referred to as RTP payload type) of the media stream. MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need to provide this value to the receiver. Default: - assigned by MediaConnect

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

clock_rate

(experimental) The sample rate for the stream.

This value is measured in Hz.

Default:
  • default clock rate for the media stream type

Stability:

experimental

description

(experimental) A description that can help you quickly identify what your media stream is used for.

Default:
  • no description

Stability:

experimental

fmt

(experimental) The format type number (sometimes referred to as RTP payload type) of the media stream.

MediaConnect assigns this value to the media stream. For ST 2110 JPEG XS outputs, you need to provide this value to the receiver.

Default:
  • assigned by MediaConnect

Stability:

experimental

fmtp

(experimental) Attributes that are related to the media stream.

Stability:

experimental

media_stream_id

(experimental) A unique identifier for the media stream.

Stability:

experimental

media_stream_name

(experimental) A name that helps you distinguish one media stream from another.

Stability:

experimental

video_format

(experimental) The resolution of the video.

Stability:

experimental