GStreamer iMX6 Image Display
There is no Freescale GStreamer element which does the JPEG decoding, so we must rely on a standard one, like 'jpegdec'. In case your Linux system was built using LTIB, in order to have the jpegdec element included on the gst-plugin-good, follow these steps:
- On the LTIB menuconfig, make sure the following packages are selected:
- gstreamer-plugins-good
- libjpeg
- libpng
- Remove the configure parameters '--disbale-libpng' and '--disable-jpeg' on the file './dist/lfs-5.1/gst-plugins-good/gst-plugins-good.spec'
- Rebuild and flash your board (or SD card) again.
Image display | VSALPHA=1 gst-launch filesrc location=sample.jpeg ! jpegdec ! imagefreeze ! mfw_isink |
test on ubuntu:
cbh@cbh:Desktop$ gst-launch filesrc location=picture/23-picomaster_cpu1.jpeg ! jpegdec ! imagefreeze ! autovideosink
cbh@cbh:Desktop$ gst-launch filesrc location=picture/87-AMILogoMedium.jpg ! jpegdec ! imagefreeze ! autovideosink