HydrogenAudio

Lossless Audio Compression => WavPack => Topic started by: Robertina on 2011-05-08 00:59:25

Title: Converting a directory to WavPack including all subfolders
Post by: Robertina on 2011-05-08 00:59:25
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.
Title: Converting a directory to WavPack including all subfolders
Post by: bryant on 2011-05-08 02:09:35
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... 
Title: Converting a directory to WavPack including all subfolders
Post by: Robertina on 2011-05-08 05:30:02
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.
Title: Converting a directory to WavPack including all subfolders
Post by: Kohlrabi on 2011-05-08 09:00:37
While at it you could use foobar2000 to convert the files without any detours with creating files. This also preserves metadata/tags if present.
Title: Converting a directory to WavPack including all subfolders
Post by: Robertina on 2011-05-08 09:36:31
Thank you for your tip, Kohlrabi.

I did so in the past. However now I use wavpack.exe for some reason (http://www.hydrogenaudio.org/forums/index.php?showtopic=85943&view=findpost&p=737945).