-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
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
local outputfile="$2"
nice --adjustment=10 flac --totally-silent --stdout --decode \
- $replaygainapply "$inputfile" \
+ "$inputfile" \
| nice --adjustment=15 oggenc --quiet --quality 6 \
--output "$outputfile" -
}
"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++)) ;;