Enum EncoderNamedPreset

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<EncoderNamedPreset>

    public enum EncoderNamedPreset
    extends java.lang.Enum<EncoderNamedPreset>
    The built-in preset to be used for encoding videos.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      AACGoodQualityAudio
      Produces a single MP4 file containing only AAC stereo audio encoded at 192 kbps.
      AdaptiveStreaming
      Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio.
      ContentAwareEncoding
      Produces a set of GOP-aligned MP4s by using content-aware encoding.
      ContentAwareEncodingExperimental
      Exposes an experimental preset for content-aware encoding.
      CopyAllBitrateNonInterleaved
      Copy all video and audio streams from the input asset as non-interleaved video and audio output files.
      DDGoodQualityAudio
      Produces a single MP4 file containing only DD(Digital Dolby) stereo audio encoded at 192 kbps.
      H264MultipleBitrate1080p
      Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio.
      H264MultipleBitrate720p
      Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio.
      H264MultipleBitrateSD
      Produces a set of 5 GOP-aligned MP4 files, ranging from 1900kbps to 400 kbps, and stereo AAC audio.
      H264SingleBitrate1080p
      Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.
      H264SingleBitrate720p
      Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.
      H264SingleBitrateSD
      Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.
      H265AdaptiveStreaming
      Produces a set of GOP aligned MP4 files with H.265 video and stereo AAC audio.
      H265ContentAwareEncoding
      Produces a set of GOP-aligned MP4s by using content-aware encoding.
      H265SingleBitrate1080p
      Produces an MP4 file where the video is encoded with H.265 codec at 3500 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.
      H265SingleBitrate4K
      Produces an MP4 file where the video is encoded with H.265 codec at 9500 kbps and a picture height of 2160 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.
      H265SingleBitrate720p
      Produces an MP4 file where the video is encoded with H.265 codec at 1800 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getValue()  
      java.lang.String toString()  
      static EncoderNamedPreset valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static EncoderNamedPreset[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • H264SingleBitrateSD

        public static final EncoderNamedPreset H264SingleBitrateSD
        Produces an MP4 file where the video is encoded with H.264 codec at 2200 kbps and a picture height of 480 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.
      • H264SingleBitrate720p

        public static final EncoderNamedPreset H264SingleBitrate720p
        Produces an MP4 file where the video is encoded with H.264 codec at 4500 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.
      • H264SingleBitrate1080p

        public static final EncoderNamedPreset H264SingleBitrate1080p
        Produces an MP4 file where the video is encoded with H.264 codec at 6750 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.
      • AdaptiveStreaming

        public static final EncoderNamedPreset AdaptiveStreaming
        Produces a set of GOP aligned MP4 files with H.264 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best.
      • AACGoodQualityAudio

        public static final EncoderNamedPreset AACGoodQualityAudio
        Produces a single MP4 file containing only AAC stereo audio encoded at 192 kbps.
      • DDGoodQualityAudio

        public static final EncoderNamedPreset DDGoodQualityAudio
        Produces a single MP4 file containing only DD(Digital Dolby) stereo audio encoded at 192 kbps.
      • ContentAwareEncodingExperimental

        public static final EncoderNamedPreset ContentAwareEncodingExperimental
        Exposes an experimental preset for content-aware encoding. Given any input content, the service attempts to automatically determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will continue to evolve over time. The output will contain MP4 files with video and audio interleaved.
      • ContentAwareEncoding

        public static final EncoderNamedPreset ContentAwareEncoding
        Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved.
      • CopyAllBitrateNonInterleaved

        public static final EncoderNamedPreset CopyAllBitrateNonInterleaved
        Copy all video and audio streams from the input asset as non-interleaved video and audio output files. This preset can be used to clip an existing asset or convert a group of key frame (GOP) aligned MP4 files as an asset that can be streamed.
      • H264MultipleBitrate1080p

        public static final EncoderNamedPreset H264MultipleBitrate1080p
        Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 180p.
      • H264MultipleBitrate720p

        public static final EncoderNamedPreset H264MultipleBitrate720p
        Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 180p.
      • H264MultipleBitrateSD

        public static final EncoderNamedPreset H264MultipleBitrateSD
        Produces a set of 5 GOP-aligned MP4 files, ranging from 1900kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 240p.
      • H265ContentAwareEncoding

        public static final EncoderNamedPreset H265ContentAwareEncoding
        Produces a set of GOP-aligned MP4s by using content-aware encoding. Given any input content, the service performs an initial lightweight analysis of the input content, and uses the results to determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. This preset is particularly effective for low and medium complexity videos, where the output files will be at lower bitrates but at a quality that still delivers a good experience to viewers. The output will contain MP4 files with video and audio interleaved.
      • H265AdaptiveStreaming

        public static final EncoderNamedPreset H265AdaptiveStreaming
        Produces a set of GOP aligned MP4 files with H.265 video and stereo AAC audio. Auto-generates a bitrate ladder based on the input resolution, bitrate and frame rate. The auto-generated preset will never exceed the input resolution. For example, if the input is 720p, output will remain 720p at best.
      • H265SingleBitrate720p

        public static final EncoderNamedPreset H265SingleBitrate720p
        Produces an MP4 file where the video is encoded with H.265 codec at 1800 kbps and a picture height of 720 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.
      • H265SingleBitrate1080p

        public static final EncoderNamedPreset H265SingleBitrate1080p
        Produces an MP4 file where the video is encoded with H.265 codec at 3500 kbps and a picture height of 1080 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.
      • H265SingleBitrate4K

        public static final EncoderNamedPreset H265SingleBitrate4K
        Produces an MP4 file where the video is encoded with H.265 codec at 9500 kbps and a picture height of 2160 pixels, and the stereo audio is encoded with AAC-LC codec at 128 kbps.
    • Method Detail

      • values

        public static EncoderNamedPreset[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EncoderNamedPreset c : EncoderNamedPreset.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EncoderNamedPreset valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public java.lang.String getValue()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<EncoderNamedPreset>