标题:
基于Android手机的实时视频传输和解码
Real-Time Video Transmission and Decoding Based on Android Mobile Phone
作者:
吴晓佳, 叶桦, 苏雅, 仰燕兰
关键字:
视频传输, H.264解码, 安卓操作系统, 视频监控
Video Transmission; H.264 Decoding; Android; Video Surveillance
期刊名称:
《Software Engineering and Applications》, Vol.2 No.5, 2013-10-21
摘要:
本文主要探讨了Android手机视频监控软件的视频传输和解码。手机客户端通过Socket与平台服务器通讯,接收视频数据,并按照帧号重组成视频帧。本文设计采用丢帧机制解决了由手机处理能力弱导致待解码视频帧占满缓存区的问题,然后通过移植到Android系统中的FFmpeg解码库,实现了H.264格式视频数据的实时解码和图像格式转换。经测试结果表明软件的运行良好,画面清晰流畅。This paper discusses video transmission and decoding of the Android mobile phone video surveillance application. Mobile client communicates with server through Socket to receive video data, and restructures the video data to a video frame according to the frame number. This paper designs to use frame dropping mechanism to solve the problem that undecoded video frame filling the buffer because of the phone’s weak processing power. Then, it completes real-time decoding and image format conversion of the video data in H.264 format by FFmpeg codec library which was migrated to the Android system. The test results show that the software runs well, the picture is clear and smooth.