基于FFMPEG和SDL的遥测视频解析技术
详细信息    查看全文 | 推荐本文 |
  • 英文篇名:Analysis Technology of Telemetry Videos Based on FFMPEG and SDL
  • 作者:郝朝 ; 刘升护
  • 英文作者:HAO Zhao;LIU Sheng-hu;Chinese Flight Test Establishment;
  • 关键词:FFMPEG ; SDL ; 遥测视频 ; 实时监控
  • 英文关键词:FFMPEG;;SDL;;telemetry videos;;real-time monitoring
  • 中文刊名:WJFZ
  • 英文刊名:Computer Technology and Development
  • 机构:中国飞行试验研究院;
  • 出版日期:2018-12-20 15:56
  • 出版单位:计算机技术与发展
  • 年:2019
  • 期:v.29;No.264
  • 基金:国家国防科技工业国防基础科研计划重点项目(JCKY2016205B006)
  • 语种:中文;
  • 页:WJFZ201904038
  • 页数:4
  • CN:04
  • ISSN:61-1450/TP
  • 分类号:197-200
摘要
在飞行试验中,视频数据是试飞测试数据中的重要组成部分。视频实时监控是保障试飞安全的重要环节。为解决机载多路遥测视频实时监控的问题,提出了基于FFMPEG和SDL的遥测视频实时解析方案。通过UDP组播协议接收PCM遥测视频数据包,经过解包,拼成完整的一帧视频图像,采用FFMPEG进行视频解码并利用SDL进行显示。首先介绍了遥测视频PCM帧格式,重点介绍视频数据包解析方法,然后论述了FFMPEG和SDL对视频流进行解码与显示的流程。软件采用模块化、多线程并发和多缓冲区设计思路,提高处理效率,保证视频监控的实时性和功能的可扩展性。目前该软件已成功应用于多个型号任务视频实时监控中,实际应用效果表明该软件工作稳定,实现了多路视频图像的解析与显示,能够满足型号试飞需求。
        Video data is an important part of flight test data in flight test. Video real-time monitoring is an important part of ensuring flight safety. In order to solve the problem of real-time monitoring of airborne multi-channel telemetry videos,we propose a telemetry real-time video resolution scheme based on FFMPEG and SDL. The PCM telemetry video packets are received through UDP multicast protocol. After unpacking and frame matching,video is decoded by FFMPEG and displayed by SDL. First the PCM frame format of telemetry video is introduced,focusing on the method of video packet analysis. Then the process of decoding and displaying the video stream by FFMPEG and SDL is discussed. Modularity,multithreading concurrency and multi buffer design are adopted to ensure the real-time performance and scalability of the video monitoring. At present,the software has been successfully applied to the video real-time monitoring of multi type mission. The actual application shows that the software works stably to realize the analysis and display of multichannel video images and meets the requirements of type test flight.
引文
[1] 张杰,邹强,晏晖.机载多路视频PCM遥测传输技术[J].计算机与数字工程,2013,41(5):805-807.
    [2] 于宏亮.TCP与UDP的原理及其在网络编程中的区别[J].科技信息:学术版,2007(22):186.
    [3] 尹然然.基于UDP协议的可靠性改进协议[J].电脑知识与技术,2010,6(16):4379-4380.
    [4] ZENG Hao,FANG Yuan.Implementation of video transcoding client based on FFMPEG[J].Advanced Materials Research,2013,756-759:1748-1752.
    [5] CHENG Yun,LIU Qingtang,ZHU Xiaoliang,et al.Research on digital content protection technology for video and audio based on FFmpeg[J].International Journal of Advancements in Computing Technology,2011,3(8):9-17.
    [6] 辛长春,娄小平,吕乃光.基于FFmpeg的远程视频监控系统编解码[J].电子技术,2013(1):3-5.
    [7] 孟成,陈亚.FFmpeg+SDL实时播放摄像机视频设计[J].产业与科技论坛,2017,16(17):57-58.
    [8] 李科,李璐,兰时勇.基于FFmpeg和SDL实现多路实时流变换及播放[J].计算机技术与发展,2014,24(4):65-68.
    [9] 李亚南,杨亮,李波.一种基于YUV颜色空间的匹配跟踪算法[J].机电产品开发与创新,2017,30(4):89-90.
    [10] MUKHERJEE J,LANGB M K,MITRA S K.Demosaicing of images obtained from single-chip imaging sensors in YUV color space[J].Pattern Recognition Letters,2005,26(7):985-997.
    [11] 朱明海.流媒体服务器TS流封装的实现及流控的研究[D].北京:北京邮电大学,2011.
    [12] 李叶.基于TS流的数字电视播出系统的研究与实现[D].长沙:中南大学,2014.
    [13] COURBIN P,LUPU I,GOOSSENS J.Scheduling of hard real-time multi-phase multi-thread(MPMT) periodic tasks[J].Real-Time Systems,2013,49(2):239-266.
    [14] 郝文化.Windows多线程编程技术与实例[M].北京:中国水利水电出版社,2005.
    [15] 李晔,樊燕红,姜竞赛,等.多缓冲区技术在DSP语音存储系统中的应用[J].计算机应用与软件,2014,31(3):131-133.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700