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,398 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,287 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
1 Reply
1,288 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