Interface SourceJpegXs
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SourceJpegXs.Jsii$Proxy
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-07-31T10:49:55.226Z")
@Stability(Experimental)
public interface SourceJpegXs
extends software.amazon.jsii.JsiiSerializable
(experimental) Configuration for Jpeg XS.
Example:
Stack stack;
IRole role;
ISecurityGroup sg1;
ISecurityGroup sg2;
ISubnet subnet;
VpcInterfaceConfig efaInterface = VpcInterface.define(VpcInterfaceDefineProps.builder()
.vpcInterfaceName("efa-interface")
.role(role)
.securityGroups(List.of(sg1))
.subnet(subnet)
.networkInterfaceType(NetworkInterface.EFA)
.build());
VpcInterfaceConfig enaInterface = VpcInterface.define(VpcInterfaceDefineProps.builder()
.vpcInterfaceName("ena-interface")
.role(role)
.securityGroups(List.of(sg2))
.subnet(subnet)
.networkInterfaceType(NetworkInterface.ENA)
.build());
MediaStream videoStream = MediaStream.video(MediaStreamVideo.builder()
.mediaStreamId(1)
.mediaStreamName("video")
.videoFormat(MediaVideoFormat.UHD_2160P)
.fmtp(FmtpVideo.builder()
.exactFramerate(Framerate.FPS_59_94)
.par(PixelAspectRatio.SQUARE)
.colorimetry(Colorimetry.BT2020)
.videoRange(VideoRange.FULL)
.scanMode(ScanMode.PROGRESSIVE)
.tcs(Tcs.PQ)
.build())
.build());
Flow flow = Flow.Builder.create(stack, "MyJpegXsFlow")
.flowSize(FlowSize.LARGE_4X) // Required for JPEG XS
.vpcInterfaces(List.of(efaInterface, enaInterface))
.mediaStreams(List.of(videoStream))
.source(SourceConfiguration.jpegXs(SourceJpegXs.builder()
.flowSourceName("jpegxs-source")
.maxSyncBuffer(100)
.mediaStreamSourceConfigurations(List.of(MediaStreamSourceConfigurationJpegXs.builder()
.encoding(Encoding.JXSV)
.port(5000)
.inputInterface(List.of(efaInterface, enaInterface)) // 2 interfaces for redundancy
.mediaStream(videoStream)
.build()))
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSourceJpegXsstatic final classAn implementation forSourceJpegXs -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceJpegXs.Builderbuilder()default String(experimental) The name of the source.default Number(experimental) The size of the buffer (in ms) to use to sync incoming source data.(experimental) The media stream that is associated with the source, and the parameters for that association.default List<VpcInterfaceConfig> (experimental) The VPC interface attachment to use for this bridge source.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMediaStreamSourceConfigurations
@Stability(Experimental) @NotNull List<MediaStreamSourceConfigurationJpegXs> getMediaStreamSourceConfigurations()(experimental) The media stream that is associated with the source, and the parameters for that association. -
getFlowSourceName
(experimental) The name of the source.Default: - a name is generated automatically
-
getMaxSyncBuffer
(experimental) The size of the buffer (in ms) to use to sync incoming source data.Default: 100
-
getVpcInterface
(experimental) The VPC interface attachment to use for this bridge source.Default: - no VPC interface
-
builder
- Returns:
- a
SourceJpegXs.BuilderofSourceJpegXs
-