On Thu, Jan 23, 2003 at 03:51:41PM +0200, Sergey A. Ovchar wrote: > Hi. > How can I convert several *.wav to *.mp3, by the _one_ command, using lame. I'm >interesting about batch mode.
lame file.wav file.mp3 Add the '--decode' option to go in the opposite direction. I have a perl script that will do a directory at a time, like this: #!/usr/bin/perl -w use Getopt::Std; getopts("d:"); if($opt_d) { $dirname = $opt_d; } else { $dirname = "."; } opendir(DIR, $dirname) or die "can't opendir $dirname: $!"; while (defined($file = readdir(DIR))) { $newfile = $file . ".mp3"; $newfile =~ s/\.wav//; `lame $dirname/$file $dirname/$newfile`; } closedir(DIR); > > And how can I redirect output trom "cdparanoia -B" to the lame ? > Use a pipe? -- James Hughes
msg25755/pgp00000.pgp
Description: PGP signature