节点文献

基于FFmpeg的音视频流封装技术的实现

Implementation of Audio and Video Encapsulation Based on FFmpeg

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 周恕义孙业宝贺玉虎金蕾

【Author】 ZHOU Shu-yi;SUN Ye-bao;HE Yu-hu;JIN Lei;Modern Education Technological Center, Beijing University of Technology;College of Computer Science, Beijing University of Technology;

【机构】 北京工业大学现代教育技术中心北京工业大学计算机学院

【摘要】 流媒体直播点播系统中,将实时采集的音视频流封装为流媒体文件是一项必不可少的工作。目前,FFmpeg封装音视频流广泛采用先解码、后编码封装的方式,针对该方式内存占用较多、CPU使用率较高的情况,提出将实时的H.264视频流和AAC音频流不解码直接封装为MP4文件的实现方法。该方法基于FFmpeg SDK进行二次开发,可处理实时采集的H.264视频流和AAC音频流。实验结果表明,该方法封装实时音视频流占用内存少,CPU平均使用率较低,适合在流媒体直播点播系统中使用。

【Abstract】 In the VOD and live streaming system, encapsulating the video and audio stream into a container is necessary. Analyzes the decoding and encoding method to pack streams using FFmpeg, in order to solve high usage rate of memory and CPU, proposes a novel method of packing streams without decoding into MP4 container. Based on FFmpeg SDK, packs H.264 video streams and AAC audio streams into MP4 container without decoding. Experimental results show that this method reduces the usage rate of memory and CPU, suitable used in the VOD and live stream systems.

【关键词】 流媒体点播封装视频流音频流
【Key words】 StreamingVODEncapsulationVideo StreamsAudio Streams
【基金】 北京工业大学教育教学研究课题基金资助项目(No.203000514111003)
  • 【文献出处】 现代计算机(专业版) ,Modern Computer , 编辑部邮箱 ,2014年19期
  • 【分类号】TN948.64
  • 【被引频次】7
  • 【下载频次】209
节点文献中: