X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Fmeviz%2Fencoder%2FEncodingOptions.java;h=6c666a1c7a1c974e962c96b5a71960a1b4a4c021;hb=afb36656f930daf68be6a2f0fdb72f012fbdbe4e;hp=463b48acc7c05561e1d9d961de96afc59e98ce87;hpb=95ffc75c41af8f8f164e1d7dbf88291ae3749127;p=meviz.git diff --git a/src/main/java/eu/svjatoslav/meviz/encoder/EncodingOptions.java b/src/main/java/eu/svjatoslav/meviz/encoder/EncodingOptions.java index 463b48a..6c666a1 100755 --- a/src/main/java/eu/svjatoslav/meviz/encoder/EncodingOptions.java +++ b/src/main/java/eu/svjatoslav/meviz/encoder/EncodingOptions.java @@ -1,7 +1,7 @@ /* * Meviz - Various tools collection to work with multimedia. * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public License * as published by the Free Software Foundation. @@ -15,7 +15,9 @@ import java.util.List; public class EncodingOptions { - public BitrateParameter.bitrate videoBitrate = BitrateParameter.bitrate.MEDIUM; + private BitrateParameter.bitrate videoBitrate = BitrateParameter.bitrate.MEDIUM; + + private BitrateParameter.bitrate audioBitrate = BitrateParameter.bitrate.MEDIUM; // public Bitrate audioBitrate; @@ -25,10 +27,28 @@ public class EncodingOptions { public boolean testOnly; + public boolean forPortablePlayer = false; + public File workingDirectory = new File(System.getProperty("user.dir")); List outputFormats = new ArrayList(); List inputPatterns = new ArrayList(); + public BitrateParameter.bitrate getAudioBitrate() { + return audioBitrate; + } + + public BitrateParameter.bitrate getVideoBitrate() { + return videoBitrate; + } + + public void setAudioBitrate(final BitrateParameter.bitrate audioBitrate) { + this.audioBitrate = audioBitrate; + } + + public void setVideoBitrate(final BitrateParameter.bitrate videoBitrate) { + this.videoBitrate = videoBitrate; + } + }