no service found for - org.qt-project.qt.mediaplayer



  • Hello,
    I am trying to display video on my Linux embedded ARM system (Beaglebone like).
    After a lot of messing around, I was able to compile gstreamer 1.0 for my embedded platform, I also able to see after running ./configure that gstreamer is going to compile (gstreamer ........yes (1.0) something like that)
    I have compiled my QtMultimedia (running make module-qtmultimedia) using my relevant toolchain and it also include gstreamer. When compilation done, I have found libqgsttools_p.so under qtmultimedia/lib/ include libQt5Multimedia.so and libQt5MultimediaWidgets.so.
    After loading my application include QT libraries I am getting the above message "no service found for - org.qt-project.qt.mediaplayer"
    I think that the application don't find gsttools.so.
    How can I make sure that the gst plugin location is OK?
    Can I inform QT about plugins locations?
    I think that I don’t have enough debug information from the system, how can i get more logs from my embedded device?
    BTW this video is running well on my Fedora 20

    Please advise!
    IL



  • More information, currently I link libqgsttools_p.so with all other QT libs, It ask me to add all depended libs such: gstreamer, gobject, gmodule gstapp, gsttag, gstaudio, gstvideo, gstbase etc...
    After adding all those libraries, the linking complete successfully.

    Please advice.
    IL



  • setting QT_DEBUG_PLUGINS=1
    I get th below logs.....
    please let me know what plugins am I missing?

    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib" ...
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libffi.so.6"
    "Plugin verification data mismatch in '/usr/lib/libffi.so.6'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libglib-2.0.so.0"
    "Plugin verification data mismatch in '/usr/lib/libglib-2.0.so.0'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libgmodule-2.0.so.0"
    "Plugin verification data mismatch in '/usr/lib/libgmodule-2.0.so.0'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libgobject-2.0.so.0"
    "Plugin verification data mismatch in '/usr/lib/libgobject-2.0.so.0'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libgstapp-1.0.so.0"
    "Plugin verification data mismatch in '/usr/lib/libgstapp-1.0.so.0'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libgstaudio-1.0.so.0"
    "Plugin verification data mismatch in '/usr/lib/libgstaudio-1.0.so.0'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libgstaudiodecoder.so"
    Found metadata in lib /usr/lib/libgstaudiodecoder.so, metadata=
    {
    "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
    "MetaData": {
    "Keys": [
    "gstreameraudiodecode"
    ],
    "Services": [
    "org.qt-project.qt.audiodecode"
    ]
    },
    "className": "QGstreamerAudioDecoderServicePlugin",
    "debug": false,
    "version": 328960
    }

    Got keys from plugin meta data ()
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libgstbase-1.0.so.0"
    "Plugin verification data mismatch in '/usr/lib/libgstbase-1.0.so.0'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libgstmediaplayer.so"
    Found metadata in lib /usr/lib/libgstmediaplayer.so, metadata=
    {
    "IID": "org.qt-project.qt.mediaserviceproviderfactory/5.0",
    "MetaData": {
    "Keys": [
    "gstreamermediaplayer"
    ],
    "Services": [
    "org.qt-project.qt.mediaplayer"
    ]
    },
    "className": "QGstreamerPlayerServicePlugin",
    "debug": false,
    "version": 328960
    }

    Got keys from plugin meta data ()
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libgstpbutils-1.0.so.0"
    "Plugin verification data mismatch in '/usr/lib/libgstpbutils-1.0.so.0'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libgstreamer-1.0.so.0"
    "Plugin verification data mismatch in '/usr/lib/libgstreamer-1.0.so.0'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libgsttag-1.0.so.0"
    "Plugin verification data mismatch in '/usr/lib/libgsttag-1.0.so.0'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libgstvideo-1.0.so.0"
    "Plugin verification data mismatch in '/usr/lib/libgstvideo-1.0.so.0'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/liborc-0.4.so.0"
    "Plugin verification data mismatch in '/usr/lib/liborc-0.4.so.0'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libpcap.so.1"
    "Plugin verification data mismatch in '/usr/lib/libpcap.so.1.0.0'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libpcap.so.1.0.0"
    "Plugin verification data mismatch in '/usr/lib/libpcap.so.1.0.0'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libqgsttools_p.so.1"
    "Plugin verification data mismatch in '/usr/lib/libqgsttools_p.so.1'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libqlinuxfb.so"
    Found metadata in lib /usr/lib/libqlinuxfb.so, metadata=
    {
    "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
    "MetaData": {
    "Keys": [
    "linuxfb"
    ]
    },
    "className": "QLinuxFbIntegrationPlugin",
    "debug": false,
    "version": 328960
    }

    Got keys from plugin meta data ("linuxfb")
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libreadline.so.5"
    "Plugin verification data mismatch in '/usr/lib/libreadline.so'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libz.so.1"
    "Plugin verification data mismatch in '/usr/lib/libz.so.1.2.3'"
    not a plugin
    QFactoryLoader::QFactoryLoader() looking at "/usr/lib/libz.so.1.2.3"
    "Plugin verification data mismatch in '/usr/lib/libz.so.1.2.3'"
    not a plugin

    loaded library "/usr/lib/libqlinuxfb.so"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/platforminputcontexts" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/styles" ...
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/mediaservice" ...
    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
    QFactoryLoader::QFactoryLoader() checking directory path "/usr/lib/iconengines" ...



  • @IL To resolve your issue you just need to install the developper package of gstreamer (either libgstreamer-dev or devel-gstreamer depending on your package manager)



  • @raf924
    Thanks for your replay.
    You mean that I need to install that on my target machine?
    How can I know that?
    Is there any debug flag that can be open and point on it?
    Currently it just said that it missing plugins even though I have set all.
    I am checking…

    Thanks again!!!



  • @IL Yeah you need to install it on the target. I don't know why though. It should only need the runtime package of gstreamer. I had a similar problem on windows and someone posted that solution for linux.



  • @raf924
    dose it need the libs file only from the package? like libgio, libglib, libgmodule, libgobject etc...
    or also the include folder and all other stuff?

    Thanks!



  • @IL i don't know but i think only the .so files, though the package manager will install everything anyway



  • @raf924
    Hi, I have installed gstreamer1-devel package but nothing changed.
    any idea?

    IL



  • @IL Did you also install libgstreamer? I know it seems redundant but this is the only thing that i know of that can solve this problem on Linux.



  • @raf924
    Hi, yes i already install libgstreamer, it is look like that my problem was that the plugins for the video should be located under lib/mediaservise and not flat under lib/
    But now, unsurprisely, I have new issue that crushes my target Linux:
    Inconsistency detected by ld.so dl-open.c 271 dl_open_worker...
    I now will take a look and try to resolve it.

    Thanks a lot for your time, I really appreciate that.
    IL



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.