Can not display gstreamer inside widget qt

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

Can not display gstreamer inside widget qt

跳至解决方案
1,596 次查看
zsabhi
Contributor I

Greeting, 

In our IMX8mp based board we are using yocto image based on  wayland display server the board is linked to a LVDS screen where we want to display frames from our cameras with gstreamer .

As a first step our QT application is developed  to show a dummy video (the src comes from videotestsrc). whenever I try to launch the application in the board, it opens up an additional window where it stream the videotestsrc rather  than streaming it inside my widget. 

 

Any tips to how fix this problem ? 

 

Thanks 

Zsabhi

 

 

 

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,485 次查看
zsabhi
Contributor I

Problem solved by adding the following instruction to my main.cpp :

  • setenv("DISPLAY",":0",1);
  • setenv("GDK_BACKEND","X11",1);
  • setenv("QT_QPA_PLATFORM","xcb",1);

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,486 次查看
zsabhi
Contributor I

Problem solved by adding the following instruction to my main.cpp :

  • setenv("DISPLAY",":0",1);
  • setenv("GDK_BACKEND","X11",1);
  • setenv("QT_QPA_PLATFORM","xcb",1);
0 项奖励
回复
177 次查看
feiyu
Contributor III
zsabhi你好:
我们开发中同样使用了imx8mp开发板,想要实现的功能和你的非常接近,我们参考你的代码做了Demo,在ubuntu上可以正常执行,但是在imx8mp上执行会发生程序异常退出,APP在屏幕闪一下就会退出,提示"Segmentation fault"错误,请问你是否也遇到过同样的问题?最后是如何解决的?非常期待您的答复。
 
The following is English
 

Hello zsabhi:
We also used the imx8mp development board in our development, and the functionality we want to achieve is very similar to yours. We referred to your code and made a demo, which can be executed normally on Ubuntu. However, when executed on imx8mp, the program will exit abnormally, and the APP will exit with a "Segmentation fault" error when flashing on the screen. Have you encountered the same problem before? How was it ultimately resolved? Looking forward to your reply very much.

feiyu

新建位图图像.bmp

标记 (1)
0 项奖励
回复