簡易檢索 / 詳目顯示

研究生: 康又仁
YU-JEN KANG
論文名稱: 運用動態資源分配方法之雲端視訊轉碼系統
Cloud Video Transcoding using Dynamic Resource Allocations
指導教授: 陳建中
JIANN-JONE CHEN
口試委員: 吳怡樂
YI-LE WU
唐政元
ZHENG-YUAN TANG
閻立剛
LI-GANG YAN
學位類別: 碩士
Master
系所名稱: 電資學院 - 電機工程系
Department of Electrical Engineering
論文出版年: 2021
畢業學年度: 109
語文別: 中文
論文頁數: 69
中文關鍵詞: 雲端轉碼雲端轉碼
外文關鍵詞: video transcoding, Apache Spark
相關次數: 點閱:217下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 雲端多媒體信號處理與串流技術近來已經廣泛應用到各社群網站(Social Network)與終端裝置,因為使用者的裝置及網路環境不一,雲端多媒體平台必須透過語音轉碼 (video transcoding)技術把原始檔案轉為適用於使用者網路與裝置的格式與品質。視訊處理需要高運算複雜度資源來達成,充分運用雲端運算與儲存資源以縮短整體處理時間,是應用平台的關鍵技術。為了處理媒體在異質性網路的串流控制問題,MPEG提出MPEG-DASH (Dynamic Adaptive Streaming over HTTP)媒體串流架構,可以依據用戶環境提供不同編碼格式和不同解析度等不同的媒體內容,以改善不同終端裝置的接收品質。本論文研究如何提升雲端運算的轉碼效率,研究項目包含: (1) 建構雲端叢集運算平台,並利用Spark系統框架設計分散式運算演算法,以提升雲端轉碼效率;(2) 使用分散式檔案系統(Hadoop Distributed File System, HDFS)儲存與管理視訊片段;(3) 運用Spark框架來改善雲端動態任務排程,並提出Cloud Video Transcoding using Dynamic Resource Allocations (CVTDRA) 演算法,根據運算節點的資源使用狀況,動態去分配轉碼工作到相對應的隊列(queue)上,並調整資源內container數量,使系統在最佳的負載平衡(load-balance)狀態下運作,如此能讓整體叢集達到較佳的資源使用率;(4) 透過Fair Scheduler排程演算法,優先排程複雜度較高的任務,避免複雜度較高的任務過度集中在某個工作節點上。最後再結合動態資源分配以及動態自適應轉碼,降低系統的作業時間。實驗結果顯示,本論文所提出的CVTDRA方法,能有效提升資源使用率達98%以上,並與前作最先進的LBCSNN演算法相比縮短約12%的轉碼時間。


    Cloud media signal processing technology has been widely used in various devices and social networks in recent years. Due to heterogeneous user devices and networks, the cloud platform has to provide different media file format for different user devices and network environments. As processing multimedia signals is very time-consuming, as compared to other signal types, how to shorten the processing time by well utilizing the cloud resources is the key of a successful media cloud. To provide good user experiences of media consuming under a heterogeneous network and device environment, a MPEG-DASH (Dynamic Adaptive Streaming over HTTP) standard was proposed to provide different media file formats for users with difference devices and under different network environments. To improve the cloud media transcoding efficiency, we study how to develop a cloud cluster computing platform, and utilize the Spark framework to perform distributed computations for transcoding jobs. How to manage and store divided video segments through HDFS (Hadoop Distributed File System) for efficient transcoding is also investigated. In our work, we study: (1) how to utilize the Spark framework to improve the dynamic task scheduling methods for cloud transcoding; (2) how to utilize the Hadoop Distributed File System, HDFS, to manage and storage of divided video segment; (3) how to improve the task scheduling efficiency based on the Spark framework with reference to resource utilization status and allocate tasks to suitable workers. In addition, the system has to adaptively adjust the number of containers to yield best load-balance operations. (4) We utilize the Fair Scheduler to set higher priorities to high complex tasks such that time consuming tasks can be processed at first to avoid task aggregation on one node. The system then combines dynamic resource management and dynamic adaptive transcoding functions to reduce the overall job processing time. Experimental results show that the CVTDRA method proposed in this paper can effectively increase the average Resource usage by more than 98%, and shorten the transcoding time by about 12% compared with the most advanced LBCSNN algorithm in the previous work.

    摘要 IV Abstract V 致謝 VII 目錄 VIII 圖目錄 XI 表目錄 XIII 第一章 緒論 14 1.1 研究背景與動機 14 1.2 研究方法概述 15 1.3 論文組織 16 第二章 背景知識與相關研究探討 17 2.1 媒體碼流之編碼壓縮相關背景知識 17 2.1.1 視訊轉換編碼介紹 18 2.2 雲端運算內容與服務之相關技術 19 2.2.1 雲端運算的服務模式 19 2.2.2 雲端平行處理技術 17 2.2.3 Hadoop 第一代 21 2.2.4 Yarn框架之內部構造 19 2.2.5 Apache Spark 與 Hadoop Yarn比較………………………………..25 2.2.6 Apache Spark…………………………………………………………………….26 2.3 排程演算法之相關背景知識 28 2.3.1 背景 28 2.3.2 排程演算法知識 28 2.3.3 First In First Out (FIFO) 30 2.3.4 Fair Scheduler (FS) 31 第三章 本論文之系統架構設計 34 3.1 系統架構與功能說明 35 3.2 系統運作架構分析 37 3.3 多媒體影音檔案分段之效能評估…………………………………….38 3.4 Cloud Video Transcoding using Dynamic Resource Allocations(CVTDRA) 43 3.4.1 背景 43 3.4.2 動態資源分配 43 3.4.3 動態自適應轉碼 45 3.4.4 Spark之數據本地化 46 第四章 實驗結果與系統展示 49 4.1 多機轉碼時間 49 4.2 實驗數據比較 52 4.2.1 切割大小比較 52 4.2.2 CVTDRA 53 4.2.2.1 動態資源分配……………………………………………….………………51 4.2.2.2動態自適應轉碼…………………………………………………………….52 4.3 演算法比較 55 4.3.1 演算法數據比較………………………………………………………………….53 4.3.2 資源使用率比較………………………………………………………………….54 4.3.3 CPU使用率與比較…………………………………………..……………….56 4.3.4 RAM使用率與比較………………………………………..…………………57 第五章 結論與未來研究探討 59 5.1 結論…..……………………………………………………..61 5.2 未來展望 62 參考文獻 ………..…….………66

    [1] Google duo. https://duo.google.com/about/
    [2] J. Dean and S. Ghemawat, “MapReduce: simplified data processing on large clusters,” Comm. of the ACM, vol. 51, pp.107-113, 2008.
    [3] Cheng, Dazhao, et al. “Adaptive scheduling of parallel jobs in spark streaming,”IEEE INFOCOM 2017-IEEE Conference on Computer Communications,. 2017.
    [4] Apache Spark. https://spark.apache.org/
    [5] FFmpeg.https://ffmpeg.org/
    [6] M. Gupta, F. Patwa, J. Benson, and R. Sandhu, “Multi-Layer Authorization Framework for a Representative Hadoop Ecosystem Deployment,” Proc. of ACM SACMAT (To appear). ACM. 2017
    [7] The Moving Picture Experts Group. http://mpeg.chiariglione.org/
    [8] International Telecommunication Union. http://www.itu.int/en/pages/default.aspx
    [9] M. Moinard et al, “Prediction of transformed (DCT) video coding residual for video compression,” arXiv preprint arXiv:1404.4181 , 2014.
    [10] C.-W. Song et al, “Distributed video transcoding based on MapReduce,” Int. Conf. Computer and Information Science (ICIS), pp. 309-314, 4-6, June. 2014.
    [11] Z. Tian et al, “High performance cluster based transcoder,” ICCASM, Taiyuan, pp. V2 48–52, Oct 2010.
    [12] Z. Li et al, “Cloud transcoder: bridging the format and resolution gap between internet videos and mobile devices,” SIGMM of NOSSDAV, June 2012.
    [13] T.-Y. Chen et al, “LaSA: A locality-aware scheduling algorithm for Hadoop-MapReduce resource assignment,” Int. Conf. Collaboration Technologies and Systems (CTS), pp. 342-346, 20-24, May. 2013.
    [14] The Apache Hadoop. http://hadoop.apache.org/
    [15] Apache Lucene. http://lucene.apache.org/
    [16] Apache Storm.http://storm.apache.org/
    [17] Apache Hadoop. https://hadoop.apache.org/docs/
    [18] Hadoop HDFS. https://hadoop.apache.org/docs/r1.2.1/hdfs_design.html
    [19] Apache Spark.https://spark.apache.org/
    [20] Huh, Jingang, Yong-Hwan Kim, and Jinwoo Jeong. “Ultra-High Resolution Video Distributed Transcoding System Using Memory-based High-speed Data Distribution Method.”IEEE Int. Techn. Conf. Circuits/Systems, Computers & Commun. 2019.
    [21] Y. Sambe et al, “High speed distributed video transcoding for multiple rates and formats,” IEICE Trans., vol. E88-D, no. 8, pp. 1923–1931, 2005.
    [22] Y.-T. Wang et al, “A round robin with multiple feedback job scheduler in Hadoop,” Int. Conf. Progress in Informatics and Computing (PIC), pp. 471-475, 16-18 May. 2014.
    [23] A. Rasooli and G. D. Douglas, “A hybrid scheduling approach for scalable heterogeneous hadoop systems,” IEEE High Performance Computing, Networking, Storage and Analysis (SCC), 2012.
    [24] D. Seo et al, “Load distribution algorithm based on transcoding time estimation for distributed transcoding servers,” Int. Conf. Information Science and Applications , pp. 1-8, 21-23, April. 2010.
    [25] Y. Sambe et al, “High speed distributed video transcoding for multiple rates and formats,” IEICE Trans., vol. E88-D, no. 8, pp. 1923–1931, 2005.
    [26] C.-C. Huang, J.-J. Chen, and Y.-H. Tsai, “A Dynamic and complexity aware cloud scheduling algorithm for video transcoding,” IEEE Int. Workshop Multimedia & Expo (ICMEW), 2016.
    [27] Z. Tian et al, “High performance cluster based transcoder,” ICCASM, Taiyuan, pp. V2 48–52, Oct 2010.
    [28] Y.-T. Ji et al, “Improving multi-job MapReduce scheduling in an opportunistic environment,” Int. Conf. Cloud Computing (CLOUD), pp. 9-16, June. 2013
    [29] Y.-C. Tao et al, “Job scheduling optimization for multi-user MapReduce clusters,” Parallel Architectures, Algorithms and Programming (PAAP), pp. 213-217, 9-11, Dec. 2011.
    [30] Sameti, Sajad, Mea Wang, and Diwakar Krishnamurthy. “Stride: Distributed video transcoding in spark.” IEEE International Performance Computing and Communications Conference (IPCCC). 2018.
    [31] Liu, Yunyu, and Jinpeng Yuan. “Spark platform based video transcoding.”in Procs. Int. Conf. Testbeds and Research Infrastructures for the Development of Networks & Communities. ICST, 2018.
    [32] Yang, Jing, and Ren-Fa Li. “A container resource configuration method in Hadoop Transcoding cluster based on requirements of a sample split.” IEEE Int. Conf. on Cloud Computing and Big Data Analysis (ICCCBDA). 2017.
    [33] Jokhio, Fareed, et al. “Prediction-based dynamic resource allocation for video transcoding in cloud computing.” IEEE Euromicro Int. Conf. Parallel, Distributed, and Network-Based Processing.2013.
    [34] Chen, Chien-Hung, et al. “Scheduling-aware data prefetching for data processing services in cloud.” IEEE Int. Conf. Advanced Information Networking and Applications (AINA). 2017.
    [35] Wei, Lei, et al. “QoS-aware resource allocation for video transcoding in clouds.” IEEE Trans. Circuits and Systems for Video Technology 27.1 :49-61,2016.
    [36] VMware. http://www.vmware.com/tw/
    [37] Li-Ying,Song. “A label-based dynamic cloud resource allocation method for video transcoding”.2017.

    無法下載圖示 全文公開日期 2024/02/01 (校內網路)
    全文公開日期 2026/02/01 (校外網路)
    全文公開日期 2026/02/01 (國家圖書館:臺灣博碩士論文系統)
    QR CODE