| China is confronted with the problem of population aging,the behavior of home-based pension model with multifunctional nursing beds has become popular,and it is of great practical significance for medical workers to centrally monitor the living conditions of elderly people in different locations and the family members of different places to master the health of their loved ones.In response to the above situation,this paper proposes a telemedicine solution for home-based multifunctional nursing bed remote video and audio monitoring system,which can provide doctors or family members with video watch of patients’ conditions and provide voice-assisted medical services.This paper analyzes the user requirements of the remote monitoring system and the current development of the current video monitoring system,and gives the overall structure of the system.The system adopts P2 P application framework.The front-end of the system is an integrated IP Camera for collecting,encoding and transmitting images.The center of system P2 P connection platform is responsible for the connection between the front-end and the PC directly.The system terminal PC is responsible for user management and interface interaction,and it provides the service of multi-way video screen centrally display,two-way voice communication of one channel audio and pan/tilt control.The main work of this paper is the design of the PC software of the monitoring system.Firstly,it summarizes the main technologies used in PC-side software design: multi-thread programming and synchronization,FFmpeg library and DirectDraw graphics librarytechnique.Secondly,it focuses on the steps of using FFmpeg to decode H.264 video stream and using DirectDraw technology to display YUV420 P pixel format data on the screen respectively and the process of using GDI technology to achieve subtitle overlay display.Next,this paper describes the process of decoding the received audio stream into waveform audio data and using waveOut to display it on the PC side.Then,this paper introduces the steps of audio data collected by waveIn and transmitted to the monitoring front-end for playback through the network.Finally,this paper verify the achieved PC-side software functions.Test results show that PC-side software implements centrally video display of multiple multifunction nursing beds,audio interaction of one channel,information screen display and pan/tilt control,which basically meets user requirements,and PC-side software operation interface is friendly and it is easy to update and maintain as well. |