001package net.bramp.ffmpeg.options; 002 003import java.beans.ConstructorProperties; 004import org.apache.commons.lang3.math.Fraction; 005 006/** 007 * Encoding options for video 008 * 009 * @author bramp 010 */ 011public class VideoEncodingOptions { 012 public final boolean enabled; 013 public final String codec; 014 public final Fraction frame_rate; 015 public final int width; 016 public final int height; 017 public final long bit_rate; 018 public final Integer frames; 019 public final String filter; 020 public final String preset; 021 022 @ConstructorProperties({ 023 "enabled", 024 "codec", 025 "frame_rate", 026 "width", 027 "height", 028 "bit_rate", 029 "frames", 030 "video_filter", 031 "preset" 032 }) 033 public VideoEncodingOptions( 034 boolean enabled, 035 String codec, 036 Fraction frame_rate, 037 int width, 038 int height, 039 long bit_rate, 040 Integer frames, 041 String filter, 042 String preset) { 043 this.enabled = enabled; 044 this.codec = codec; 045 this.frame_rate = frame_rate; 046 this.width = width; 047 this.height = height; 048 this.bit_rate = bit_rate; 049 this.frames = frames; 050 this.filter = filter; 051 this.preset = preset; 052 } 053}