2 * Meviz - Various tools collection to work with multimedia.
3 * Copyright (C) 2012 -- 2017-2015, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of version 3 of the GNU Lesser General Public License
7 * or later as published by the Free Software Foundation.
10 package eu.svjatoslav.meviz.encoder;
13 import java.util.ArrayList;
14 import java.util.List;
16 public class EncodingOptions {
18 private BitrateParameter.Bitrate videoBitrate = BitrateParameter.Bitrate.MEDIUM;
20 private BitrateParameter.Bitrate audioBitrate = BitrateParameter.Bitrate.MEDIUM;
22 private Integer targetFps;
24 private boolean deinterlace = false;
26 private boolean recursive;
28 private boolean testOnly;
30 private boolean forPortablePlayer = false;
32 private File workingDirectory = new File(System.getProperty("user.dir"));
34 private List<String> outputFormats = new ArrayList<>();
36 private List<String> inputPatterns = new ArrayList<>();
38 public BitrateParameter.Bitrate getAudioBitrate() {
42 public void setAudioBitrate(final BitrateParameter.Bitrate audioBitrate) {
43 this.audioBitrate = audioBitrate;
46 public List<String> getInputPatterns() {
50 public void setInputPatterns(final List<String> inputPatterns) {
51 this.inputPatterns = inputPatterns;
54 public List<String> getOutputFormats() {
58 public void setOutputFormats(final List<String> outputFormats) {
59 this.outputFormats = outputFormats;
62 public Integer getTargetFps() {
66 public void setTargetFps(final Integer targetFps) {
67 this.targetFps = targetFps;
70 public BitrateParameter.Bitrate getVideoBitrate() {
74 public void setVideoBitrate(final BitrateParameter.Bitrate videoBitrate) {
75 this.videoBitrate = videoBitrate;
78 public File getWorkingDirectory() {
79 return workingDirectory;
82 public void setWorkingDirectory(final File workingDirectory) {
83 this.workingDirectory = workingDirectory;
86 public boolean isDeinterlace() {
90 public void setDeinterlace(final boolean deinterlace) {
91 this.deinterlace = deinterlace;
94 public boolean isForPortablePlayer() {
95 return forPortablePlayer;
98 public void setForPortablePlayer(final boolean forPortablePlayer) {
99 this.forPortablePlayer = forPortablePlayer;
102 public boolean isRecursive() {
106 public void setRecursive(final boolean recursive) {
107 this.recursive = recursive;
110 public boolean isTestOnly() {
114 public void setTestOnly(final boolean testOnly) {
115 this.testOnly = testOnly;