possibility to specify video and audio bitrate separately
[meviz.git] / src / main / java / eu / svjatoslav / meviz / encoder / CommandlineHandler.java
index ec7d9cd..ff4b8ec 100755 (executable)
@@ -83,13 +83,10 @@ public class CommandlineHandler {
                options.forPortablePlayer = forPortableParameter.isParameterSpecified();
 
                if (videoBitrateParameter.isParameterSpecified())
-                       try {
-                               options.setVideoBitrate(videoBitrateParameter.getValue());
-                       } catch (final Exception e) {
-                               System.out
-                                               .println("Invalid video bitrate. Valid values are: LOW, MEDIUM, HIGH.");
-                               return null;
-                       }
+                       options.setVideoBitrate(videoBitrateParameter.getValue());
+
+               if (audioBitrateParameter.isParameterSpecified())
+                       options.setAudioBitrate(audioBitrateParameter.getValue());
 
                return options;
        }