Help - Search - Members - Calendar
Full Version: Flac -> Ogg Vorbis
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
Speek
I would like to go straight from flac to ogg vorbis. This command line didn't work:

flac -d -c d:bloom.flac > oggenc -q 4 - -o d:bloom.ogg

leads to this output:

d:bloom.flac: 74% complete
d:bloom.flac: ERROR while decoding data, state=5:FLAC__FILE_DECODER_SEEKABLE_STREAM_DECODER_DECODER_ERROR

What should be changed to make it work? TIA.
Speek
Found it. This works:

flac -d -c d:bloom.flac | oggenc -q 4 - -o d:bloom.ogg

Too bad that the tags are not preserved.
Speek
Added this feature to Oggifier (Ogg Vorbis front-end).
Link: http://home.wanadoo.nl/~w.speek/oggifier.htm
tonderai
cheers, man. although i haven't tried it out yet, now i'll be able to encode mpcs and oggs from my flac archive biggrin.gif i'm sorted, for high and low bitrates. much appreciated!
metrom
doesn't it exicist any script o.l. that can preserve the taggs?
jcoalson
QUOTE(metrom @ Sep 13 2002 - 09:32 AM)
doesn't it exicist any script o.l. that can preserve the taggs?

It depends on which tags. If you are talking about Vorbis tags, in CVS now or with flac 1.0.4 in a week or two you can do:

CODE

metaflac --no-utf8-convert --export-vc-to=- file.flac | vorbiscomment --raw -w -c file.ogg


Josh
Delirium
QUOTE(jcoalson @ Sep 13 2002 - 10:53 AM)
It depends on which tags.  If you are talking about Vorbis tags, in CVS now or with flac 1.0.4 in a week or two you can do:

CODE

metaflac --no-utf8-convert --export-vc-to=- file.flac | vorbiscomment --raw -w -c file.ogg

Excellent, that's exactly what I want to do. Hopefully this will get into Debian sometime soon (or else I suppose I can checkout and compile the CVS myself...).
Amadablam
I've been accomplishing this "transtagging" using the Tag utility found at http://www.saunalahti.fi/~cse/html/tag.html. I can point this command at any directory of FLAC files and create an identical directory structure with ogg files. I borrowed the first part from Speek's idea earlier in this post.

FOR /R "E:\PATH\TO\FLAC" %i IN (*.flac) DO flac.exe -d -c "%i" | oggenc.exe -q 0 - -o "D:%~pi%~ni.ogg" && Tag.exe --fromfile "%i" "D:%~pi%~ni.ogg"

I can already see that this works well for me because I keep all my FLAC files on a separate drive. If I wanted to put my ogg files on the same drive as my FLAC files, I'd get them all mixed together. I don't know too much about the windows command line, but I'm sure you could just add a little to the "D:%~pi%~ni.ogg" to get the oggs by themselves.
metrom
QUOTE(jcoalson @ Sep 13 2002 - 06:53 PM)
QUOTE(metrom @ Sep 13 2002 - 09:32 AM)
doesn't it exicist any script o.l. that can preserve the taggs?

It depends on which tags. If you are talking about Vorbis tags, in CVS now or with flac 1.0.4 in a week or two you can do:

CODE

metaflac --no-utf8-convert --export-vc-to=- file.flac | vorbiscomment --raw -w -c file.ogg


Josh

This is wonderful news! Thanks alot.
metrom
since FLAC 1.0.4 now is released, what do we add to this command to preserve the tags?

CODE
flac -d -c d:bloom.flac | oggenc -q 4 - -o d:bloom.ogg


or is there an other way to do this? (linux/windows)
ErikS
QUOTE(metrom @ Sep 26 2002 - 07:48 PM)
since FLAC 1.0.4 now is released, what do we add to this command to preserve the tags?

CODE
flac -d -c d:bloom.flac | oggenc -q 4 - -o d:bloom.ogg


or is there an other way to do this?  (linux/windows)

"metaflac --no-utf8-convert --export-vc-to=- file.flac | vorbiscomment --raw -w -c file.ogg"

wink.gif

Data in the pipe is a normal wav file. And you can't use vorbis comments on that...
metrom
thanks, but what I really asked for is a script that can automate those to commands.
Amadablam
Here's how I'd do it (the whole transcoding and transtagging process):

CODE
flac -d -c file.flac | oggenc -q 0 - -o file.ogg && metaflac --no-utf8-convert --export-vc-to="tag.tmp" file.flac && vorbiscomment --raw -a -c tag.tmp file.ogg


Since you can't get the tag out of the pipe, I'd just use a temporary file to hold it. I tried this in windows and it seemed to work fine. I hope everything is right...
jcoalson
QUOTE(metrom @ Sep 26 2002 - 02:41 PM)
thanks, but what I really asked for is a script that can automate those to commands.

What kind of script? If you're using bash or equivalent you can make an alias like so:

CODE

alias zorch='flac -d -c $1 | oggenc -q 0 - -o $2 && metaflac --no-utf8-convert --export-vc-to=- $1 | vorbiscomment --raw -w -c $2'


Then zorch away:

CODE

zorch file.flac file.ogg


Josh
Speek
I've just uploaded Oggifier 1.8.1. If the source files are tagged, the tags can be copied to the Ogg Vorbies files. Also new is that (allmost) all compressed formats can be transcoded to Ogg Vorbis.

Oggifier website
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.