2016年2月20日 星期六

[Ubuntu] 使用 peerflix 串流觀看 BT(torrent) 種子的影片

瀏覽數

來源: http://www.webupd8.org/2014/03/peerflix-stream-torrents-with-vlc-or.html


網路上有很多影片,其來源是 BT(BitTorrent),若要觀看必須先使用BT相關軟體(如qBittorrent),先將影片完整下載到電腦上才能觀看。

peerflix 是用 node.js 開發的程式,可以將 BT 下載的影片,在本機電腦上建立一個串流網路服務,播放程式再使用串流方式觀看影片。簡單的說就是,影片可以一邊下載一邊觀看。

首先必須先安裝node.js,再使用 npm (Node Package Manager 是Node.js 的主流套件管理程式) 安裝 peerflix。

假設已經安裝好 node.js 與 npm,安裝只要執行:
npm install -g peerflix


1.使用 手機 or mpv  看影片:
peerflix /tmp/movie.torrent
 



手機 看影片:
用手機瀏覽器開啟串流網址 http://192.168.0.13:8888/ ,再選擇要使用那個影片播放app開啟,(以我的Android 手機為例,我通常使用mxplayer來播放),即可觀看影片。

mpv+字幕檔 看影片:
mpv http://127.0.0.1:8888 --sub-files=/tmp/movie.ass


2.使用 mplayer 看影片:
peerflix http://some-torrent/movie.torrent -m
or
peerflix /tmp/movie.torrent -m

使用 mplayer + 字幕檔 看影片 :
peerflix http://some-torrent/movie.torrent -m -t /tmp/movie.ass
or
peerflix /tmp/movie.torrent -m -t /tmp/movie.ass
 

3.使用 mpv 看影片:
peerflix http://some-torrent/movie.torrent -k 
or
peerflix /tmp/movie.torrent -k

使用 mplayer + 字幕檔 看影片 :
peerflix http://some-torrent/movie.torrent -k -t /tmp/movie.ass 
or
peerflix /tmp/movie.torrent -k -t /tmp/movie.ass

 
PS:
觀看影片的方式,建議使用上述的第1種方式,比較彈性。詳細參數使用請輸入:
peerflix --help

沒有留言: