2011年1月19日 星期三

A batch script to covert wav to mp3 for EZGO8

man lame to view more options
ref:
http://www.linuxquestions.org/questions/slackware-14/need-a-bash-script-to-batch-convert-wav-to-mp3-555911/

#!/bin/bash
LAMEOPTS="-b 192 -s 16/48"

for FILE in *.wav ; do
  OUTNAME=`basename "$FILE" .wav`.mp3
  lame $LAMEOPTS "$FILE" "$OUTNAME"
done

沒有留言: