--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
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"
}