MediaStream
- class aws_cdk.aws_mediaconnect_alpha.MediaStream(*args: Any, **kwargs)
Bases:
object(experimental) Simplified configuration for Media Streams.
- 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 )] ) )
Static Methods
- classmethod ancillary_data(*, media_stream_id, media_stream_name, description=None)
(experimental) Configuration for MediaStream ancillary data.
- 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
- Stability:
experimental
- Return type:
- classmethod audio(*, channel_order=None, clock_rate=None, fmt=None, lang=None, media_stream_id, media_stream_name, description=None)
(experimental) Configuration for MediaStream audio.
- Parameters:
channel_order (
Optional[AudioStreamOrderOptions]) – (experimental) The format of the audio channel. Default: - the MediaConnect service defaultclock_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 typefmt (
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 MediaConnectlang (
Optional[str]) – (experimental) The audio language, in a format that is recognized by the receiver. Default: - no language specifiedmedia_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
- Stability:
experimental
- Return type:
- classmethod video(*, fmtp, video_format, clock_rate=None, fmt=None, media_stream_id, media_stream_name, description=None)
(experimental) Configuration for MediaStream Video.
- Parameters:
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 typefmt (
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 MediaConnectmedia_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
- Stability:
experimental
- Return type: