Journal of Applied Sciences ›› 2018, Vol. 36 ›› Issue (3): 504-514.doi: 10.3969/j.issn.0255-8297.2018.03.010

• Signal and Information Processing • Previous Articles     Next Articles

Implementation of Audio and Video Decoding and Synchronous Playback Based on Embedded Systems

ZHANG Sen-yong, GAO Shu-li, CHEN Wei-gang   

  1. School of Electronic Information Engineering, Tianjin University, Tianjin 300072, China
  • Received:2016-10-26 Revised:2017-01-04 Online:2018-05-31 Published:2018-05-31

Abstract:

An MPEG-2 TS stream decoding and synchronous playback system is designed and implemented based on ARM embedded system. In order to make full use of the resource of video codec embed in ARM processor, a hardware MFC codec is adopted to decode video data, and the open-source Mad- library (libmad) is used to decode audio data. Furthermore, V4L2 driver interface and ALSA library are adopted to play video and audio frame. Due to the delay of hardware decoding from video frame period, there exists a time difference between audio and video playbacks, causing audio and video unsynchronized. In the designed system, a method that synchronizes the video playback to the audio playback is used to achieve synchronization of audio and video playback. Test results show that the designed system can realize audio and video data decoding and synchronous playback.

Key words: audio and video decoding, audio and video synchronization, embedded system, multithreading

CLC Number: