]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
add bitrate var for opus
authorBastian Dehn <hhaalo@arcor.de>
Sun, 30 Aug 2026 09:00:29 +0000 (11:00 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 30 Aug 2026 09:00:29 +0000 (11:00 +0200)
libs/opus.sh

index 84d778d18c25c7161129e98114f7d937886103af..9da31a43fb8a53072faf205b32fe74196235ee35 100644 (file)
@@ -15,9 +15,10 @@ flac_to_opus()
        local input="$1"
        local output="${input/.flac/.opus}"
        local coverfile="${input%/*}/cover.jpg"
+       BITRATE=${BITRATE:="192"}
 
        nice --adjustment=10 opusenc --picture "3|image/jpeg|||$coverfile" \
-               --quiet --bitrate 192 "$input" "$output"
+               --quiet --bitrate "$BITRATE" "$input" "$output"
 }
 
 convert_flac_to_opus()