EncodingConfig
- class aws_cdk.aws_mediaconnect_alpha.EncodingConfig(*, encoding_profile=None, video_max_bitrate=None)
Bases:
object(experimental) Encoding configuration applied to an NDI source when transcoding it to a transport stream for downstream distribution.
- Parameters:
encoding_profile (
Optional[EncodingProfile]) – (experimental) The encoding profile to use when transcoding the NDI source content to a transport stream. You can change this value while the flow is running. Default: - the MediaConnect service defaultvideo_max_bitrate (
Optional[Bitrate]) – (experimental) The maximum video bitrate to use when transcoding the NDI source to a transport stream. The supported range is 10 Mbps – 50 Mbps. Default: - undefined; when omitted, MediaConnect applies 20 Mbps at deploy time
- 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
- encoding_profile
(experimental) The encoding profile to use when transcoding the NDI source content to a transport stream.
You can change this value while the flow is running.
- Default:
the MediaConnect service default
- Stability:
experimental
- video_max_bitrate
(experimental) The maximum video bitrate to use when transcoding the NDI source to a transport stream.
The supported range is 10 Mbps – 50 Mbps.
- Default:
undefined; when omitted, MediaConnect applies 20 Mbps at deploy time
- Stability:
experimental