FLAC to MP3 (Nautilus failure on File Properties)
R.L. Reingard
reingard at hispeed.ch
Thu Sep 15 08:59:34 UTC 2005
Hello Mark, Byron and Lee
thanks for the help and suggestions.
what i did experience after the use of 3 different scripts (the one below
and two others found on the web) is, that all of them converted FLAC to
MP3 nicely. what realy bugs me is: if i want to see the properties of a
converted file Nautilus gets blocked and has to be restarted (this does
not at all happen with any other MP3 file i have).
what to think of that?
René
> Am 14.09.2005, 15:46 Uhr, schrieb Byron Poland <wpoland at gmail.com>:
> For FLAC to MP3 I use the etree scripts found here:
> http://etree-scripts.sourceforge.net/
> Shn2mp3 or flac2mp3
> They are tuned for the live music trading scene, and actually parse an
> info text file to tag the files with artist, date, venue, source, and
> song names. I believe if the FLAC files are tagged it will just
> transfer them to the mp3. It works on whole directories at a time.
> You need to have lame installed too.
+++ script no.1 +++
http://etree-scripts.sourceforge.net/
+++ script no.2 +++
$ cat /usr/local/bin/flac2mp3.sh
PRESET=$1
if test "x$PRESET" = "x"; then
PRESET=extreme
fi
for a in *
do
OUTF=`echo "$a" | sed s/\.flac/.mp3/g`
ARTIST=`metaflac "$a" --show-tag=ARTIST | sed s/.*=//g`
TITLE=`metaflac "$a" --show-tag=TITLE | sed s/.*=//g`
ALBUM=`metaflac "$a" --show-tag=ALBUM | sed s/.*=//g`
GENRE=`metaflac "$a" --show-tag=GENRE | sed s/.*=//g`
TRACKNUMBER=`metaflac "$a" --show-tag=TRACKNUMBER | sed s/.*=//g`
echo
echo "Launching: flac -c -d $a | lame --preset $PRESET - $OUTF"
echo
flac -c -d "$a" | lame --preset $PRESET - "$OUTF"
echo
echo "Setting id3 ($TITLE, $TRACKNUMBER, $ARTIST, $ALBUM, $GENRE)"
echo
if test "x$TITLE" != "x"; then
id3 -t "$TITLE" "$OUTF"
fi
if test "x$TRACKNUMBER" != "x"; then
id3 -T "$TRACKNUMBER" "$OUTF"
fi
if test "x$ARTIST" != "x"; then
id3 -a "$ARTIST" "$OUTF"
fi
if test "x$ALBUM" != "x"; then
id3 -A "$ALBUM" "$OUTF"
fi
if test "x$GENRE" != "x"; then
id3 -g "$GENRE" "$OUTF"
fi
done
+++ end of script no.2 +++
+++ script no.3 +++
for a in *
do
OUTF=`echo "$a" | sed s/\.flac/.mp3/g`
ARTIST=`metaflac "$a" --show-tag=ARTIST | sed s/.*=//g`
TITLE=`metaflac "$a" --show-tag=TITLE | sed s/.*=//g`
ALBUM=`metaflac "$a" --show-tag=ALBUM | sed s/.*=//g`
GENRE=`metaflac "$a" --show-tag=GENRE | sed s/.*=//g`
TRACKNUMBER=`metaflac "$a" --show-tag=TRACKNUMBER | sed s/.*=//g`
flac -c -d "$a" | lame -m j -b 128 -s 44.1 - "$OUTF"
id3 -t "$TITLE" -T "$TRACKNUMBER" -a "$ARTIST" -A "$ALBUM" -g
"$GENRE" "$OUTF"
done
+++ end of script no.3 +++
More information about the ubuntu-users
mailing list