PDA

View Full Version : Simple OGG to WAV Conversion


teh_n00b
21st December 2005, 04:28
Hello.

I have a bunch of OGG files, that I need to convert to WAV (PCM) with 1 channel (is that mono? I just follow winamp properties ;) ), 16 bits and 26.513 Hz...

I need a command line tool (no GUIs) for win32, and then either use wildcards or create a batch file...

However, I cant seem to find any :eek: Most command line ogg2wav tools Ive found can only encode to stereo (2 channel right?) but not to mono (1 channel), and I need that specifically...

I tried oggdec, and others..
Besweet seemed to be the right one, but unfortunately it outputs 6 files :mad: and by reading the FAQ (create a .mux file bla bla) I still dont understand how to merge them or something...

Is there any commandline tool that allows me to do what I want? :(

Thanks :)

HQ-LQ
21st December 2005, 17:28
you need "vorbis tools v1.0.1" or higher

@echo off
oggdec.exe -o "%~dpn1.wav" %1

teh_n00b
21st December 2005, 22:38
@echo off
oggdec.exe -o "%~dpn1.wav" %1

Hi. Thanks friend but it still outputs a 2-channel WAV, and I need 1 channel :(

HQ-LQ
22nd December 2005, 17:41
I have test it with a test-mono-ogg-file, and it works.
are you sure it is a single-chanal ogg-file?
can you attach your ogg-file?

to get the info of the ogg-file use 'ogginfo'.
it's inside of 'vorbis tools', too.
ogginfo.exe %1

teh_n00b
22nd December 2005, 18:33
I have test it with a test-mono-ogg-file, and it works.
are you sure it is a single-chanal ogg-file?
can you attach your ogg-file?

to get the info of the ogg-file use 'ogginfo'.
it's inside of 'vorbis tools', too.
ogginfo.exe %1
Oh! I see :) Nope, I guess the ogg is mono, so thats why it wasnt giving me mono on the WAV conversion... something to have in mind! Thanks a lot :)