120 likes | 225 Views
經濟部學研聯合研究計畫 台灣雲端運算應用實驗中心計畫. 分項子 計畫 :P2P video streaming. 主持人 : 李宗南 研究助理 : 高詠證 高惠翔 蔡宗銘 陳盈村. 分項子計畫 :P2P video streaming 預期完成進度.
E N D
經濟部學研聯合研究計畫台灣雲端運算應用實驗中心計畫經濟部學研聯合研究計畫台灣雲端運算應用實驗中心計畫 分項子計畫:P2P video streaming 主持人:李宗南 研究助理:高詠證 高惠翔 蔡宗銘 陳盈村
分項子計畫:P2P video streaming 預期完成進度 1 Quarter: 完成Client/Server 互動電視,包括伺服器建立,節目播放,使用介面設計; 機制部分完成服務代理元件做視訊串流分合.2 Quarter: 建立點對點互動電視 ,包括頻道收集,點對點拓樸建置; 機制部分完成搜尋雲端最佳伺服器.3 Quarter: 移植至XEN平台; 機制部分完成SVC視訊合流.4 Quarter: 點對點互動電視實地測試; 機制部分完成QoS及流量監控.
分項子計畫:P2P video streaming 實做部分 預期完成進度 1 Quarter: 完成Client/Server 互動電視,包括伺服器建立,節目播放,使用介面設計.2 Quarter: 建立點對點互動電視 ,包括頻道收集,點對點拓樸建置.3 Quarter: 移植至XEN平台.4 Quarter: 點對點互動電視實地測試.
分項子計畫:P2P video streaming 實做部分 目前完成進度
1. 完成Client/Server 互動電視,包括伺服器建立,節目播放,使用介面設計。 客戶端使用介面設計如下
2. 移植至XEN平台 工作包括 • Write video data into Hadoop Distributed File System(HDFS) and backup the data on three cloud nodes. • Build the video server to read video data from HDFS.
移植至Hadoop與 XEN平台 Architecture • Hadoop 0.20.1 in Ubuntu 9.04
移植至Hadoop與 XEN平台Video Access via HDFS • VideoWriter: write video data into HDFS • VideoReader: read video data from HDFS • VideoPlayer: play video data from server which is built in Hadoop
移植至Hadoop與 XEN平台實做 之VideoWritercode • public class HadoopServerWrite { • public static void main( String[] args ) throws Exception { • String filePath = "./video_file/spool"; • String dstPath = "hdfs://wushoupong-desktop:9000/user/wushoupong/p2p/output"; • InputStreaminFile = new BufferedInputStream( new FileInputStream(filePath) ); • Configuration conf = new Configuration(); • FileSystemfs = FileSystem.get(URI.create(dstPath), conf); • OutputStream out = fs.create(new Path(dstPath), new Progressable() { … } • IOUtils.copyBytes(inFile, out, 4096, true); • …
移植至Hadoop 與 XEN平台實做 之 VideoReadercode • public static void main(String[] args) throws Exception { • String uri = "hdfs://wushoupong-desktop:9000/user/wushoupong/p2p/output"; • String outPath = "./HadoopDownload/spool"; • Configuration conf = new Configuration(); • FileSystemfs = FileSystem.get(URI.create(uri), conf); • InputStream in = null; • FileOutputStreamoutFile = new FileOutputStream(outPath); • try { • in = fs.open(new Path(uri)); IOUtils.copyBytes(in, outFile, 4096, false); } finally { …. }
分項子計畫:P2P video streaming 討論 • 原預期完成進度 較難以顯現雲端運算之優勢,目前著重video streaming運算與處理