You are not logged in.
can convert FLAC back to WAV without any loss of quality and then convert the WAV to any format you wish.
You can also do this directly!
e.g.
flac -> vorbis
oggenc -q6 *.flacflac -> mp3
#!/bin/bash
for a in *.flac
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`
DATE=`metaflac "$a" --show-tag=DATE | sed s/.*=//g`
flac -c -d "$a" | lame --preset fast standard - "$OUTF"
id3 -t "$TITLE" -T "${TRACKNUMBER:-0}" -a "$ARTIST" -A "$ALBUM" -y "$DATE" -g "${GENRE:-12}" "$OUTF"
id3v2 -t "$TITLE" -T "$TRACKNUMBER" -a "$ARTIST" -A "$ALBUM" -y "$DATE" -g "$GENRE" "$OUTF"
doneOffline
Sorry, I'd post said script if I'd find it in this mess of data that is my back-up harddrive.
Hey Runiq,
did you find the script? I'm highly interested ![]()
Offline
Hey Runiq,
did you find the script? I'm highly interested
Sorry—I lost it during a "backup" and am in the middle of rewriting, trying out hg for the first time. Don't expect anything soon though, diploma takes precedence…
Last edited by Runiq (2010-08-28 17:28:19)
Offline
No problem. I'm still waiting for more disc space before I dive into the world of FLAC anyway ;b
Alles Gute fürs Diplom ![]()
Offline
@Runiq:
All the best for your diploma !
I keep my fingers crossed ![]()
-D$
Last edited by Darksoul71 (2010-08-28 20:46:29)
My archlinux x86_64 host:
AMD E350 (2x1.6GHz) / 8GB DDR3 RAM / GeForce 9500GT (passive) / Arch running from 16GB USB Stick
Offline
Heh, thanks to you two
I think I lost the script, but I found something similar: flacsync. It apparently syncs the whole base directory, though, and I don't know about it adding Replay Gain. I did it all with a crude bash script, rsync, and mp3gain/vorbisgain/metaflac, though, so you're probably better off with flacsync anyways.
Edit: Scratch that, this seems to be the way to go. It hasn't been updated since 2008 as far as I can see, and it doesn't do replaygain, but it seems promising. Maybe I can add the rest of the stuff myself over time.
Last edited by Runiq (2010-09-16 22:46:14)
Offline