Re: [SLE] Flac to OGG conversion?
Anybody know of a way to convert a whole bunch of files from FLAC to OGG format with a script or tool of some sort? Please mention any packages you know I'd need as well.
I'd be okay with converting to MP3 as well, but would prefer OGG.
Well, out of the box, it'd be super easy to convert using two commands. flac -d *.flac will convert all .flac files in a folder to .wav files. oggenc *.wav will convert all those .wav files to .ogg rm *.wav will then remove the .wav files. oggenc supposedly does .flac conversion - it says so in the all-powerful man file - but I can't get it to work. There's a listing for oggenc2.x out there but I cannot find sources right now to compile. -- kai ponte www.perfectreign.com linux - genuine windows replacement part
Kai, On Tuesday 03 January 2006 13:45, Kai Ponte wrote:
...
oggenc supposedly does .flac conversion - it says so in the all-powerful man file - but I can't get it to work. There's a listing for oggenc2.x out there but I cannot find sources right now to compile.
Here's what it says in the plain old, everyday man page for oggenc: DESCRIPTION oggenc reads audio data in either raw, WAV, or AIFF format and encodes it into an Ogg Vorbis stream. oggenc may also read audio data from FLAC and Ogg FLAC files depending upon compile-time options. ... It clearly states that it _might_ accept FLAC input, but not necessarily.
-- kai ponte
Randall Schulz
oggenc supposedly does .flac conversion - it says so in the all-powerful man file - but I can't get it to work. There's a listing for oggenc2.x out there but I cannot find sources right now to compile.
Oggenc works fine.... I used to to batch convert a load of ogg files... ~> oggenc -q8 01-blondie-atomic.flac will convert the Blondie song to a +/-256 bit encoded OGG... or even better, something like find -name \*\\.flac -print0 | xargs -0 echo oggenc -q8 which, if I have my syntax right will find across directories and run oggenc for each instance if a flac file it finds. C.
On Wednesday 04 January 2006 01:18 am, Clayton wrote:
oggenc supposedly does .flac conversion - it says so in the all-powerful man file - but I can't get it to work. There's a listing for oggenc2.x out there but I cannot find sources right now to compile.
Oggenc works fine.... I used to to batch convert a load of ogg files...
~> oggenc -q8 01-blondie-atomic.flac
will convert the Blondie song to a +/-256 bit encoded OGG...
Thanks for the tip, however, I must be missing something as I get an error: kai@yoda:~/tmp> oggenc -q8 *.flac ERROR: Input file "d2t3 One.flac" is not a supported format ERROR: Input file "d2t5 The Fly.flac" is not a supported format On an unrelated note, is there a command prompt program (I'm using Konsole) which allows for ctrl+c, ctrl+v, ctrl+x for copy cut paste? Konsole is kinda wierd to me in that it has nothing for copy/cut and the outdated shift-insert for paste. (I feel like I'm in DOS days.)
or even better, something like find -name \*\\.flac -print0 | xargs -0 echo oggenc -q8 which, if I have my syntax right will find across directories and run oggenc for each instance if a flac file it finds.
That would be cool! -- kai www.perfectreign.com linux - genuine windows replacement part
On Wednesday 04 January 2006 8:21 am, Kai Ponte wrote:
Konsole is kinda wierd to me in that it has nothing for copy/cut and the outdated shift-insert for paste.
How about select with mouse to copy and center mouse button to paste? Bryan **************************************** Powered by Mepis Linux 3.3.1 KDE 3.3.2 KMail 1.7.2 This is a Microsoft-free computer Bryan S. Tyson bryantyson@earthlink.net ****************************************
Clayton, On Wednesday 04 January 2006 01:18, Clayton wrote:
...
Oggenc works fine.... I used to to batch convert a load of ogg files...
My oggenc: % rpm -q --whatprovides $(type -p oggenc) vorbis-tools-1.0.1-93 is like Kai's, with no ability to read FLAC files: % oggenc -q 7 "01 - Tangram Set 1.flac" ERROR: Input file "01 - Tangram Set 1.flac" is not a supported format
~> oggenc -q8 01-blondie-atomic.flac
...
C.
Randall Schulz
On Wed, Jan 04, 2006 at 06:53:46AM -0800, Randall R Schulz wrote:
My oggenc:
% rpm -q --whatprovides $(type -p oggenc) vorbis-tools-1.0.1-93
is like Kai's, with no ability to read FLAC files:
% oggenc -q 7 "01 - Tangram Set 1.flac" ERROR: Input file "01 - Tangram Set 1.flac" is not a supported format
Maybe it's time to file a "feature request" in the bugtracker? I remember having these problems as well (SuSE 9.3 at the time) and was slightly disappointed, as Mandrake 10.1 came with a flac-enabled oggenc... :-} Cheerio, Thomas
Hi, On Wednesday 04 January 2006 06:53, Randall R Schulz wrote:
...
My oggenc:
% rpm -q --whatprovides $(type -p oggenc) vorbis-tools-1.0.1-93
is like Kai's, with no ability to read FLAC files:
% oggenc -q 7 "01 - Tangram Set 1.flac" ERROR: Input file "01 - Tangram Set 1.flac" is not a supported format
I retrieved the vorbis-tools source tarball from the xiph.org download page: - http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.1.1.tar.gz - http://www.xiph.org/downloads/ With the Ogg, FLAC and Speex development RPMs installed (they're available through ordinary channels), a default configure as well as the subsequent make both succeed, resulting in a FLAC-capable oggenc binary: % ~/bin/oggenc --version OggEnc v1.0.2 % ldd ~/bin/oggenc linux-gate.so.1 => (0xffffe000) libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0x40045000) libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0x40143000) libOggFLAC.so.3 => /usr/lib/libOggFLAC.so.3 (0x4016c000) libFLAC.so.7 => /usr/lib/libFLAC.so.7 (0x4017f000) libm.so.6 => /lib/tls/libm.so.6 (0x401be000) libogg.so.0 => /usr/lib/libogg.so.0 (0x401e4000) libc.so.6 => /lib/tls/libc.so.6 (0x401ea000) /lib/ld-linux.so.2 (0x40000000) With nothing else running, encoding at quality level 7 proceeds at about a 10:1 rate on a 3 GHz HT CPU. % ~/bin/oggenc -q 7 "01 - Tangram Set 1.flac" Opening with flac module: FLAC file reader Encoding "01 - Tangram Set 1.flac" to "01 - Tangram Set 1.ogg" at quality 7.00 [100.0%] [ 0m00s remaining] - Done encoding file "01 - Tangram Set 1.ogg" File length: 19m 57.0s Elapsed time: 1m 42.3s Rate: 11.7064 Average bitrate: 200.9 kb/s Randall Schulz
On Tuesday 03 January 2006 4:45 pm, Kai Ponte wrote: <Snip>
flac -d *.flac will convert all .flac files in a folder to .wav files.
oggenc *.wav will convert all those .wav files to .ogg
rm *.wav will then remove the .wav files.
oggenc supposedly does .flac conversion - it says so in the all-powerful man file - but I can't get it to work. There's a listing for oggenc2.x out there but I cannot find sources right now to compile.
WOW! Kai, Thanks, I was jut wondering if there wasn't some sort of handy dandy way to do a bunch of files to ogg w/o having to do each one thru Audacity. -- j Morning, Evolution in action. only the grumpy will survive Don't try to change my attitude or rearrange my latitude; Don't tell me what I think, I gotta get me some boat drinks
Kai, On Tuesday 03 January 2006 13:45, Kai Ponte wrote:
...
Well, out of the box, it'd be super easy to convert using two commands.
flac -d *.flac will convert all .flac files in a folder to .wav files.
Are all the tags from the FLAC file retained in the WAV file so they may be transferred on by oggenc to the final .ogg file?
oggenc *.wav will convert all those .wav files to .ogg
rm *.wav will then remove the .wav files.
...
-- kai ponte
Randall Schulz
participants (6)
-
Bryan S. Tyson
-
Clayton
-
jfweber@bellsouth.net
-
Kai Ponte
-
Randall R Schulz
-
T. Ribbrock