001package net.bramp.ffmpeg.options; 002 003import java.beans.ConstructorProperties; 004 005/** 006 * Encoding options that are specific to the main output. 007 * 008 * @author bramp 009 */ 010public class MainEncodingOptions { 011 /** 012 * The output format. 013 * 014 * @deprecated Use {@link #getFormat()} instead. 015 */ 016 @Deprecated public final String format; 017 018 /** 019 * The start offset in microseconds. 020 * 021 * @deprecated Use {@link #getStartOffset()} instead. 022 */ 023 @Deprecated public final Long startOffset; 024 025 /** 026 * The duration in microseconds. 027 * 028 * @deprecated Use {@link #getDuration()} instead. 029 */ 030 @Deprecated public final Long duration; 031 032 /** Constructs main encoding options with the specified format, offset, and duration. */ 033 @ConstructorProperties({"format", "startOffset", "duration"}) 034 public MainEncodingOptions(String format, Long startOffset, Long duration) { 035 this.format = format; 036 this.startOffset = startOffset; 037 this.duration = duration; 038 } 039 040 public String getFormat() { 041 return format; 042 } 043 044 public Long getStartOffset() { 045 return startOffset; 046 } 047 048 public Long getDuration() { 049 return duration; 050 } 051}