- try {
- options.videoBitrate = 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());