All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ws.schild.jave.encode.enums.VsyncMethod Maven / Gradle / Ivy

Go to download

The JAVE (Java Audio Video Encoder) library is Java wrapper on the ffmpeg project. Developers can take take advantage of JAVE2 to transcode audio and video files from a format to another. In example you can transcode an AVI file to a MPEG one, you can change a DivX video stream into a (youtube like) Flash FLV one, you can convert a WAV audio file to a MP3 or a Ogg Vorbis one, you can separate and transcode audio and video tracks, you can resize videos, changing their sizes and proportions and so on. Many other formats, containers and operations are supported by JAVE2.

There is a newer version: 3.5.0
Show newest version
package ws.schild.jave.encode.enums;

/**
 * Add VSYNC methods described in the FFMPEG Documentation.
 *
 */
public enum VsyncMethod {
  /**
   * Each frame is passed with its timestamp from the demuxer to the muxer.
   */
  PASSTHROUGH("passthrough"),
  /**
   * Frames will be duplicated and dropped to achieve exactly the requested constant frame rate.
   */
  CFR("cfr"),
  /**
   * Frames are passed through with their timestamp or dropped so as to prevent 2 frames from having the same timestamp.
   */
  VFR("vfr"),
  /**
   * As passthrough but destroys all timestamps, making the muxer generate fresh timestamps based on frame-rate.
   */
  DROP("drop"),
  /**
   * Chooses between CFR and VFR depending on muxer capabilities. This is the default method.
   */
  AUTO("auto");
  
  private String methodName;
  
  private VsyncMethod(String parameter) {
    methodName = parameter;
  }
  
  public String getMethodName() {
    return methodName;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy