Fix flac to mp3 (lame)

This commit is contained in:
Meutel 2016-12-09 22:26:39 +01:00
parent 44fddaf5bb
commit e6677f9723

View File

@ -6,7 +6,7 @@ OUT_DIR=${OUT_DIR:="$HOME/tmp/mp3"}
# modify the lame options to your # modify the lame options to your
# preference # preference
lame_opts=" --vbr -V 2 -B 256 " lame_opts=" --vbr-new -V 2 -B 256 "
for x in "${@}" for x in "${@}"
do do
@ -47,7 +47,7 @@ do
OUTFILE="${OUT_DIR}/$ARTIST/${DATE}_$ALBUM/$MP3" OUTFILE="${OUT_DIR}/$ARTIST/${DATE}_$ALBUM/$MP3"
mkdir -p "${OUT_DIR}/$ARTIST/${DATE}_$ALBUM" mkdir -p "${OUT_DIR}/$ARTIST/${DATE}_$ALBUM"
flac -c -d "$FLAC" | twolame -r ${lame_opts} - "$OUTFILE" flac -c -d "$FLAC" | lame ${lame_opts} - "$OUTFILE"
id3v2 \ id3v2 \
-a "$ARTIST" \ -a "$ARTIST" \