Linux系統視頻解碼問題

Linux視頻的支持問題困擾了很多Linux用戶,作爲一個新手,我也是飽受它的折磨。不過經過了一番探究後,自己也有一套解決方式,這裏做一下總結。

分兩個方面來討論視頻解碼的問題,一個是視頻的播放器,一個是安裝win32codecs。

 


安裝視頻播放器

我常用的視頻播放器有三個:MPlayer, RealPlayer, VLC media player


MPlayer用於播放一般常見視頻。


RealPlayer主要是用於解碼流媒體格式的,包括rm和rmvb。


VLC media player可以解決其他播放器不能播放avi格式視頻的問題,而且它的功能非常強大,在速度控制等方面其他播放器都不能比。

爲什麼使用VLC可以參考

http://forum.ubuntu.org.cn/viewtopic.php?f=74&t=272283&start=0

我遇到的問題與這個人相同,但這個人不是我,哈哈……

===============================================================================================

安裝 win32codecs

我想一般用過linux的人都會安裝win32codecs來支持windows下常見的視頻格式。

以前安裝win32codecs並不困難,但是自新版本開始就存在問題了。

可以參見

http://www.debian-multimedia.org


17/02/2010 :

non-free packages. Now flash-player, w32codecs, w64codecs and acroread packages are in non-free.

You may add non-free in /etc/apt/sources.list after the main word.

I'll put in non-free all packages without source code.


可是我添加了這個網址的軟件源後還是不能解決問題,因爲這個網站不可用。也不知道是網站掛了還是怎麼樣。


既然新版本的win32codecs不免費了,那就安裝以前版本的吧。好在我以前收藏了 w32codecs_20071007-0.1_i386.deb 可是安裝時發現軟件依賴不滿足。

原來是該版本的以來的libstdc++5,但是新版本的ubuntu源中只提供libstdc++6了……


針對以上問題我是這麼解決的

先是添加了ubuntu 9.04的軟件源,然後更新軟件源

sudo gedit /etc/apt/source.list


deb http://archive.Ubuntu.com/ubuntu/ jaunty main restricted universe multiverse

deb http://archive.Ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse

deb http://archive.Ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse

deb http://archive.Ubuntu.com/ubuntu/ jaunty-proposed main restricted universe multiverse

deb http://archive.Ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

deb-src http://archive.Ubuntu.com/ubuntu/ jaunty main restricted universe multiverse

deb-src http://archive.Ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse

deb-src http://archive.Ubuntu.com/ubuntu/ jaunty-updates main restricted universe multiverse

deb-src http://archive.Ubuntu.com/ubuntu/ jaunty-proposed main restricted universe multiverse

deb-src http://archive.Ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse

這次可不要覆蓋,只是在文件薇添加上述軟件源。


sudo apt-get update


然後安裝libstdc++5

sudo apt-get install libstdc++5


現在可以安裝w32codecs_20071007-0.1_i386.deb。安裝過程中會提示有新版的編碼可用,靠,它怎麼知道有新版的,可是新版安不了,就講究用它吧。

================================================================================================

其他方案

關於安裝win32codecs,網上還有很多其他方案

常見的是:


下面的命令將把 Medibuntu 的軟件倉庫添加到 Ubuntu,並同時把 Medibuntu 的 GPG 密鑰添加到您的密碼環,以便於驗證 Medibuntu 軟件包。

    sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list --output-document=/etc/apt/sources.list.d/medibuntu.list

    sudo apt-get -q update

    sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring

    sudo apt-get -q update

i386 用戶用下面這條命令安裝 Codecs:

    sudo apt-get install w32codecs libdvdcss2

amd64 用戶用下面這條命令安裝 Codecs:

    sudo apt-get install w64codecs libdvdcss2


這裏方案的關鍵就是導入Medibuntu軟件源,而事實上這個軟件源正是

http://www.debian-multimedia.org

提供的。

因此建議自己到這個網站上看看,會更好。不過,像我這種情況,添加了這個網站的源後無效的,按照上述導入啊medibuntu的方式自然也無效。


另外,可以在Ubuntu Tweak中添加Medibuntu源,然後刷新,會提示可用的軟件。全界面操作,簡便直觀,與上面的方法是異曲同工。




 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章