Converting captured rm stream to mp3 using mplayer

Standard

# emerge win32codecs
# USE=”mp3 real” emerge mplayer
安装后执行命令报错如下:
Error: /opt/RealPlayer/codecs/sipr.so.6.0: cannot open shared object file: No such file or directory
解决方法:emerge realcodecs

附将同目录下所有*.rm转换为*.mp3的shell

#!/bin/sh
for file in *.rm
do
  if [ -f $file ]; then
    mplayer $file -ao pcm
    echo "CONVERTING $file FORMAT TO MP3"
    lame -h -b 256 audiodump.wav `basename $file .rm`".mp3"
    rm -f audiodump.wav
  fi
done

转载请注明出处: http://yemaosheng.com

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.