android开发 h264传输,基于android的H264视频无线传输系统的设计与实现

摘  要:随着智能手机在人们生活中的广泛应用,一些过去人们不敢想的梦想变成现实。科技的发展无疑是“中国梦”的重要动力,而智能手机在科技发展中无疑也扮演着重要的角色。在过去短短的几年里,智能手机的信息处理能力以及移动网络传输速率的都大幅提升。智能手机终端利用移动网络进行视频传输成为倍受人们青睐的研究对象。本文设计并实现了一种实用性较高的无线视频传输系统。本文首先介绍了这一课题的相关背景以及研究现状,介于智能手机市场的主流,采用Android智能手机作为视频数据的采集端,并阐述了最新版本的Android系统框架以及功能特点。此外,本文还对当前视频的编解码技术进行了研究,选择了H.264视频压缩编码方式,同时深入剖析了H.264技术细节。本文用C#语言编写的一个简单平台程序作为播放端,因此也对C#语言和. NET Framework平台进行了介绍。本文在具体的设计实现过程中,采用Android系统的MediaRecorder类实现实时视频的采集,并利用LocalSocket实现数据流的获取;直接在Android采集端通过分析提取SPS和PPS的信息,获得原始的H.264实时视频流;按照RTP/UDP协议对视频流进行打包发送;在上位机终端平台上,通过移植VLC播放器,并进行SDP会话的方式实现对视频的实时播放,完成一套基于android的H.264视频无线传输系统的实现。最后经过实际的测试,该系统比较稳定,方便使用。同时,由于成本低廉,该系统可以广泛应用,能满足多种不同的需求。As the intelligent mobile phone is widely used in people's life, some dreams which people dare not to think in the past have come true. The development of science and technology is the important power of 'China dream' undoubtedly, and the intelligent mobile phone also plays an important role undoubtedly in the development of science and technology. In the past few years, the ability of information processing of intelligent mobile phone and mobile network transmission rate increases dramatically. The intelligent mobile phone terminals which use mobile network for video transmission become the object of study that people favor. In this paper, a wireless video transmission system with high practicability have been designed and implemented.

This paper first introduces the background and research status of this project. With the mainstream of intelligent mobile phone market, this paper adopts Android intelligent mobile phone as the video data collection terminal, and elaborated the Android system framework and the function characteristics of the latest version of the. In addition, this paper also do some research for the current technology of video coding and decoding,then choose the H.264video compression coding and analyses H.264technical details deeply. Because this paper program a simple platform using C#language for the play of video, the C#language and.NET Framework platform also have been introduced.

In the design process, this paper adopt the MediaRecorder class of Android system to realize real-time video collection, and realize the acquisition of data stream using the LocalSocket class; through the analysis and extracting of SPS and PPS information in the Android collection terminal directly, the original H.264real-time video stream is obtained; according to the protocol of RTP//UDP it sent the video stream packing; it realizes the real-time video playback by the transplantation of VLC player and the conversation of SDP. Then a wireless transmission system for H.264video based on android is completed

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值