Skip to main content

Topic: Converting a directory to WavPack including all subfolders (Read 4653 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • Robertina
  • [*][*][*][*][*]
  • Banned
Converting a directory to WavPack including all subfolders
I am looking for a possibility to convert the complete content of a main folder to WavPack by starting the wavpack.exe only once. The source files are saved in subfolders of that main directory and in these subfolders I want to have saved the wv files.

Is this possible?

Thank you for any hint.
This is HA. Not the Jerry Springer Show.

  • bryant
  • [*][*][*][*][*]
  • Developer (Donating)
Converting a directory to WavPack including all subfolders
Reply #1
Hi Robertina.

On Linux you can do something like this to convert large batches of files:
Code: [Select]
wavpack *.wav */*.wav */*/*.wav

On Windows you can't do stuff like that because the WavPack program itself is doing the wildcard expansion. Instead though, you could use some other program to generate a list of all the actual files you want to process, then just specify that file with a '@' prepended:
Code: [Select]
wavpack @filelist.txt

Of course, you could use the command-line batch capability to do this, but you asked about one invocation of wavpack.exe. Note that you won't be able to do any meaningful tagging this way because all files must be the same.

Hope this helps... 

  • Robertina
  • [*][*][*][*][*]
  • Banned
Converting a directory to WavPack including all subfolders
Reply #2
I am on Windows and wavpack @filelist.txt works perfectly. The txt file I can generate easily with foobar2000.

From now on I will use wavpack -mtx @filelist.txt to convert my thousands of sample and loop files to WavPack.

Thank you for providing such a great piece of software and your support.
This is HA. Not the Jerry Springer Show.

  • Kohlrabi
  • [*][*][*][*][*]
  • Global Moderator
Converting a directory to WavPack including all subfolders
Reply #3
While at it you could use foobar2000 to convert the files without any detours with creating files. This also preserves metadata/tags if present.
It's only audiophile if it's inconvenient.

  • Robertina
  • [*][*][*][*][*]
  • Banned
Converting a directory to WavPack including all subfolders
Reply #4
Thank you for your tip, Kohlrabi.

I did so in the past. However now I use wavpack.exe for some reason.
This is HA. Not the Jerry Springer Show.