Interface MediaStreamVideo
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,MediaStreamBase
- All Known Implementing Classes:
MediaStreamVideo.Jsii$Proxy
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-07-31T10:49:55.187Z")
@Stability(Experimental)
public interface MediaStreamVideo
extends software.amazon.jsii.JsiiSerializable, 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.
Example:
Stack stack;
IRole role;
ISecurityGroup securityGroup;
ISubnet subnet;
VpcInterfaceConfig efaInterface = VpcInterface.define(VpcInterfaceDefineProps.builder()
.vpcInterfaceName("efa-interface")
.role(role)
.securityGroups(List.of(securityGroup))
.subnet(subnet)
.networkInterfaceType(NetworkInterface.EFA)
.build());
MediaStream videoStream = MediaStream.video(MediaStreamVideo.builder()
.mediaStreamId(1)
.mediaStreamName("video")
.videoFormat(MediaVideoFormat.HD_1080P)
.fmtp(FmtpVideo.builder()
.exactFramerate(Framerate.FPS_29_97)
.par(PixelAspectRatio.SQUARE)
.build())
.build());
Flow flow = Flow.Builder.create(stack, "MyCdiFlow")
.flowSize(FlowSize.LARGE_4X) // Required for CDI and JPEG XS
.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 forMediaStreamVideostatic final classAn implementation forMediaStreamVideo -
Method Summary
Modifier and TypeMethodDescriptionstatic MediaStreamVideo.Builderbuilder()default Number(experimental) The sample rate for the stream.default NumbergetFmt()(experimental) The format type number (sometimes referred to as RTP payload type) of the media stream.getFmtp()(experimental) Attributes that are related to the media stream.(experimental) The resolution of the video.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.mediaconnect.alpha.MediaStreamBase
getDescription, getMediaStreamId, getMediaStreamName
-
Method Details
-
getFmtp
(experimental) Attributes that are related to the media stream. -
getVideoFormat
(experimental) The resolution of the video. -
getClockRate
(experimental) The sample rate for the stream.This value is measured in Hz.
Default: - default clock rate for the media stream type
-
getFmt
(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
-
builder
- Returns:
- a
MediaStreamVideo.BuilderofMediaStreamVideo
-