Internet Radio

    版本為 06:54, 30 Nov 2024

    到這個版本。

    返回到 版本存檔.

    查閱目前版本

    MPlayer 混音(Audio Mixing)

    要使 MPlayer 可以支援混音,必須符合以下項目:

    1. 必須使用 ALSA 音效驅動模式,OSS 不支援混音
    2. MPlayer 編譯時必須加上 alsa 支援參數,檢查 mplayer 是否已支援 alsa,執行
      #mplayer -ao help
    3. MPlayer 的播放指令
      支援混音 #mplayer -ao alsa -cache 256 .......
      不支援混音 #mplayer -ao alsa:device=hw=0.0 .......
    4. 混音播放時,聲音如果有出現明顯的雜音,解決方式如下
      編輯 /etc/asound.conf
    pcm.!default {
      type plug
      slave.pcm {
        type dmix
        ipc_key 1024
        slave {
           pcm "hw:0,0"
           rate 44100
        }
      }
    }
    

    lircrc for Mplayer

    /etc/lirc/lircrc

    begin
            button = mute
            prog = mplayer
            config = mute
            repeat = 0
    end
    begin
            button = power
            prog = mplayer
            config = quit
            repeat = 2
    end
    begin
            button = chUp
            prog = mplayer
            config = pt_step -1
            repeat = 0
    end
    begin
            button = chUp_V2
            prog = mplayer
            config = pt_step -1
            repeat = 0
    end
    begin
            button = chDown
            prog = mplayer
            config = pt_step 1
            repeat = 0
    end
    begin
            button = chDown_V2
            prog = mplayer
            config = pt_step 1
            repeat = 0
    end
    begin
            button = volUp
            prog = mplayer
            config = volume 47
            repeat = 0
    end
    begin
            button = volUp_V2
            prog = mplayer
            config = volume 47
            repeat = 0
    end
    begin
            button = volDown
            prog = mplayer
            config = volume -47
            repeat = 0
    end
    begin
            button = volDown_V2
            prog = mplayer
            config = volume -47
            repeat = 0
    end
    

    Debian 5.0 編譯 MPD

    apt-get install wget build-essential libglib2.0-dev
    apt-get install libasound2-dev libmms-dev libshout3-dev libmpcdec-dev libao-dev
    
    wget http://downloads.sourceforge.net/project/musicpd/mpd/0.17.3/mpd-0.17.3.tar.bz2?r=http%3A%2F%2Fmpd.wikia.com%2Fwiki%2FServer&ts=1365082963&use_mirror=nchc -O mpd-0.17.3.tar.bz2
    tar xjf mpd-0.17.3.tar.bz2
    cd mpd-0.17.3
    ./configure --prefix=/opt/mpd
    make
    make install
    

    交叉編譯 MPD

    下載 mpd-0.17.3.tar.bz2

    開始編譯

    tar xjf mpd-0.17.3.tar.bz2
    cd mpd-0.17.3/
     
    
    Powered by MindTouch Core