The i.MX6UL and i.MX7D do not have VPU, so we use GStreamer plugins to decode videos that can apply to these SoC´s. The following steps are necessary to get H.264 installed on MX6ULEVK and MX7DSABRESD boards with yocto image on it.
Packages and Licenses:
Add in your <build-dir>/conf/local.conf file:
CORE_IMAGE_EXTRA_INSTALL += "gstreamer1.0-plugins-ugly-meta packagegroup-fsl-gstreamer1.0-commercial gst-ffmpeg"
LICENSE_FLAGS_WHITELIST += "commercial"
CORE_IMAGE_EXTRA_INSTALL += "gstreamer1.0-plugins-ugly"
Recipes:
Open your favorite text editor and copy the text below into a new text file:
PACKAGECONFIG_mx7d = "x264"
PACKAGECONFIG_mx6ul = "x264"
Save the file as gstreamer1.0-plugins-ugly_%.bbappend and put it in <build-dir>/sources/meta-fsl-arm/recipes-multimedia/gstreamer/.
Now, just run a bitbake to get the packages installed on the desired image. and you will able to see videos in h264 form with your mx6ul and mx7d