Thursday, February 26, 2009

ripcd2mp3.sh -- cdparanoia and lame... bash script #linux terminal

#!/bin/bash clear echo echo " ************************************************* " echo " 1st info appended by AXA to * cdparanoia command" echo " call this bash shell ap * ripcd2mp3.sh " echo " realy works ? " echo echo " use -- cntl c -- to cancle." echo " ripping will start in 2 sec. with cdparanoia" echo " and then will run lame to encode wav files to mp3 " echo " rip music-cd to mp3 with.sh 2008march 3rd." sleep 2 # Usage Instructions. # needs cdparanoia app to rip track test. myCDripper=$(cdparanoia -B -Z 2- HQ-music.wav ); # Get all files in current directory myWavFiles=$(ls *.wav); # Go through the wav's and convert them for oldWav in $myWavFiles do clear echo echo " auto-lame V 0.12 *appended " echo " * wav2mp3 2008march V beta " # Get original filename without .Wav extension originName=$(echo $oldWav|awk '{sub(".wav"," ");print $1}'); echo $originName echo # Create the new filename including .mp3 newMp3=$originName".mp3" echo "Encoding $oldWav to $newMp3" echo echo # lame options lameoptions=$(echo -vbr-new -b160 -B 192 -V 4 -q 2 ); # Convert it lameit=$(lame -vbr-new -b160 -B 192 -V 4 -q 2 $lamoptions $oldWav $newMp3); done

No comments: