Interface EncodingConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EncodingConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-07-31T10:49:55.139Z")
@Stability(Experimental)
public interface EncodingConfig
extends software.amazon.jsii.JsiiSerializable
(experimental) Encoding configuration applied to an NDI source when transcoding it to a transport stream for downstream distribution.
Example:
Stack stack;
VpcInterfaceConfig ndiVpcInterface;
VpcInterfaceConfig efaInterface;
MediaStream videoStream;
// NDI requires LARGE, an encoding profile, and at least one discovery server
// NDI requires LARGE, an encoding profile, and at least one discovery server
Flow.Builder.create(stack, "NdiFlow")
.flowSize(FlowSize.LARGE)
.ndiConfig(NdiConfig.builder()
.ndiState(State.ENABLED)
.ndiDiscoveryServers(List.of(NdiDiscoveryServerConfig.builder()
.discoveryServerAddress("10.0.0.10")
.vpcInterface(ndiVpcInterface)
.build()))
.build())
.encodingConfig(EncodingConfig.builder()
.encodingProfile(EncodingProfile.CONTRIBUTION_H264_DEFAULT)
.build())
.source(SourceConfiguration.ndi(SourceNdi.builder()
.flowSourceName("ndi-source")
.build()))
.build();
// CDI and JPEG XS require LARGE_4X
// CDI and JPEG XS require LARGE_4X
Flow.Builder.create(stack, "CdiFlow")
.flowSize(FlowSize.LARGE_4X)
.vpcInterfaces(List.of(efaInterface))
.mediaStreams(List.of(videoStream))
.source(SourceConfiguration.cdi(SourceCdi.builder()
.flowSourceName("cdi-source")
.vpcInterface(efaInterface)
.port(5000)
.maxSyncBuffer(100)
.mediaStreamSourceConfigurations(List.of(MediaStreamSourceConfigurationCdi.builder()
.encoding(Encoding.RAW)
.mediaStream(videoStream)
.build()))
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEncodingConfigstatic final classAn implementation forEncodingConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic EncodingConfig.Builderbuilder()default EncodingProfile(experimental) The encoding profile to use when transcoding the NDI source content to a transport stream.default Bitrate(experimental) The maximum video bitrate to use when transcoding the NDI source to a transport stream.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEncodingProfile
(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
-
getVideoMaxBitrate
(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
-
builder
- Returns:
- a
EncodingConfig.BuilderofEncodingConfig
-