Can't display video inside a widget in Qt with Gstreamer

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

Can't display video inside a widget in Qt with Gstreamer

Contributor I

Hi, I’m having problems displaying a Gstreamer video widget (with QtGstreamer) inside Qt application in a Weston (Wayland) in the Debian 9.5 Stretch for Nitrogen8M board (i.MX8M) image.



The problem is that when the app runs, the video is played in fullscreen when it is intended to run inside the widget (automatically scaled), as this happens when I compile and run it in an ubuntu virtual box image.


Also, only for testing this problem it is not due to an error of the coding of my app, I compiled the QtGstreamer player example and the playback of the video was in fullscreen too, and was intended to run inside the qt window.



I’m guessing the problem is not in the Qt app but in the specific Gstreamer sinks for the i.MX8M.


These are the ones available:



Trying several of them does not work, the video even does not display (v4l2sink, qwidget5sink, xvimagesink, ximagesink, waylandsink, qt5glvideosink).


On some of them, the widget where the video should appear is transparent and in others is completely black.


Code for the widget uploaded in this post.


I don’t know what to do next. Could you help me in this?

Thanks in advance!

0 Kudos
1 Reply

Contributor III

I am trying exactly the same with an iMX6 Solo X and getting the same results. I also tried without Weston/Wayland and could not make that work as well.

I see your post is from December, have you managed to make it work?

0 Kudos