@Override
public String describeFormat() {
- return "Target bitrate [NONE / LOW / MEDIUM / HIGH / COPY ]";
+ return "Target bitrate [NONE / LOW / MEDIUM / HIGH / COPY / LOSSLESS]";
}
@Override
}
public enum Bitrate {
- NONE, LOW, MEDIUM, HIGH, COPY
+ NONE, LOW, MEDIUM, HIGH, COPY, LOSSLESS
}
}
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;