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();
 
  • Method Details

    • getFmtp

      @Stability(Experimental) @NotNull FmtpVideo getFmtp()
      (experimental) Attributes that are related to the media stream.
    • getVideoFormat

      @Stability(Experimental) @NotNull MediaVideoFormat getVideoFormat()
      (experimental) The resolution of the video.
    • getClockRate

      @Stability(Experimental) @Nullable default Number getClockRate()
      (experimental) The sample rate for the stream.

      This value is measured in Hz.

      Default: - default clock rate for the media stream type

    • getFmt

      @Stability(Experimental) @Nullable default Number 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

      @Stability(Experimental) static MediaStreamVideo.Builder builder()
      Returns:
      a MediaStreamVideo.Builder of MediaStreamVideo