/*
- * Meviz - Various tools collection to work with multimedia.
- * Copyright (C) 2012 -- 2019, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 3 of the GNU Lesser General Public License
- * or later as published by the Free Software Foundation.
-*/
+ * Meviz - Various tools collection to work with multimedia. Author: Svjatoslav Agejenko.
+ * This project is released under Creative Commons Zero (CC0) license.
+ */
+
package eu.svjatoslav.meviz.encoder.converters;
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;