Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

.flac to .ogg

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

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

John Abreau / Executive Director, Boston Linux & Unix
Email jabr at / WWW / 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: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
URL: <>

BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /