2 * Meviz - Various tools collection to work with multimedia.
3 * Copyright (C) 2012-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 2 of the GNU General Public License
7 * 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<String>();
36 private List<String> inputPatterns = new ArrayList<String>();
38 public BitrateParameter.bitrate getAudioBitrate() {
42 public List<String> getInputPatterns() {
46 public List<String> getOutputFormats() {
50 public Integer getTargetFps() {
54 public BitrateParameter.bitrate getVideoBitrate() {
58 public File getWorkingDirectory() {
59 return workingDirectory;
62 public boolean isDeinterlace() {
66 public boolean isForPortablePlayer() {
67 return forPortablePlayer;
70 public boolean isRecursive() {
74 public boolean isTestOnly() {
78 public void setAudioBitrate(final BitrateParameter.bitrate audioBitrate) {
79 this.audioBitrate = audioBitrate;
82 public void setDeinterlace(final boolean deinterlace) {
83 this.deinterlace = deinterlace;
86 public void setForPortablePlayer(final boolean forPortablePlayer) {
87 this.forPortablePlayer = forPortablePlayer;
90 public void setInputPatterns(final List<String> inputPatterns) {
91 this.inputPatterns = inputPatterns;
94 public void setOutputFormats(final List<String> outputFormats) {
95 this.outputFormats = outputFormats;
98 public void setRecursive(final boolean recursive) {
99 this.recursive = recursive;
102 public void setTargetFps(final Integer targetFps) {
103 this.targetFps = targetFps;
106 public void setTestOnly(final boolean testOnly) {
107 this.testOnly = testOnly;
110 public void setVideoBitrate(final BitrateParameter.bitrate videoBitrate) {
111 this.videoBitrate = videoBitrate;
114 public void setWorkingDirectory(final File workingDirectory) {
115 this.workingDirectory = workingDirectory;