From: Bastian Dehn Date: Mon, 14 Jul 2025 14:26:29 +0000 (+0200) Subject: remove replay gain apply X-Git-Tag: v1.0.0^2~53^2~6 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=63e48d6165a3ffb65a5448c072acc9cc927e13dd;p=albentohandy.git remove replay gain apply --- diff --git a/albentohandy b/albentohandy index c68da8e..696f18a 100755 --- a/albentohandy +++ b/albentohandy @@ -25,7 +25,6 @@ OPTIONS -3 convert to mp3 -c cover.jpg stehen lassen -f convert to flac - -g replay gain apply (t)rack or (a)lbum -h show this help -i input Datei default=albumlist -m kopiert das Arbeitsverzeichnis @@ -211,14 +210,8 @@ read_flac_to_ogg_tags() local outputfile="$2" local coverfile="${inputfile%/*}/cover.txt" - if [ -z "$replaygainapply" ]; then - metaflac --export-tags-to=- $inputfile \ - | vorbiscomment --commentfile - --write $outputfile - else - metaflac --export-tags-to=- $inputfile \ - | sed '/REPLAYGAIN/d' \ - | vorbiscomment --commentfile - --write $outputfile - fi + metaflac --export-tags-to=- $inputfile \ + | vorbiscomment --commentfile - --write $outputfile [ -f $coverfile ] \ || return 0 @@ -233,7 +226,7 @@ encoding_flac_to_ogg() local outputfile="$2" nice --adjustment=10 flac --totally-silent --stdout --decode \ - $replaygainapply "$inputfile" \ + "$inputfile" \ | nice --adjustment=15 oggenc --quiet --quality 6 \ --output "$outputfile" - } @@ -499,7 +492,6 @@ main() "3") format="mp3" ;; "c") cover=true ;; "f") format="flac" ;; - "g") declare -xg replaygainapply="--apply-replaygain-which-is-not-lossless=$OPTARG" ;; "h") Usage && return 0 ;; "i") albumlist="$OPTARG" ;; "m") cptodest=true && dest="$OPTARG" && ((phase++)) ;;