possibility to change video framerate
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / EncodingOptions.java
1 /*
2  * Meviz - Various tools collection to work with multimedia.
3  * Copyright (C) 2012-2015, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4  *
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.
8  */
9
10 package eu.svjatoslav.meviz.encoder;
11
12 import java.io.File;
13 import java.util.ArrayList;
14 import java.util.List;
15
16 public class EncodingOptions {
17
18         private BitrateParameter.bitrate videoBitrate = BitrateParameter.bitrate.MEDIUM;
19
20         private BitrateParameter.bitrate audioBitrate = BitrateParameter.bitrate.MEDIUM;
21
22         private Integer targetFps;
23
24         private boolean deinterlace = false;
25
26         private boolean recursive;
27
28         private boolean testOnly;
29
30         private boolean forPortablePlayer = false;
31
32         private File workingDirectory = new File(System.getProperty("user.dir"));
33
34         private List<String> outputFormats = new ArrayList<String>();
35
36         private List<String> inputPatterns = new ArrayList<String>();
37
38         public BitrateParameter.bitrate getAudioBitrate() {
39                 return audioBitrate;
40         }
41
42         public List<String> getInputPatterns() {
43                 return inputPatterns;
44         }
45
46         public List<String> getOutputFormats() {
47                 return outputFormats;
48         }
49
50         public Integer getTargetFps() {
51                 return targetFps;
52         }
53
54         public BitrateParameter.bitrate getVideoBitrate() {
55                 return videoBitrate;
56         }
57
58         public File getWorkingDirectory() {
59                 return workingDirectory;
60         }
61
62         public boolean isDeinterlace() {
63                 return deinterlace;
64         }
65
66         public boolean isForPortablePlayer() {
67                 return forPortablePlayer;
68         }
69
70         public boolean isRecursive() {
71                 return recursive;
72         }
73
74         public boolean isTestOnly() {
75                 return testOnly;
76         }
77
78         public void setAudioBitrate(final BitrateParameter.bitrate audioBitrate) {
79                 this.audioBitrate = audioBitrate;
80         }
81
82         public void setDeinterlace(final boolean deinterlace) {
83                 this.deinterlace = deinterlace;
84         }
85
86         public void setForPortablePlayer(final boolean forPortablePlayer) {
87                 this.forPortablePlayer = forPortablePlayer;
88         }
89
90         public void setInputPatterns(final List<String> inputPatterns) {
91                 this.inputPatterns = inputPatterns;
92         }
93
94         public void setOutputFormats(final List<String> outputFormats) {
95                 this.outputFormats = outputFormats;
96         }
97
98         public void setRecursive(final boolean recursive) {
99                 this.recursive = recursive;
100         }
101
102         public void setTargetFps(final Integer targetFps) {
103                 this.targetFps = targetFps;
104         }
105
106         public void setTestOnly(final boolean testOnly) {
107                 this.testOnly = testOnly;
108         }
109
110         public void setVideoBitrate(final BitrateParameter.bitrate videoBitrate) {
111                 this.videoBitrate = videoBitrate;
112         }
113
114         public void setWorkingDirectory(final File workingDirectory) {
115                 this.workingDirectory = workingDirectory;
116         }
117
118 }