| Video surveillance technology in China has developed more than 20 years.There are three steps in video surveillance,they are the analog video surveillance,digital video surveillance,and the network video surveillance,which are widely used in all walks of our lives.Because of its unique security properties,including government,transportation,finance,telecommunications,factories,shopping malls,hotels,residential and other areas,the video surveillance plays an important role in people's lives.In China,our network environment has also been greatly improved: the popularity of optical fiber,wireless hotspots and 4G mobile networks,the network monitoring environment has been setup.With the technology of VoIP(Voice over IP),video streaming,video compression evolving,the network video surveillance software conditions are maturing.By the smarte device like iOS and Android's meteoric rise,the video surveillance will go to a new stage of intelligence.This article will introduce and implement an Android-based IP-Camera client,named Android Viewer.Its function is to achieve compliance with the "digital,networked,intelligent" video surveillance.It can be installed on any Android device,to watch the real-time view via the IP-Camera that setup in public network,to control the shooting angle via PTZ Camrea,it can not only monitor the video,but also record and replay the video.Ultimately to implement a surveillance systems that can be integrated into smart home networking or IoT network.The main work includes:1.Analyzing the needs of Android Viewer based on customized IP-Camera.2.Design a privatization of the communication protocol between IP-Camera and IP-Camera Viewer,which is based on a common network communication protocols such as SIP,RTSP,etc.The protocol is used to achieve the establishment and control of the session,but also includes NAT / STUN,PTZ control,recording,playback,keep alive and other custom features.3.Implement the H264 stream receiving and parsing compliance with RFC protocol of H264 RTP protocl.4.Using the JNI layer and NDK cross-compiler technology to porting FFMPEG,the C library into Android.5.Implement the H264 streaming video player by FFMPEG decoder,and through Android display system,to play the video on Android surface layer.6.Complete functional test of monitor,recording and replay,analyze and compare the performance of the image quality in different video parameters and test environment. |