歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux服務器 >> Linux下使用Mplayer播放各種格式的電影

Linux下使用Mplayer播放各種格式的電影

日期:2017/3/2 16:53:01   编辑:Linux服務器

這個步驟需要使用linva倉庫。
 
  使用root執行命令。
 
  yum install mplayer mplayer-gui mplayerplug-in mplayer-doc mplayer-fonts
 
  安裝結束後mplayer就安裝成功了。
 
  使用普通用戶執行mplayer會出現如下信息:
 
   [jzhenyon@dhcp-0-151 scsi]$ mplayer
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: 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: 1
Compiled 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