Flac -> Ogg Vorbis |
![]() ![]() |
Flac -> Ogg Vorbis |
Sep 3 2002, 13:49
Post
#1
|
|
|
Group: Members Posts: 394 Joined: 31-October 01 Member No.: 386 |
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. |
|
|
|
Sep 3 2002, 15:25
Post
#2
|
|
|
Group: Members Posts: 394 Joined: 31-October 01 Member No.: 386 |
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. |
|
|
|
Sep 3 2002, 17:55
Post
#3
|
|
|
Group: Members Posts: 394 Joined: 31-October 01 Member No.: 386 |
Added this feature to Oggifier (Ogg Vorbis front-end).
Link: http://home.wanadoo.nl/~w.speek/oggifier.htm |
|
|
|
Sep 3 2002, 18:14
Post
#4
|
|
|
Group: Members Posts: 89 Joined: 5-April 02 Member No.: 1692 |
cheers, man. although i haven't tried it out yet, now i'll be able to encode mpcs and oggs from my flac archive
-------------------- protect your digital rights ... www.againsttcpa.com
|
|
|
|
Sep 13 2002, 15:32
Post
#5
|
|
|
Group: Members Posts: 39 Joined: 2-October 01 Member No.: 166 |
doesn't it exicist any script o.l. that can preserve the taggs?
|
|
|
|
Sep 13 2002, 18:53
Post
#6
|
|
|
FLAC Developer Group: Developer Posts: 1526 Joined: 27-February 02 Member No.: 1408 |
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 |
|
|
|
Sep 13 2002, 19:06
Post
#7
|
|
|
Group: Members Posts: 300 Joined: 3-January 02 From: Santa Cruz, CA Member No.: 891 |
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...). |
|
|
|
Sep 13 2002, 19:19
Post
#8
|
|
|
Group: Members Posts: 108 Joined: 6-September 02 Member No.: 3307 |
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. |
|
|
|
Sep 16 2002, 06:26
Post
#9
|
|
|
Group: Members Posts: 39 Joined: 2-October 01 Member No.: 166 |
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. |
|
|
|
Sep 26 2002, 19:48
Post
#10
|
|
|
Group: Members Posts: 39 Joined: 2-October 01 Member No.: 166 |
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) |
|
|
|
Sep 26 2002, 20:15
Post
#11
|
|
|
Group: Members Posts: 757 Joined: 8-October 01 Member No.: 247 |
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" Data in the pipe is a normal wav file. And you can't use vorbis comments on that... |
|
|
|
Sep 26 2002, 20:41
Post
#12
|
|
|
Group: Members Posts: 39 Joined: 2-October 01 Member No.: 166 |
thanks, but what I really asked for is a script that can automate those to commands.
|
|
|
|
Sep 26 2002, 21:00
Post
#13
|
|
|
Group: Members Posts: 108 Joined: 6-September 02 Member No.: 3307 |
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... |
|
|
|
Sep 26 2002, 22:05
Post
#14
|
|
|
FLAC Developer Group: Developer Posts: 1526 Joined: 27-February 02 Member No.: 1408 |
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 |
|
|
|
Sep 26 2002, 22:43
Post
#15
|
|
|
Group: Members Posts: 394 Joined: 31-October 01 Member No.: 386 |
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 |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st May 2013 - 20:02 |