MediaStreamAudio
- class aws_cdk.aws_mediaconnect_alpha.MediaStreamAudio(*, media_stream_id, media_stream_name, description=None, channel_order=None, clock_rate=None, fmt=None, lang=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 descriptionchannel_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 specified
- Stability:
experimental
- ExampleMetadata:
infused
Example:
from aws_cdk.aws_mediaconnect_alpha import FmtpVideo # stack: Stack # Create media streams video_stream = MediaStream.video( media_stream_id=1, media_stream_name="video-stream", video_format=MediaVideoFormat.HD_1080P, fmtp=FmtpVideo( colorimetry=Colorimetry.BT709, exact_framerate=Framerate.FPS_29_97, par=PixelAspectRatio.SQUARE, video_range=VideoRange.NARROW, scan_mode=ScanMode.PROGRESSIVE, tcs=Tcs.SDR ) ) audio_stream = MediaStream.audio( media_stream_id=2, media_stream_name="audio-stream", channel_order=AudioStreamOrderOptions.STANDARD_STEREO ) # Add to flow flow = Flow(stack, "MyFlow", source=SourceConfiguration.router(), media_streams=[video_stream, audio_stream] )
Attributes
- channel_order
(experimental) The format of the audio channel.
- Default:
the MediaConnect service default
- Stability:
experimental
- 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
- lang
(experimental) The audio language, in a format that is recognized by the receiver.
- Default:
no language specified
- 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