You are not logged in.

#26 2010-06-15 13:16:05

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Rediscovering Vorbis...

dyscoria wrote:

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 *.flac

flac -> 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"
done

Offline

#27 2010-08-28 17:09:47

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: Rediscovering Vorbis...

Runiq wrote:

Sorry, I'd post said script if I'd find it in this mess of data that is my back-up harddrive. sad

Hey Runiq,

did you find the script? I'm highly interested smile

Offline

#28 2010-08-28 17:26:57

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: Rediscovering Vorbis...

Barghest wrote:

Hey Runiq,

did you find the script? I'm highly interested smile

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

#29 2010-08-28 18:54:48

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: Rediscovering Vorbis...

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 smile

Offline

#30 2010-08-28 20:46:16

Darksoul71
Member
Registered: 2010-04-12
Posts: 319

Re: Rediscovering Vorbis...

@Runiq:
All the best for your diploma !
I keep my fingers crossed wink

-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

#31 2010-09-16 21:57:00

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: Rediscovering Vorbis...

Heh, thanks to you two smile

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

Board footer

Powered by FluxBB