Font Size: a A A

Design And Implementation Of Ios Video Player Based On RTSP Protocol

Posted on:2019-10-16Degree:MasterType:Thesis
Country:ChinaCandidate:J L LiuFull Text:PDF
GTID:2428330590475424Subject:Software engineering
Abstract/Summary:PDF Full Text Request
With the development of the economy,people's requirements for their children's education are gradually increasing.In recent years,students' safety issues in school have frequently occurred,these events make parents pay more attention to students' life in schools.Based on these issues,some companies have launched home-school system which can contact parents and schools easily.Video surveillance is a very important part of home-school system.With the rapid development of the mobile network,moving video surveillance to mobile phones is a general trend.In order to play surveillance videos more efficiently in mobile devices,this paper researched online videos playback and achieved a set of lightweight video-playback-framework for iOS system platforms with RTSP streaming media protocol.For the implementation of lightweight iOS player framework,we mainly studyed the following issues: Firstly,rightsizing the video framework FFmpeg.Traditional players need a large number of protocol parsing modules and decoders because they support numerous streaming media transmission protocols and encoding formats.The network transmission protocol for home-school system is single,and the encoding formats of multimedia are known.Through the research on FFmpeg,this paper eliminated the network module and decoding module that were not used in the project,and reduced FFmpeg to 7.81% of the original scale.Secondly,packaging of this video player.In order to play online videos of the home-school system and provide a better interactive way,the player framework adopts.framework mode.This mode is commonly used in iOS App development,because all playback-related functions can be used withless header files being exposed.The playback event transmission solution adopts iOS System Notification.With this method,specific key values are designed for different events.The external users can obtain the corresponding event messages by the monitoring System Notification with key values.Thirdly,optimizing performance of this player framework.Repeated decoding work and a large number of images rendering use a large amount of resources such as CPU,which are the major causes of low performance in video player.For the optimization of video decoding,the VideoToolbox framework is used for hardware decoding in the project,which shifts the CPU pressure for video decoding.The optimization of large amount of images rendering use the OpenGL ES framework,which transfers the main rendering work to the GPU,reduces the workload of the CPU.Finally,the video player framework has been tested,it uses only 9.8 MB ROM space,which is in full compliance with the expectation. The performance of the runtime has been greatly improved by comparison with other methods,and it is also superior or equal to the products from other companies.At present,the framework has passed the acceptance of the project team and is applied to the home school system.
Keywords/Search Tags:iOS, RTSP, FFmpeg, Hardware Decode, OpenGL ES
PDF Full Text Request
Related items