how to support subtitle on the imx6Q board

Document created by Joan Xie Employee on Jul 15, 2015
Version 1Show Document
  • View in full screen mode

current imx6 bsp, not only ltib but also yocto couldn't support subtitle.

now we have two solution to support subtitle on yocto,

1)one is extract the subtitle, then draw the subtitle on the video by UI, which is supported by the imxplayer.

this solution is using QT by imxplayer, so if you build yocto, should choose QT as target. basicly, aiurdemux send the text to the QT by appsink, then QT draw the text on the UI layer.


when build the yocot, pls using the command as below:

" bitbake fsl-image-qt5"


copy the font libary to the /usr/lib/fonts, then when you play the imxplayer, choose the font you need.



2)another one is blending the subtitle on the video buffer by gstreamer, then output with video



  1. enable gst pango lib in gstreamer1.0-plugins-base
  2. change playbin flag to disable native video flag
  3. basetextoverlay apply patch
  4. use following command line
    gst-launch-1.0 playbin flags=0x17 uri=file://$VIDEO_FILE suburi=file://$SUBTITLE_FILE
1 person found this helpful