- if (inputPatternParameter.isParameterSpecified())
- options.inputPatterns.addAll(inputPatternParameter
- .getArgumentsAsStrings());
-
- if (videoBitrateParameter.isParameterSpecified())
- try {
- options.videoBitrate = Bitrate.bitrate
- .valueOf(videoBitrateParameter.getArgumentAsString()
- .toUpperCase());
- } catch (final Exception e) {
- System.out
- .println("Invalid video bitrate. Valid values are: LOW, MEDIUM, HIGH.");
- return null;
- }
-
- return options;
- }