greigmg
Jul 29 2006, 08:55
I have a hard disk full of live shows. Each show is in an individual
folder (titled by name and date of show), and contains the individual
wav files of the show, labeled "disc1track1, disc1track2, etc." It's
the same naming scheme in each of the 250 or so folders for each show.
I want to convert each audio file to flac - is there a way to do this
all at once? I can't just copy and paste each file into the frontend
because they share file names. What would be ideal is some way to add
the folders to a list, and have it encode any audio files found in each
folder. Thanks!
edit: whoops, didn't realize I was in wrong forum. emailed a moderator to move it.
Hi, take a look at this
thread, this comment may be of use

:
QUOTE(Egor @ Mar 23 2005, 18:37)

I use my own script on Windows 2000:
CODE
@echo off
set encoder="C:\Program Files\flac-1.1.2-win\bin\flac.exe"
for /r "." %%d in (.) do (cd %%d & for %%f in (*.wav) do %encoder% "%%f")
Just copy it to a new text file and name that file with .cmd extension (e.g. "flac.cmd").
Then put the file in a directory with .wav files to encode and run (double click on) it.
All .wav files in this directory and all subdirectories will be encoded with default flac parameters.
And of course don't forget to change path to your flac.exe.
greigmg
Jul 29 2006, 11:05
Ah, exactly what I was looking for. How then do I edit the default parameters that flac will use?
Thanks again, this will make my life a lot easier.
QUOTE(greigmg @ Jul 30 2006, 00:05)

How then do I edit the default parameters that flac will use?
You need to add additional parameters after %encoder% statement, e.g. (this will change compression level to the best possible and increase padding size for easy tagging):
QUOTE
@echo off
set encoder="C:\Program Files\flac-1.1.2-win\bin\flac.exe"
for /r "." %%d in (.) do (cd %%d & for %%f in (*.wav) do %encoder% --best --padding=64000 "%%f")
greigmg
Jul 30 2006, 06:56
Works perfectly - my Duron 600mhz is currently chugging away at compressing 300 gigs worth of wav files. Thanks again for the script and the quick replies.
is there a win98SE batch version of this? because i've tried in it and it doesn't work...
pepoluan
Aug 7 2006, 07:26
Unless you're using 4DOS, there's no way to do that.
Search the HA forums for "catwalk" (IIRC), it's a freeware program that can traverse a directory tree and perform identical operations inside each directory.
Fandango
Aug 7 2006, 10:31
Or an alternative would be to use the FLAC GUI. You can get all the files by using the Windows Explorer search: in case all the files you want to encode are in the sub-directories of one folder, you right-click that folder and do a "Search" for all "*.WAV files" and then drag'n'drop the result list into the FLAC GUI.
kjoonlee
Aug 7 2006, 18:26
QUOTE(pepoluan @ Aug 7 2006, 22:26)

Unless you're using 4DOS, there's no way to do that.
Never say never! There's always Cygwin with its scripting and utilities.
find -type f '*.flac' -exec flac -V8 {} \;
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.