ubuntu下面目前知道有二種利用網路看電視的方式
(非電視卡)(TVUplayer是用wine模擬,最新版聽說不支援了)
第一種是sopcast
http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?viewmode=flat&type=&topic_id=18847&forum=10
第二種是PPS
http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?topic_id=19114&forum=10
不過,認真查詢了一下,好像只有sopcast是開源碼的,PPS是封閉格式
我就來玩玩sopcast吧,目前有qsopcast(使用mplayer)、sopcast-player(使用VLC)和totem-sopcast(使用totem)
PS:最近發現qsopcast和gsopcast是同一個團隊開發的,只是一個用qt,另一個用gtk而已
1.qsopcast
qsopcast只有簡體中文語系,是一個qm檔,我先轉回ts,用madedit,簡轉繁,然後再轉回qm:繁中的語系檔language_zh_TW.qm,記得放到/usr/share/locale/zh_TW/LC_MESSAGES/下面。
網站上有一件事要注意:
如果打開Qsopcast看不到頻道列表的話 那表示設定的頻道列表伺服器掛掉了
請按 Config→Config 將 Channel URL 換成 http://www.sopcast.cn/gchlxml 或 http://www.sopcast.com/gchlxml
換好按 Save 然後按一下 Channel 就會出現頻道列表了
有沒有辦法讓它內建就是http://www.sopcast.com/gchlxml呢?
首先,先安裝一個可以使用16位元讀取的編輯器,例如:madedit(PS:最近幾版的ubuntu中,madedit開新分頁會當掉,請別開新分頁)
避免出錯誤,先把原始的檔案備份,再用madedit打開它
$sudo cp /usr/bin/qsopcast /root
$sudo madedit /usr/bin/qsopcast
搜尋http://channel.sopcast.com/gchlxml把它改成http://www.sopcast.com/gchlxml,請注意,不可以使用delete刪除字串,要用取代的方式,多的字元,在16位元中補00,也就是說,下一個字串不可以離開原本的位置,不然程式會無法執行。
2.sopcast-player
參考https://launchpad.net/~portis25/+archive/ppa
加入ppa:portis25/ppa的來源
安裝sopcast-player
$sudo add-apt-repository ppa:portis25/ppa
$sudo apt-get update
$sudo apt-get install sopcast-player
對了,要修改一個地方,不然會找不到libvlc.so
$cd /usr/lib
$sudo ln -s libvlc.so.2 libvlc.so
頻道表還是要改,如果還是想龜毛一點
修改/usr/lib/sopcast-player/lib/pySopCastConfigurationManager.py裡面的
channel_guide= "http://channel.sopcast.com/gchlxml"
改成
channel_guide= "http://www.sopcast.com/gchlxml"
3.totem播放sopcast或 pps
一樣是參考https://launchpad.net/~portis25/+archive/ppa
加入ppa:portis25/ppa的來源
$sudo add-apt-repository ppa:portis25/ppa
$sudo apt-get update
$sudo apt-get install totem-sopcast
($sudo apt-get install totem-pps)
安裝完之後,記得開啟totem,點選『編輯』==>『外掛程式』,將sopcast 或 pps打勾,才能看到頻道表。
PS:sopcast_3.2.6-0_i386.deb 和 sp-auth_3.2.6-1_i386.deb應該是同一個來源編譯出來的,所以可以通用。
(當然不能同時安裝,如果你想要三套網路電視都裝的話,裝sopcast_3.2.6,sp-auth_3.2.6就可以不裝了)
PPS(轉貼自http://www.ubuntu-tw.org/modules/newbb/viewtopic.php?post_id=153820):
一、添加套件源及安裝相關套件
請在終端機中依序輸入下列四道指令:
sudo apt-get remove
–purge gst-plugins-pps libppswrapper libpps
sudo add-apt-repository
"deb http://ppa.launchpad.net/cnav/ppa/ubuntu
natty main"
sudo apt-get update
sudo apt-get install totem
gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad
gstreamer0.10-plugins-ugly libpps libppswrapper gst-plugins-pps二、
設定PPS通訊協定關聯a.「Ubuntu用戶」
請在終端機中依序輸入下列兩道指令:
gconftool-2
-s /desktop/gnome/url-handlers/pps/command ‘/usr/bin/totem %s’ –type
String
gconftool-2 -s /desktop/gnome/url-handlers/pps/enabled –type
Boolean trueb.「Kubuntu等用戶」
在Firefox的網址欄中輸入 about:config
後 按 Alt+Enter 以新分頁開啟
然後回來教學網頁 複製好底下這一行
network.protocol-handler.expose.pps接
著在「about:config」分頁的任意地方按滑鼠右鍵 新增「真假(Boolean)值」
輸入偏好設定名稱時 貼上剛才複製的那一行按「確
定」 然後選擇「false」三、於「PPS看看」點擊播放
上面步驟完成後,先做登出再登入
開啟 http://kan.pps.tv/
點擊想看的影片的「客戶端播放」
Firefox在跳出的視窗選取「totem」 若沒有「totem」可選 則按「選擇」後選取
/usr/bin/totem
按「確定」後大功告成!※、感謝研發與打包人員!
libppswrapper、
gst-plugins-pps 研發者:sunmoon1997 ( http://cgit.freedesktop.org/~jinghua
)
libpps、libppswrapper、gst-plugins-pps 打包者:portis25 ( https://launchpad.net/~portis25
)