Android is the currently most popular mobile phone operating system. The research and application of multimedia services based on android platform is in a rapid developing stage. Video is the most important information of the mobile streaming media services, and its codec technology has broad application requirements. H.264is the latest international generic video coding standard which has high compression ratio and good network compatibility that can meet the transmission requirements of wireless communication network. In order to achieve real-time and high-efficient video application on the android mobile platform by using H.264standard, H.264crucial codec technology base on android platform is researched and implemented in this paper. The main research contents are as follows.A low complexity motion estimation algorithm is proposed. By using the hybrid coding ideas of UMHexagonS, and extracting the implied motion information in the initial prediction motion vectors, a new fast motion estimation algorithm based on motion information adaptation is proposed. Experimental results show that the motion estimation time of the novel algorithm is reduced13%-32%and the average PSNR is increased by0.0125dB. In addition, both the scenes adaptive ability and real-time performance are strongly strengthened.The H.264codec based on android platform is transplanted, encapsulated and optimized. Firstly, the X264encoder and FFMpeg decoder are transplanted to the android platform. Secondly, the interface functions of H.264codec are encapsulated. Thirdly, the codec is optimized from C language level and assembly language level. Finally, the performance of the codec is tested by using the standard test files. The test results show that the speed of X264encoder is increased2-3.4times and the speed of FFMpeg decoder is increased5%-18%. A real-time video codec scheme based on android platform is designed and implemented. The application scheme contains five important modules video acquisition, video coding, video transmission, video decoding and video display. The corresponding codes are written to compile and generate the apk package that can be installed directly on the android mobile phone. The application performances show that the optimized H.264codec can realize the real-time video application on android mobile phone smoothly. |