From: Bastian Dehn Date: Sat, 4 Jun 2022 16:23:01 +0000 (+0200) Subject: add: encode mp4 with apply replaygain option X-Git-Tag: v1.0.0^2~57^2~1 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=aead500d329de5c1f662e4e1acf094514cb350a8;p=albentohandy.git add: encode mp4 with apply replaygain option --- diff --git a/albentohandy b/albentohandy index 6812092..77006c3 100755 --- a/albentohandy +++ b/albentohandy @@ -66,12 +66,15 @@ ReadFlacToMp3Tags() --title=\"$TITLE\" \ --album=\"$ALBUM\" \ --genre=\"${GENRE:-12}\" \ - --track=\"${TRACKNUMBER:-0}\" --recording-date=\"$DATE\" \ - --user-text-frame=\"$RRL\" \ - --user-text-frame=\"$RTG\" \ - --user-text-frame=\"$RTP\" \ - --user-text-frame=\"$RAG\" \ - --user-text-frame=\"$RAP\"" + --track=\"${TRACKNUMBER:-0}\" --recording-date=\"$DATE\"" + + if [ -z $replaygainapply ]; then + local eyed3Command="$eyed3Command --user-text-frame=\"$RRL\" \ + --user-text-frame=\"$RTG\" \ + --user-text-frame=\"$RTP\" \ + --user-text-frame=\"$RAG\" \ + --user-text-frame=\"$RAP\"" + fi # add cover picture to command if [ -f $INPUTFILEDIR/cover.jpg ]; then @@ -92,7 +95,8 @@ EncodingFlacToMp3() local readonly OUTPUTFILE="$2" # stream flac into the lame encoder - nice --adjustment=10 flac --silent --stdout --decode "$INPUTFILE" \ + nice --adjustment=10 flac --totally-silent --stdout --decode \ + $replaygainapply "$INPUTFILE" \ | nice --adjustment=15 lame --silent \ -b 192 --noreplaygain - "$OUTPUTFILE" }