#!/bin/csh # # This script resamples the mp3-file to 48 kHz, 1.5 times the (standard) # Atari Falcon 030 DSP MC56001 freq. # After this encoding occurs to mp2, with a sampling frequency of 48 kHz # and a bitrate of 192 kbps. # # Note that you need write permission in the directory where you put this # script and the mp3 source files. Note also that this script, as all scripts, # needs to be executable in order to work: # do a 'chmod 755 mp3tomp2' on the command line, if neccesary. # set lijst=`/bin/ls *.mp3` foreach mp3bestand ( $lijst ) mpg123 -r 48000 -s $mp3bestand | toolame -s 48 /dev/stdin $bestand.mp2 end # # This one is more robust, but takes a LOT of harddisk space. #set lijst=`/bin/ls *.mp3` #foreach mp3bestand ( $lijst ) # set bestand=`basename $mp3bestand .mp3` # mpg123 -r 48000 -w $bestand.wav $mp3bestand # toolame -s 48 $bestand.wav $bestand.mp2 # rm *.wav #end # # End of script.