case NONE:
return -1;
+ case LOSSLESS:
+ return -1;
+
default:
throw new RuntimeException("Audio bitrate: " + bitRate
+ " is not supported.");
if (options.getAudioBitrate() == Bitrate.COPY)
audioCodec = "copy";
+ if (options.getAudioBitrate() == Bitrate.LOSSLESS){
+ audioCodec = "flac";
+ codecParams.append("-strict -2 ");
+ }
+
if (options.getAudioBitrate() == Bitrate.NONE)
audioCodec = null;