gst-launch issue with yocto build of i.mx8mmevk

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

gst-launch issue with yocto build of i.mx8mmevk

跳至解决方案
3,000 次查看
jefflfree
Contributor III

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.

pastedImage_4.png

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:

pastedImage_3.png

Any advice?

Jeff

标签 (1)
0 项奖励
回复
1 解答
2,775 次查看
jefflfree
Contributor III

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

在原帖中查看解决方案

0 项奖励
回复
10 回复数
2,775 次查看
jefflfree
Contributor III

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

0 项奖励
回复
2,775 次查看
jefflfree
Contributor III

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?

0 项奖励
回复
2,775 次查看
joanxie
NXP TechSupport
NXP TechSupport

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,

0 项奖励
回复
2,775 次查看
jefflfree
Contributor III

Thanks for your reply. Which demo image are you referring to?

0 项奖励
回复
2,775 次查看
joanxie
NXP TechSupport
NXP TechSupport
0 项奖励
回复
2,775 次查看
jefflfree
Contributor III

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.

0 项奖励
回复
2,775 次查看
joanxie
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复
2,775 次查看
jefflfree
Contributor III

Please elaborate the steps as I am relatively new to this process.

0 项奖励
回复
2,776 次查看
jefflfree
Contributor III

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

0 项奖励
回复
2,775 次查看
jefflfree
Contributor III

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

0 项奖励
回复