Results 1 to 1 of 1
Sorry I don't know the right forum to post this.
I'm trying to convert wav to mp3 with bash script, but i always get the messages: Permission denied.
if i ...
- 02-21-2010 #1Just Joined!
- Join Date
- Feb 2010
- Posts
- 1
Wav to Mp3 problem?
Sorry I don't know the right forum to post this.
I'm trying to convert wav to mp3 with bash script, but i always get the messages: Permission denied.
if i try to convert to other directory like: /usr/music/tropical
Work excellent.
all folder are 777 permissions.
the folder are in:
/var/www/html/music/tropicals/salsa/
I don't know why the error, I can copy or delete from the folder, but not convert from wav to mp3.
this is the script:
recorddir=$destino
for i in `ls $recorddir/*.wav`; do
cd $recorddir
$recorddir/mlame -o "-b 8 -m m -q 9 --resample 8" $i
mp3=`echo $i | sed 's/.wav/.mp3/g'`
touch -d "$date" $mp3
#Uncomment the below line if you want your .wavs moved to a different directory.
#This way you can review the timestamps and mp3 files before deleting the .wav
#mv $i /wav_recordings
done
Using fedora 5.3 final
Thanks in advance..


Reply With Quote