.flac to .ogg

John Abreau jabr at blu.org
Tue Jul 6 17:41:01 EDT 2004


On Tue, 2004-07-06 at 15:53, Eric wrote:

> Hi.  Anybody know of a good app for converting a bunch of .flac files to
> ogg vorbis?

FLAC is a lossless codec; you can convert it back to an exact copy of 
the original WAV file as it was before encoding to FLAC. Then you can 
use oggenc to create the ogg vorbis file. 

Here's a simple bash script that assumes the defaults are acceptable: 

    #! /bin/bash

    for i do
        flac -d $i
        oggenc -q 7 ${i%.flac}.wav
	# if you want to delete the intermediate files:
        rm $i ${i%.flac}.wav
    done

Note that this assumes sane filenames, i.e. no spaces or other 
problem characters. 

-- 
John Abreau / Executive Director, Boston Linux & Unix
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
URL: <http://lists.blu.org/pipermail/discuss/attachments/20040706/b7d3f281/attachment.sig>


More information about the Discuss mailing list