On Thu, Aug 03, 2006 at 06:29:12PM -0400, Ken wrote:
> such I've added code to re-encode mp3's as they are being uploaded, but all
> for the existing mp3's, is it possible in the Linux shell to use maybe grep
> or something to go though all the folders and re-encode every single mp3 one
> at a time using this command
> lame -b 64 -f -m s SongName.mp3 stream_SongName.mp3
Write a script called /tmp/z like this
#!/bin/sh
infile=$1
dir=`dirname $infile`
base=`basename $infile`
outfile="$dir/stream_$base"
lame -b 64 -f -m s $infile $outfile
Make it executable, and test it with a single input file.
Now apply it to the whole directory:
find dir -name '*.mp3' -exec /tmp/z {} \;
where dir is the top-level directory name.
Cheers,
Warren
_______________________________________________
mp3encoder mailing list
[email protected]
https://minnie.tuhs.org/mailman/listinfo/mp3encoder