]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
add quality var vorbis
authorBastian Dehn <hhaalo@arcor.de>
Sun, 30 Aug 2026 09:01:41 +0000 (11:01 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sun, 30 Aug 2026 09:01:41 +0000 (11:01 +0200)
libs/vorbis.sh

index b10cd8b772d9017365ad909d67cb851972c79379..20b540c54e1d0b5eb72746a77a23d1170b7160bb 100644 (file)
@@ -38,9 +38,10 @@ encoding_flac_to_ogg()
 {
        local input="$1"
        local output="$2"
+       QUALITY=${QUALITY:="6"}
        nice --adjustment=10 flac --totally-silent --stdout --decode \
                "$input" \
-               | nice --adjustment=15 oggenc --quiet --quality 6 \
+               | nice --adjustment=15 oggenc --quiet --quality "$QUALITY" \
                --output "$output" -
 }