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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

2,522件の閲覧回数
mrsafetwice
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.

 

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/qt-gstreamer/html/examples_2player_2main_8...

 

 

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:

sinks1.PNG

sinks2.PNG

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 件の賞賛
返信
1 返信

2,043件の閲覧回数
eduardo3
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 件の賞賛
返信