Can not display gstreamer inside widget qt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can not display gstreamer inside widget qt

Jump to solution
1,599 Views
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

 

 

 

Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,488 Views
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);

View solution in original post

0 Kudos
Reply
2 Replies
1,489 Views
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 Kudos
Reply
180 Views
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

Tags (1)
0 Kudos
Reply