摘要
为了解决视频数据太大而无法进行传输和传输过程中存在丢帧或失真问题,通过研究视频编解码将H.264编码与FFmpeg解码相结合来搭建监控系统,并采用移动目标检测法将移动的目标进行图片和视频保存。服务器端采用ARM9为硬件平台,USB摄像头采集图像数据,经H.264编码后传输给客户端。客户端接收数据后通过FFmpeg进行解码,Open CV函数进行显示监控画面,并通过网页浏览保存好的图片和视频。系统测试表明:视频数据的格式转换不失真及丢帧率较低,使用x264库对视频进行压缩编码、FFmpeg对视频解码,达到了监控系统预期理想的效果。
For solving the problem that the video data is too large to be transmitted and lost frame or distortion in video data transmission, the video surveillance system is constructed by combining H. 264 encoding with FFmpeg decoding by studying video codec, and motion detection method is used to save the moving object image and video. The server part uses ARM9 as the embedded hardware platform, and captures video data by the USB camera. Through H. 264 encoding, the video data is sent to client part. The client part decodes the received data by FFmpeg, then through OpenCV function to display the monitor screen and through the web to browse pictures and videos. The system test results show that the format conversion of the video data is not distorted and the frame loss ratio is low. Using x264 library for video compression coding, FFmpeg for video decoding, can achieve the desired effect of the monitoring system expected.
出处
《微型机与应用》
2017年第13期52-54,58,共4页
Microcomputer & Its Applications