Skip to main content

Topic: Flac -> Ogg Vorbis (Read 4501 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • Speek
  • [*][*][*][*]
Flac -> Ogg Vorbis
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
  • [*][*][*][*]
Flac -> Ogg Vorbis
Reply #1
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
  • [*][*][*][*]
Flac -> Ogg Vorbis
Reply #2
Added this feature to Oggifier (Ogg Vorbis front-end).
Link: http://home.wanadoo.nl/~w.speek/oggifier.htm

  • tonderai
  • [*][*]
Flac -> Ogg Vorbis
Reply #3
cheers, man. although i haven't tried it out yet, now i'll be able to encode mpcs and oggs from my flac archive  i'm sorted, for high and low bitrates. much appreciated!
protect your digital rights ... www.againsttcpa.com

  • metrom
  • [*]
Flac -> Ogg Vorbis
Reply #4
doesn't it exicist any script o.l. that can preserve the taggs?

  • jcoalson
  • [*][*][*][*][*]
  • Developer
Flac -> Ogg Vorbis
Reply #5
Quote
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: [Select]
metaflac --no-utf8-convert --export-vc-to=- file.flac | vorbiscomment --raw -w -c file.ogg


Josh

  • Delirium
  • [*][*][*][*]
Flac -> Ogg Vorbis
Reply #6
Quote
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: [Select]
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
  • [*][*][*]
Flac -> Ogg Vorbis
Reply #7
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
  • [*]
Flac -> Ogg Vorbis
Reply #8
Quote
Quote
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: [Select]
metaflac --no-utf8-convert --export-vc-to=- file.flac | vorbiscomment --raw -w -c file.ogg


Josh

This is wonderful news! Thanks alot.

  • metrom
  • [*]
Flac -> Ogg Vorbis
Reply #9
since FLAC 1.0.4 now is released, what do we add to this command to preserve the tags?

Code: [Select]
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
  • [*][*][*][*][*]
Flac -> Ogg Vorbis
Reply #10
Quote
since FLAC 1.0.4 now is released, what do we add to this command to preserve the tags?

Code: [Select]
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"



Data in the pipe is a normal wav file. And you can't use vorbis comments on that...

  • metrom
  • [*]
Flac -> Ogg Vorbis
Reply #11
thanks, but what I really asked for is a script that can automate those to commands.

  • Amadablam
  • [*][*][*]
Flac -> Ogg Vorbis
Reply #12
Here's how I'd do it (the whole transcoding and transtagging process):

Code: [Select]
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
  • [*][*][*][*][*]
  • Developer
Flac -> Ogg Vorbis
Reply #13
Quote
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: [Select]
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: [Select]
zorch file.flac file.ogg


Josh

  • Speek
  • [*][*][*][*]
Flac -> Ogg Vorbis
Reply #14
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