50

I am stuck for a month with a video example given in Qt Video Overview.

I tried that code, but I only got a blank square (QWidget). I am using GStreamer0.10 for media playback over Qt5. I also played a video with gst-launch-0.10 command and it works okay, but I cannot determine what's happening in Qt and why it won't work.

I looked in the error log of X Server, located in /etc/X11/Xorg.0.log, and when I use fbdev as a display driver configured in /etc/X11/xorg.conf it shows me the error:

"FBDEV(0): FBIOPUTCMAP: Invalid argument"

When I use modesetting driver everything acts the same but no errors. I figured out that when I deleted xorg.conf file and start X server again, video works but with lack of colors and with flickering. Also the example works well on my Ubuntu VM and via vnc client. Every advice and help will be appreciated.

  • Target machine: BeagleBone Black

  • Distribution: Debian Jessie 8.2

  • Kernel Version: 4.1.15-ti-rt-r43

List of available drivers in /usr/lib/xorg/modules/drivers: ati_drv.so, mach64_drv.so, nouveau_drv.so, r128_drv.so, vesa_drv.so, fbdev_drv.so, modesetting_drv.so, omap_drv.so, radeon_drv.so

Here is a full error log from Xorg when I try to launch my Qt application on BeagleBone Black under Debian Jessie 8.2 -> http://pastebin.com/4x8KztBk

xorg.conf file from /etc/X11 -> http://pastebin.com/4WhX8pJc

12
  • If you just need a mediaplayer, qt-vlc might be better.
    – Zen
    Mar 14, 2016 at 11:15
  • @Thomas I will post everything you need, just say.
    – user5585984
    Mar 16, 2016 at 10:29
  • I posted update @Thomas
    – user5585984
    Mar 16, 2016 at 10:35
  • Maybe this can help you? doc.qt.io/qt-5/qwidget.html#native-widgets-vs-alien-widgets
    – arrowd
    Mar 16, 2016 at 10:55
  • @arrowd I tried export QT_USE_NATIVE_WINDOWS=1, but the same behavior.
    – user5585984
    Mar 16, 2016 at 10:56

1 Answer 1

0

It's an incompatibility between the versions of Qt5 and libGStreamer0.10.

You need libgstreamer1.0-0 (1.22.0-2), and gstreamer1.0-qt5 (1.22.0-5) plugin, and also you may need gtk+3.

gst-plugins built from gst-plugins-good1.0 (1.22.0-5). See: https://packages.debian.org/sid/gstreamer1.0-qt5