gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=1920,height=1080 ! waylandsink
works on the NXP-provided L4.14.90_2.0.0_ga_images_MX8MMEVK/fsl-image-validation-imx-imx8mmevk.sdcard.
However, if I use Yocto to build the image using:
DISTRO=fsl-imx-wayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-wayland
bitbake fsl-image-validation-imx
I just get a black screen with the above gst-launch-1.0 command:
Any advice?
Jeff
Solved! Go to Solution.
Problem solved.
gstreamer does not work properly with the this DISTRO.
DISTRO=fsl-imx-wayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-wayland
I have to use:
DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-xwayland
I have seen comments in community.nxp.com where people have said fsl-imx-wayland is ok, but it really depends on what you are trying to do. Just note, I have found gstreamer does NOT work with this. You need to use fsl-imx-xwayland. I don't know the exact root cause (already spend countless hours building different recipes), but hopefully this helps the rest of you.
Jeff
I found fsl-image-validation-imx-imx8mmevk.manifest in both the NXP demo folder and my local Yocto build folder and when I compare the two they are quite different. I looked at the file SCR-4.14.98_2.0.0_ga and it lists some patches that were added to the META_FSL_BSP_RELEASE. I am not sure if this is relevant. Of the ones I diffed, I see the ones related to gstreamer but I am guessing these don't matter.
gstreamer1.0-plugins-base-ximagesink aarch64_mx8mm 1.14.4.imx
gstreamer1.0-plugins-base-xvimagesink aarch64_mx8mm 1.14.4.imx
gstreamer1.0-plugins-good-ximagesrc aarch64_mx8mm 1.14.4.imx
I reran the Yocto flow using Ubuntu 16.04.1 and I now see a very dark image from gst-launch. Any advice for debugging this issue?
did you try to use demo image first? if still has the same issue, pls tell me what image and dtb file in demo image you use, let me reproduce this on my board,
Thanks for your reply. Which demo image are you referring to?
demo image is from:
Embedded Linux for i.MX Applications Processors | NXP
the latest version is L4.14.98_2.0.0_MX8MM, pls try the demo image first, if you still failed, pls tell me which image nam...
I had a typo in my original reference to what worked:
The NXP provided image L4.14.98_2.0.0_ga_images_MX8MMEVK/fsl-image-validation-imx-imx8mmevk.sdcard works. But when I try to build using Yocto, it fails.
yes I know that .sdcard in demo image works, I mean that you can try the demo kenerl image instead of your own built image to test first
Please elaborate the steps as I am relatively new to this process.
Problem solved.
gstreamer does not work properly with the this DISTRO.
DISTRO=fsl-imx-wayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-wayland
I have to use:
DISTRO=fsl-imx-xwayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-xwayland
I have seen comments in community.nxp.com where people have said fsl-imx-wayland is ok, but it really depends on what you are trying to do. Just note, I have found gstreamer does NOT work with this. You need to use fsl-imx-xwayland. I don't know the exact root cause (already spend countless hours building different recipes), but hopefully this helps the rest of you.
Jeff
If you are referring to videotestsrc:
I run this and I get a green screen which is not what it is supposed to do.
gst-launch-1.0 -v videotestsrc ! autovideosink