add flac encoding format

This commit is contained in:
2021-01-15 21:18:27 +01:00
parent 755f5dbd1d
commit 183e34c217
2 changed files with 18 additions and 0 deletions

View File

@@ -352,6 +352,13 @@ async fn transcode(
dest_elems.push(encoder);
dest_elems.push(gmake("oggmux")?);
}
config::Transcode::Flac { compression } => {
let encoder: Element = gmake("flacenc")?;
encoder.set_property_from_str("quality", &compression.to_string());
dest_elems.push(encoder);
}
config::Transcode::Mp3 {
bitrate,
bitrate_type,