Help - Search - Members - Calendar
Full Version: Converting in foobar via command line
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
Rucksacksepp
Hi,
I want to convert files into ogg via the command line function in foobar! What do I need (which encoder) and which settings do I have to set to get the perfect sound quality at at least ~ 97 kbps ogg (for my Iriver). Thank you very much in advance for your help! smile.gif
Greetz,
Rucksacksepp
miscellanea
You'll need Oggenc. It can be found at Rarewares.
http://www.rarewares.org/ogg.html

Also needs setting at : Preferences > Components > Diskwriter
rbotboy
QUOTE(Rucksacksepp @ May 8 2005, 08:08 AM)
Hi,
I want to convert files into ogg via the command line function in foobar! What do I need (which encoder) and which settings do I have to set to get the perfect sound quality at at least ~ 97 kbps ogg (for my Iriver). Thank you very much in advance for your help! smile.gif
Greetz,
Rucksacksepp
*




I use the following when converting FLAC files to Ogg. I use q6 when encoding

ENCODER: oggenc.exe aka: Ogg Vorbis 1.0.1 http://www.vorbis.com

EXTENSION: .ogg

PARAMETERS: -q6 - -o %d

P.S. OggDrop is another useful program

fb2k is all I need!!!!
Rucksacksepp
Thank you both so far! I also got the commands now to set a minimum bitrate, but there's still a problem: I want to convert mostly mp3 and ogg files which oggenc does not support. Is there some kind of plugin to do so?
Synthetic Soul
It doesn't matter what oggenc supports.

Foobar will pipe the raw decoded audio date to oggenc.exe.

It doesn't matter what format the audio data starts in - Foobar will decode it first.

Edit: spelling
Rucksacksepp
QUOTE(Synthetic Soul @ May 9 2005, 03:18 AM)
It doesn't matter what oggenc supports.

Foobar will pipe the raw decoded audio date to oggenc.exe.

It doesn't matter what format the audio data starts in - Foobar will decode it first.

Edit: spelling
*



Are you sure that it also works with the command line encoder? Why do I get the following error (with parameters set: -m97 %d)
NFO (foo_clienc) : CLI encoder: D:\Programme\foobar2000\components\oggenc2.exe
INFO (foo_clienc) : Destination file: file://D:\Converted oggs for mp3-Player\001 15.Looptroop_-_Trincest-PDC.ogg
INFO (foo_clienc) : Source file: file://D:\Downloads\Musik\Looptroop_-_Fort_Europa-2005-PDC\15.Looptroop_-_Trincest-PDC.mp3
INFO (foo_clienc) : 44100Hz 16bps 2ch
ERROR (foo_clienc) : Writing to encoder failed
ERROR (foo_clienc) : Encoding failed
ERROR (foo_diskwriter) : Conversion failed.
Rucksacksepp
Ok, now it works, forgot to add %s to the command...
But it sounds like it loses some quality (more than converting it without commandline), because it gets convert from mp3 to wav and then to ogg. Is there a way not to lose that much quality or doesn't it really lose quality at all??
Lyx
QUOTE(Rucksacksepp @ May 9 2005, 02:10 PM)
Ok, now it works, forgot to add %s to the command...
But it sounds like it loses some quality (more than converting it without commandline), because it gets convert from mp3 to wav and then to ogg. Is there a way not to lose that much quality or doesn't it really lose quality at all??
*


You're posting in the wrong forum. Take a look at the stick-thread in the ogg-forums. Also read the ha.org FAQ concerning transcoding, because you have a really wrong impression of how lossy encoders work and what reencoding is. You will also find information in the FAQ concerning how to compare soundquality in a reliable way.

- Lyx
Rucksacksepp
Ok, thank you, will read everything you suggested! Sorry, I'm a noob in such things... crying.gif
Synthetic Soul
QUOTE(Rucksacksepp @ May 9 2005, 01:10 PM)
Ok, now it works, forgot to add %s to the command...
But it sounds like it loses some quality (more than converting it without commandline), because it gets convert from mp3 to wav and then to ogg. Is there a way not to lose that much quality or doesn't it really lose quality at all??

I believe oggenc.exe supports STDIN - so you should be able to use "-" instead of "%s", e.g.:

CODE
-m97 - -o %d

This will stop the need for Foobar to decode to a temporary WAVE file - it will just decode the source and pipe the data directly to oggenc - which is faster while producing the same result.

As to you believing this sounds worse than using oggenc on the command line, I can only concur with Lyx.

Edit: added "-o" to suggested command line, as I see that STDOUT is assumed otherwise.
Rucksacksepp
Thanks Synthetic Soul, that's the best solution I think! I doesn't take that much time!
Thanks to all for your support!
Greetz
Rucksacksepp
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.