Class VideoEncoderH264


  • public final class VideoEncoderH264
    extends VideoEncoderBase
    A custom preset for encoding video with the H.264 (AVC) codec.
    • Constructor Detail

      • VideoEncoderH264

        public VideoEncoderH264()
    • Method Detail

      • withBitrateKbps

        public VideoEncoderH264 withBitrateKbps​(String bitrateKbps)
        Set the bitrateKbps property: The maximum bitrate, in kilobits per second or Kbps, at which video should be encoded. If omitted, encoder sets it automatically to try and match the quality of the input video.
        Overrides:
        withBitrateKbps in class VideoEncoderBase
        Parameters:
        bitrateKbps - the bitrateKbps value to set.
        Returns:
        the VideoEncoderBase object itself.
      • withFrameRate

        public VideoEncoderH264 withFrameRate​(String frameRate)
        Set the frameRate property: The frame rate (in frames per second) of the encoded video. The value must be greater than zero, and less than or equal to 300. If omitted, the encoder uses the average frame rate of the input video.
        Overrides:
        withFrameRate in class VideoEncoderBase
        Parameters:
        frameRate - the frameRate value to set.
        Returns:
        the VideoEncoderBase object itself.
      • withScale

        public VideoEncoderH264 withScale​(VideoScale scale)
        Set the scale property: Describes the resolution of the encoded video. If omitted, the encoder uses the resolution of the input video.
        Overrides:
        withScale in class VideoEncoderBase
        Parameters:
        scale - the scale value to set.
        Returns:
        the VideoEncoderBase object itself.