Linux下Mplayer開啟xv(MPlayer-1.0rc2)

來源:互聯網
上載者:User
ATI顯卡裝好驅動後
mplayer 選擇 xv後只有映像無聲音
控制台xvinfo後提示
X-Video Extension version 2.2 screen #0 no adaptors present
則需要在Section "Device"加入
        Option          "TexturedVideo" "on"

這時mplayer播放器可以用了
但是,此時播放任何視頻都會閃爍...
打補丁:http://smspillaz.googlepages.com/mplayrepatch.patch

代碼:
先解壓
$ cd ~/MPlayer-1.0rc2

$ patch -p1 <~i/mplayrepatch.patch

$ sudo ./configure

$ sudo make

$ sudo make install r

編譯mplayer之前應先裝好w32codecs
,編譯安裝完後安裝 皮膚,字型,否則打不開mplayer的GUI(gmplayer,在控制台運行下會報錯的)

重新編譯mplayer

代碼:
sudo apt-get build-dep mplayer

#這個命令自動安裝mplayer的編譯環境

接下來擷取mplayer的源碼包

代碼:
apt-get source mplayer

#會自動下載源碼到你自己的家目錄裡並解壓縮包裹

代碼:
cd mplayer****-rc2/

#進入源碼目錄

代碼:
./configure --prefix=/usr/share/mplayer --enable-gui --enable-largefiles --language=zh_CN --enable-menu --enable-freetype --enable-dvdnav
--enable-mad

make

sudo make install

安裝sccm
compiz設定

General Options->General->Unredirect Fullscreen Windows去掉勾
mplayer即可以正常的最大化了...

重新編譯後mplayer不能在檔案管理工具中直接雙擊開啟

代碼:
sudo gedit /usr/share/applications/mplayer.desktop


找到 Exec=gmplayer %U 這行把U換成F 儲存

環境 AMD Turion64 3000+ Ubuntu 64位版 8.04 ATI Mobile X600

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.