Enum Class FfmpegMedia.ClipCodec

java.lang.Object
java.lang.Enum<FfmpegMedia.ClipCodec>
limn.video.ffmpeg.FfmpegMedia.ClipCodec
All Implemented Interfaces:
Serializable, Comparable<FfmpegMedia.ClipCodec>, Constable
Enclosing class:
FfmpegMedia

public static enum FfmpegMedia.ClipCodec extends Enum<FfmpegMedia.ClipCodec>
How a written clip's pictures are coded. Neither is H.264, and neither can be: FFmpeg's H.264 encoder is x264 and x264 is GPL, so an LGPL build cannot produce H.264 to read back. What a round trip through either one proves is therefore the seam (the demultiplexer, the packet-to-picture path, the planar handoff, the pool, the release discipline and the timestamp rescale) and not libavcodec's H.264 decoder, which is FFmpeg's to test.
  • Enum Constant Details

    • MJPEG

      public static final FfmpegMedia.ClipCodec MJPEG
      Motion JPEG: every picture independent, no reordering, no decoder delay, and nearly lossless at the quality used, so samples can be asserted tightly. The default.
    • MPEG4

      public static final FfmpegMedia.ClipCodec MPEG4
      MPEG-4 Part 2: a real group of pictures, pictures that need their predecessors, and a decoder that carries state across packets (the shape H.264 has, without being it).
  • Method Details

    • values

      public static FfmpegMedia.ClipCodec[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FfmpegMedia.ClipCodec valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null