Import Error when Integrating Qt and GStreamer.

iotsystek iotsystek at gmail.com
Sat Apr 3 15:41:34 UTC 2021


I’m new to Linux, Qt, GStreamer, qmake, cmake…  My goal is to learn all of
the above while creating something that is personally useful and challenging
for myself.

I have installed both Qt 5.15.2 and GStreamer 1.18.0 on an Ubuntu 20.10 PC. 
Both Qt and GStreamer are working as expected.  I have been able to build
and run any desired Qt Example without issue.  I have also been able to
compile and run all of the GStreamer tutorials as well as my own custom
pipelines using  C and gst-launch-1.0.

I’m attempting to use the example from:
https://cgit.freedesktop.org/gstreamer/gst-plugins-good/tree/tests/examples/qt/qmlsink
To get a test video to display in a QML application.

The qmlsink example compiles and runs BUT I have one problem that I have not
been able to resolve.  Within the main.qml file is an import that is not
found.

import org.freedesktop.gstreamer.GLVideoItem 1.0
Err = QML module not found (org.freedesktop.gstreamer.GLVideoItem 1.0)
See screen shot below:

<http://gstreamer-devel.966125.n4.nabble.com/file/t379857/Integrate_Qt_and_GStreamer.png> 

If I comment out the import line, then the line with GstGLVideoItem errors
with Unknown component and the app will not run.

*I cannot find any documentation regarding GLVideoItem or GstGLVideoItem in
any web search. It would be great if someone has information-documentation
regarding this feature and how best to use it and could share it.*

This problem spawns several noob questions regarding how to troubleshoot
GStreamer and Qt import issues.
1)	Is there a way to find which GStreamer file that this import is in?
2)	Is there a way to search the system for this import and what would I look
for?
3)	How can the app compile and run with this error?
4)	What needs to be installed or settings changed to satisfy the error.

Below is a list of everything “GStreamer related” installed on the system.

$ pkg-config --list-all | grep gstreamer 

gstreamer-1.0                  GStreamer - Streaming media framework
gstreamer-allocators-1.0       GStreamer Allocators Library - Allocators
implementation
gstreamer-app-1.0              GStreamer Application Library - Helper
functions and base classes for application integration
gstreamer-audio-1.0            GStreamer Audio library - Audio helper
functions and base classes
gstreamer-base-1.0             GStreamer base classes - Base classes for
GStreamer elements
gstreamer-check-1.0            GStreamer check unit testing - Unit testing
helper library for GStreamer modules
gstreamer-controller-1.0       GStreamer controller - Dynamic parameter
control for GStreamer elements
gstreamer-fft-1.0              GStreamer FFT Library - FFT implementation
gstreamer-gl-1.0               GStreamer OpenGL Plugins Libraries -
Streaming media framework, OpenGL plugins libraries
gstreamer-gl-egl-1.0           GStreamer OpenGL Plugins Libraries (Wayland
specifics) - Streaming media framework, OpenGL plugins libraries (EGL
specifics)
gstreamer-gl-prototypes-1.0    GStreamer OpenGL Plugins Libraries (OpenGL
Prototypes) - Streaming media framework, OpenGL plugins libraries (OpenGL
Prototypes)
gstreamer-gl-wayland-1.0       GStreamer OpenGL Plugins Libraries (Wayland
specifics) - Streaming media framework, OpenGL plugins libraries (Wayland
specifics)
gstreamer-gl-x11-1.0           GStreamer OpenGL Plugins Libraries (X11
specifics) - Streaming media framework, OpenGL plugins libraries (X11
specifics)
gstreamer-net-1.0              GStreamer networking library -
Network-enabled GStreamer plug-ins and clocking
gstreamer-pbutils-1.0          GStreamer Base Utils Library - General
utility functions
gstreamer-plugins-base-1.0     GStreamer Base Plugins Libraries - Streaming
media framework, base plugins libraries
gstreamer-riff-1.0             GStreamer RIFF Library - RIFF helper
functions
gstreamer-rtp-1.0              GStreamer RTP Library - RTP base classes and
helper functions
gstreamer-rtsp-1.0             GStreamer RTSP Library - RTSP base classes
and helper functions
gstreamer-sdp-1.0              GStreamer SDP Library - SDP helper functions
gstreamer-tag-1.0              GStreamer Tag Library - Tag base classes and
helper functions
gstreamer-video-1.0            GStreamer Video Library - Video base classes
and helper functions

Thanks in advance for any assistance.




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list