Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Converting audio/video files (http://stream-recorder.com/forum/forumdisplay.php?f=16)
-   -  

Free shell script (for Linux and other Unices) to convert real audio .ra files to mp3

(http://stream-recorder.com/forum/showthread.php?t=64)

Stream Recorder 03-24-2006 08:11 AM

Free shell script (for Linux and other Unices) to convert real audio .ra files to mp3


 
Converting Real Audio RA files to mp3 with MPlayer using free shell script

The script will convert every *.ra file below the current directory.

#!/bin/bash
for i in $(find -iname *_*.ra); do
filename=`basename "$i" .ra`
#Rip with Mplayer / encode with LAME
echo "Ripping $i"
mplayer -quiet -vo null -vc dummy -af volume=0,resample=44100:0:1 -ao pcm:waveheader "$i"
echo "Encoding $i to "$filename".mp3"
lame --preset voice -m s audiodump.wav -o "$filename".mp3

rm audiodump.wav


All times are GMT -6. The time now is 05:14 PM.