--- On Sun, 15/3/09, sanalkumar mr <[email protected]> wrote:
> Dear all.....Can anybody suggest,
> howto convert bulk mp3 files to ogg using ffmpeg,
> recursively, keeping its old filenames and subfolder names,
> just like renaming files as sanal.mp3 to
> sanal.ogg.........is it possible? Plz help.....THANKS in
> advance.
>
Quite possible.
Suppose "mp3" is the directory where MP3s reside, and you want to put Ogg files
to 'ogg' directory. Run this is the mp3 directory
for i in *
do
ffmpeg -i $i ../ogg/$(basename $i .mp3).ogg
done
um.. I'm on windows now, can somebody check the script for typos ;)
Unix filenamings are case sensitive, so it'd be better if you had ".mp3"
instead of ".MP3". Run this rename-filename-lowercase-script
mkdir ../mp3-lower
for i in *
do
si=`echo $i | tr [[:upper:]] [[:lower:]]`
mv $i ../mp3-lower/$si #can use cp(1) here if you want
done
Get perfect Email ID for your Resume. Grab now
http://in.promos.yahoo.com/address
_______________________________________________
Mailinglist mailing list
[email protected]
http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org