123456789101112131415161718 |
- #!/bin/bash
-
-
-
-
- for src in *.wma
- do
- if [ -f "$src" ]
- then
- fifo=`echo "$src"|sed -e 's/wma$/wav/'`
- rm -f "$fifo"
- mkfifo "$fifo"
- mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$src" -ao pcm:file="$fifo" &
- dest=`echo "$src"|sed -e 's/wma$/mp3/'`
- lame --vbr-new "$fifo" "$dest"
- rm -f "$fifo"
- fi
- done
|