In linux.....  Something like
-----------------------------------------------------------------
for FOO in `ls -R | grep wav` ; do flac -5 ${FOO} ; done
----------------------------------------------------------------
or
--------------------------------------------------------------
find . -name "*.wav" | while read FOO
do
       flac -5 "${FOO}"
done
---------------------------------------------------------------

Now, if you're using winders, All I can do is give you some perl

---------------------------------------------------
#!/usr/bin/perl -w

use strict;

my $dir = shift @ARGV;

opendir DIR, $dir;
while (my $file = readdir(DIR)) {
        next unless $file =~ /wav$/;
        my $cmd = qq[flac -8 "$file" ];
        print "$cmd\n";
        print `$cmd`;
}
closedir DIR;
-----------------------------------------------------------------------------

From: "Matthew Greig" <[EMAIL PROTECTED]>
To: <[email protected]>
Subject: [Flac] Batch Process for wav->flac?
Date: Thu, 1 Jun 2006 18:55:31 -0500

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 200 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!



_______________________________________________
Flac mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/flac


_______________________________________________
Flac mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/flac

Reply via email to