A bin folder, holding helpfull scripts and commands
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718
  1. #!/bin/bash
  2. # Dump wma to mp3
  3. # from http://ocaoimh.ie/2005/08/16/how-to-convert-from-wma-to-mp3/
  4. for src in *.wma
  5. do
  6. if [ -f "$src" ]
  7. then
  8. fifo=`echo "$src"|sed -e 's/wma$/wav/'`
  9. rm -f "$fifo"
  10. mkfifo "$fifo"
  11. mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$src" -ao pcm:file="$fifo" &
  12. dest=`echo "$src"|sed -e 's/wma$/mp3/'`
  13. lame --vbr-new "$fifo" "$dest"
  14. rm -f "$fifo"
  15. fi
  16. done