Il 16/10/07, mauro dorigatti<venasafena@xxxxxxxxxxx> ha scritto: > Rgazzi ho un problema, ......... > Volevo impostare uno script per trasformare i file .wma in mp3 dato che > AUDIO CONVERT non riconosceva i file wma. > MA purtroppo lo script non h adato risultati migliori, anzi.... Prova questo: #################################### #!/bin/bash # Attenzione, per eseguire digitare come da esempio: # wma2mp3 ./canzoni_wma/ ./canzoni_mp3/ if [ "$1" != '' ] then src="$1" else src="$PWD" fi if [ "$2" != '' ] then dest="$2" else dest="$PWD" fi if [ `ls -l $src | grep -ce ".[Ww][Mm][Aa]"` -le 0 ] then echo "ERR: Non ci sono files WMA in $src." exit; fi #Rip with Mplayer / encode with LAME for i in $src/*.[Ww][Mm][Aa] do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$i" i=`echo $i | tr ' ' '_' | tr '[A-Z]' '[a-z]'` lame -m s audiodump.wav -o -b 320 "$dest/`basename "$i" .wma`.mp3" done rm audiodump.wav # FINE DELLO SCRIPTINO Eugenio -- Per iscriversi (o disiscriversi), basta spedire un messaggio con OGGETTO "subscribe" (o "unsubscribe") a mailto:linuxtrent-request@xxxxxxxxxxxxx