Home Forums Reviews Tutorials Articles Register Search Today's Posts Mark Forums Read User Name Remember Me? Password

Notices



By cadj at 2004-12-28 02:05 Heres how to convert these files easily.



REQUIREMENTS:

mplayer

lame



1. create a text file called wmamp3 in your ~/



2. Open the file in your favorite editor and enter the following



Code: #!/bin/bash current_directory=$( pwd ) #remove spaces for i in *.wma; do mv "$i" `echo $i | tr ' ' '_'`; done #remove uppercase for i in *.[Ww][Mm][Aa]; do mv "$i" `echo $i | tr '[A-Z]' '[a-z]'`; done #Rip with Mplayer / encode with LAME for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm -waveheader $i && lame -m s audiodump.wav -o $i; done #convert file names for i in *.wma; do mv "$i" "`basename "$i" .wma`.mp3"; done rm audiodump.wav



4. In a console, give the command

Code: chmod +x ~/wmamp3



6. Now you can change to the directory containing your WMA files and give the command Code: wmamp3

It usually takes approx 30 seconds to convert a 4 min long file.



well i hope this has helped, if there are any improvements or comments please just let me know.











All times are GMT -5. The time now is 06:05 PM .

