Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using Windows XP, and I have several (about 160) flac files which I need to convert to wav. Since it is not practical to convert so many one by one, I need a utility that can convert them, but also preserve the metadata. It is crucial that the metadata is present and not altered, and I would highly prefer anything portable (sans-installation), and command line utilities would help too.

Thank you for helping

==EDIT== I don't need the metadata, can this conversion be done now, somehow?

share|improve this question
3  
Uhm, WAV has very limited metadata support you know? It simply can't handle everything that can be stored in a flac file. –  Zoredache Nov 18 '12 at 12:08

3 Answers 3

up vote 3 down vote accepted

The default flac distribution include a binary called flac(.exe). You can decompress flac files with it using the -d option.

Just use the cmd shell from the folder with .flac files:

FOR %f IN (*.flac) DO "C:\Program Files (x86)\FLAC\flac.exe" -d "%f"
share|improve this answer
    
Thank you, this is just what I needed. It also has an option to write to STDout (EXACTLY what I needed), so this is perfect. –  yuki96 Nov 23 '12 at 19:10
    
I have encountered difficulties when feeding the output from flac into lame. The duration of the mp3 files comes out wrong sometimes. It's possible to recalculate the length of VBR mp3s using some utility (e.g foobar2000), but I find it generally safer to use intermediate wav files. –  Ярослав Рахматуллин Jan 21 '14 at 23:10

MediaMonkey can do both the conversion and metadata mapping. It can also be installed in portable mode.

share|improve this answer

The solution above did not work for me on Windows 7 (I got errors about the FOR syntax).

I needed to recursively convert a ton of flac files in place, so I did the following.

  1. Create a batch file called decompress_flac.bat with this in it:
@ECHO OFF
FOR /R %1 %%G IN (*.flac) DO (
    ECHO "Attempting to convert %%G"
    flac.exe -d "%%G"
)
  1. Open up a command prompt and cd to wherever you put the batch file, if it isn't in your PATH.
  2. Call the batch file:
decompress_flac.bat f:\
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.