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;
}