]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
remove replay gain apply
authorBastian Dehn <hhaalo@arcor.de>
Mon, 14 Jul 2025 14:26:29 +0000 (16:26 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 14 Jul 2025 14:26:29 +0000 (16:26 +0200)
albentohandy

index c68da8e7aaa3d1892e9099c04c04220972d89af4..696f18a4cc70a1e5bdabd98c6f64360a48cf4e83 100755 (executable)
@@ -25,7 +25,6 @@ OPTIONS
     -3                      convert to mp3
     -c                      cover.jpg stehen lassen
     -f                      convert to flac
-    -g <gaintyp>            replay gain apply (t)rack or (a)lbum
     -h                      show this help
     -i <file>               input Datei default=albumlist
     -m <dest>               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++)) ;;