歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux技術 >> Linux Mplayer播放各種格式的電影

Linux Mplayer播放各種格式的電影

日期:2017/3/1 18:10:07   编辑:Linux技術

在Linux下使用Mplayer播放各種格式的電影,這個步驟需要使用linva倉庫。
使用root執行命令。
yum install mplayer mplayer-gui mplayerplug-in mplayer-doc mplayer-fonts
安裝結束後mplayer就安裝成功了。
使用普通用戶執行mplayer會出現如下信息:
[jzhenyon@dhcp-0-151 scsi]$ mplayerMPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer TeamCPU: Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz (Family: 6, Model: 15, Stepping: 6)CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1Compiled with runtime CPU detection.Usage: mplayer [options] [url|path/]filename.......
也可以執行gmplayer,會出現一個圖形對話框。
接下來需要安裝解碼器。
從下面的網頁下載一個最新的解碼器。
http://www1.mplayerhq.hu/MPlayer/releases/codecs/
並且把其中的文件解壓之後放入/usr/lib/codecs目錄下。
tar xvjf all-20061022.tar.bz2 -C /tmp
cp /tmp/all-20061022/* /usr/lib/codecs
然後找一個rmvb文件測試。
執行如下命令
mplayer test.rmvb

gmplaer test.rmvb
都可以播放這個電影。
firefox可以使用mplayerplug-in來作為插件來播放網頁中的視頻。

Copyright © Linux教程網 All Rights Reserved