3.2 Vlc Media Player Installation
Total Page:16
File Type:pdf, Size:1020Kb
Master thesis Master Thesis Electrical engineering Electrical Engineering Dec 2012 Thesis no: MEEyy:xx Month Year Measurement of user-related performance problems of live video streaming in the user interface Anoop Vuppala Lakshmi Narayana Sriram School of Computing School of Computing Blekinge Institute of Technology Blekinge Institute of Technology 371 79 Karlskrona 371 79 Karlskrona Sweden Sweden This thesis is submitted to the school of computing at Blekinge Institute of Technology in partial fulfillment of the requirements for the degree of Master of Science in Electrical Engineering. This thesis is equivalent to 20 weeks of full time studies. Contact Information: Authors: Anoop Vuppala E-mail: [email protected] Lakshmi Narayana Sriram E-mail: [email protected] University advisor: Dr. Markus Fiedler School of Computing School of Computing Internet: www.bth.se/com Blekinge Institute of Technology Phone: +46 455 38 50 00 371 79 Karlskrona Fax: +46 455 38 50 57 Sweden ABSTRACT Video streaming has gained public interest for video conferencing, telecasting, surfing and communicating. The video player plays a vital role in presenting the streaming video which is utmost important for content providers. It has a huge impact on user experience. Wireless networks are vulnerable to noise, interface and have bandwidth limitations. Due to the intrinsic vulnerability of the communication channel and large number of variables involved, simulations alone are not enough in the evaluation of the performance of the wireless networks and performance of the video in the player is to be considered. When there are disturbances or shortages of capacity in the network, network disconnection or sender failure, the video player stops. This research focuses on the performance of the video in the player while streaming over wireless networks. The contribution of this research work is to instrument a video player and to log the disturbances of a streaming video. The disturbances are gathered in terms of timestamps. The timestamps were recorded in the log files by repeating several experiments on different videos. Furthermore, the packet count, memory size allocation and utilization were calculated using PHP scripts. These calculations are used to plot graphs as well as to analyze the performance of the video in the player. The major findings of this research are emptiness of the buffer for audio and video, rebuilding of video frame, triggering re-sampling for audio, also the player response to these findings while playing the video and analyzing them for different types of videos. Keywords: VLC player, VLC player modules, QoE, quality degradation, data logging, re-buffering ii iii Acknowledgements First, we would like to express our heartfelt gratitude to Dr. Markus Fiedler, for giving such a great opportunity to be a part of his research. We are thankful to Selim Ickin for his precious time and valuable assistance during the thesis work. Their knowledge and experience helped to enrich the results. We are thankful to Jean-Baptiste Kempf (site administrator of VLC) for his help to solve problems using VLC forums. We are thankful to Anders Nelsson for providing Dr. Markus Fiedler as supervisor. We are thankful to Microsoft for the software “Microsoft Visual Studio” which helped in understanding source code and finally very much thankful to BTH for providing all the facilities that are necessary to complete the work. Last but not least we would like to thank our parents and friends for the support and encouragement throughout the research study. Their motivation helped us to overcome all the problems we encountered throughout the study. iv CONTENTS ABSTRACT ................................................................................................................................... II CONTENTS ................................................................................................................................... V 1 INTRODUCTION .................................................................................................................. 1 1.1 STREAMING ...................................................................................................................... 1 1.2 RELATED WORK ................................................................................................................ 2 1.3 OUR CONTRIBUTION.......................................................................................................... 3 1.4 RESEARCH QUESTIONS...................................................................................................... 3 1.5 RESEARCH METHODOLOGY ............................................................................................... 4 1.6 OUTLINE .......................................................................................................................... 4 2 BACKGROUND .................................................................................................................... 6 2.1 VLC MEDIA PLAYER AND ITS FUNCTIONS ........................................................................... 6 2.1.1 Functions ..................................................................................................................... 6 2.1.2 Works performed by VLC player: ................................................................................. 7 2.2 VLC PLAYER MODULES .................................................................................................... 7 3 METHODOLOGY ............................................................................................................... 10 3.1 EXPERIMENTATION ......................................................................................................... 10 3.2 VLC MEDIA PLAYER INSTALLATION ................................................................................ 10 3.2.1 Configure .................................................................................................................. 11 3.2.2 Compile ..................................................................................................................... 12 3.3 SOURCE CODE MODIFICATIONS ........................................................................................ 13 3.3.1 Number of Received RTP packets ............................................................................... 13 3.3.2 Audio buffer allocation and utilization........................................................................ 13 3.3.3 Buffer utilization for video ......................................................................................... 14 3.3.4 Processing of RTP packet........................................................................................... 14 3.3.5 Main loop execution ................................................................................................... 14 3.4 VALIDATION ................................................................................................................... 15 4 RESULTS ............................................................................................................................. 18 4.1 PERFORMANCE OF VIDEO 1 .............................................................................................. 18 4.1.1 Traffic flow during streaming ..................................................................................... 18 4.1.2 Audio buffer allocation and utilization........................................................................ 19 4.1.3 Video buffer allocation and utilization ........................................................................ 20 4.1.4 Number of RTP packets processed .............................................................................. 21 4.1.5 Working of VLC player .............................................................................................. 21 4.2 PERFORMANCE OF VIDEO 2 .............................................................................................. 22 4.2.1 Traffic flow during streaming ..................................................................................... 22 4.2.2 Audio buffer allocation and utilization........................................................................ 23 4.2.3 Video buffer allocation and utilization ........................................................................ 23 4.2.4 Number of RTP packets processed .............................................................................. 24 4.2.5 Working of VLC player .............................................................................................. 24 4.3 PERFORMANCE OF 1080PIXELS VIDEO .............................................................................. 25 4.3.1 Traffic flow during streaming ..................................................................................... 25 4.3.2 Audio buffer allocation and utilization........................................................................ 25 4.3.3 Video buffer allocation and utilization ........................................................................ 26 4.3.4 Number of RTP packets processed .............................................................................. 26 4.3.5 Working of VLC player .............................................................................................. 27 5 DISCUSSION ....................................................................................................................... 29 6 CONCLUSION ....................................................................................................................