MediaVideoFormat

class aws_cdk.aws_mediaconnect_alpha.MediaVideoFormat(*args: Any, **kwargs)

Bases: object

(experimental) Options for Media Video format.

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
        )]
    )
)

Methods

to_string()

(experimental) Returns the string value.

Stability:

experimental

Return type:

str

Attributes

HD_1080_I = <aws_cdk.aws_mediaconnect_alpha.MediaVideoFormat object>
HD_1080_P = <aws_cdk.aws_mediaconnect_alpha.MediaVideoFormat object>
HD_720_P = <aws_cdk.aws_mediaconnect_alpha.MediaVideoFormat object>
SD_480_P = <aws_cdk.aws_mediaconnect_alpha.MediaVideoFormat object>
UHD_2160_P = <aws_cdk.aws_mediaconnect_alpha.MediaVideoFormat object>
value

(experimental) The video format string value.

Stability:

experimental

Static Methods

classmethod of(value)

(experimental) Use a custom video format value.

Parameters:

value (str)

Stability:

experimental

Return type:

MediaVideoFormat