Interface VideoEncodeProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
VideoEncodeProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)", date="2026-09-02T11:03:41.400Z") @Stability(Experimental) public interface VideoEncodeProps extends software.amazon.jsii.JsiiSerializable
(experimental) Properties for a video encode configuration.

Example:

 Stack stack;
 IInput input;
 IBucket bucket;
 EncodeConfiguration video = EncodeConfiguration.video(VideoEncodeProps.builder()
         .name("video_720p")
         .codec(VideoCodecSettings.h264(H264SettingsProps.builder()
                 .rateControl(H264RateControl.cbr(CbrRateControlProps.builder().bitrate(Bitrate.mbps(3)).build()))
                 .framerate(Framerate.FPS_30)
                 .build()))
         .width(1280)
         .height(720)
         .build());
 EncodeConfiguration audio = EncodeConfiguration.audio(AudioEncodeProps.builder()
         .name("audio_aac")
         .codec(AudioCodecSettings.aac(AacSettingsProps.builder().bitrate(Bitrate.kbps(192)).build()))
         .build());
 Channel.Builder.create(stack, "Channel")
         .inputs(List.of(InputAttachment.builder().input(input).build()))
         .outputGroups(List.of(OutputGroupConfiguration.hls(HlsOutputGroupProps.builder()
                 .name("hls")
                 .destinations(List.of(OutputDestination.toBucket(bucket, "live/stream")))
                 .outputs(List.of(HlsOutputDefinition.builder().encodes(List.of(video, audio)).outputName("hls_out").build()))
                 .build())))
         .build();
 
  • Method Details

    • getCodec

      @Stability(Experimental) @NotNull VideoCodecSettings getCodec()
      (experimental) The codec for the video encode.

      Choose the codec explicitly (e.g. VideoCodecSettings.h264(...))

    • getHeight

      @Stability(Experimental) @NotNull Number getHeight()
      (experimental) The height of the output video in pixels.

      Must be an even number.

    • getName

      @Stability(Experimental) @NotNull String getName()
      (experimental) A unique name for this video encode.
    • getWidth

      @Stability(Experimental) @NotNull Number getWidth()
      (experimental) The width of the output video in pixels.

      Must be an even number.

    • getRespondToAfd

      @Stability(Experimental) @Nullable default RespondToAfd getRespondToAfd()
      (experimental) How to respond to AFD values in the input stream.

      Default: RespondToAfd.NONE

    • getScalingBehavior

      @Stability(Experimental) @Nullable default ScalingBehavior getScalingBehavior()
      (experimental) The video scaling behavior.

      Default: ScalingBehavior.DEFAULT

    • getSharpness

      @Stability(Experimental) @Nullable default Number getSharpness()
      (experimental) The anti-alias filter strength (0-100).

      0 is softest, 100 is sharpest.

      Default: 50

    • builder

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