Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Does QtMultimedia work on Linux?
QtWS25 Last Chance

Does QtMultimedia work on Linux?

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 2.9k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ArasA Offline
    ArasA Offline
    Aras
    wrote on last edited by Aras
    #1

    Can anyone here confirm if QtMultimedia in Qt 5.8 is working correctly in Linux? Are you able to play a soundeffect, music or video or display a webcam stream? I can not do any of these things.

    I am using Qt 5.8 libraries which I built from source after I installed all gstreamer 1.0 related libraries. I am running this on 64bit Ubuntu 16.04.

    I am sure that it is not my code and something in the qtmultimedia library is brocken. When I go into the qtmultimedia build folder, there is an example folder in there with a few examples built. When I try to run declarative camera for example, I get the following error:

    ~/Projects/Qt5.8_build_Nov28/qtmultimedia/examples/multimedia/declarative-camera$ ./declarative-camera 
    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera"
    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
    qrc:///VideoCaptureControls.qml:110: Error: Cannot assign [undefined] to QString
    qrc:///CameraListButton.qml:65:5: QML CameraListPopup: Binding loop detected for property "currentValue"
    qrc:///PhotoCaptureControls.qml:135: Error: Cannot assign [undefined] to QString
    qrc:///CameraListButton.qml:65:5: QML CameraListPopup: Binding loop detected for property "currentValue"
    

    The example app runs, but there is no video/camera stream.

    jsulmJ 1 Reply Last reply
    0
    • ArasA Aras

      Can anyone here confirm if QtMultimedia in Qt 5.8 is working correctly in Linux? Are you able to play a soundeffect, music or video or display a webcam stream? I can not do any of these things.

      I am using Qt 5.8 libraries which I built from source after I installed all gstreamer 1.0 related libraries. I am running this on 64bit Ubuntu 16.04.

      I am sure that it is not my code and something in the qtmultimedia library is brocken. When I go into the qtmultimedia build folder, there is an example folder in there with a few examples built. When I try to run declarative camera for example, I get the following error:

      ~/Projects/Qt5.8_build_Nov28/qtmultimedia/examples/multimedia/declarative-camera$ ./declarative-camera 
      defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.camera"
      defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
      qrc:///VideoCaptureControls.qml:110: Error: Cannot assign [undefined] to QString
      qrc:///CameraListButton.qml:65:5: QML CameraListPopup: Binding loop detected for property "currentValue"
      qrc:///PhotoCaptureControls.qml:135: Error: Cannot assign [undefined] to QString
      qrc:///CameraListButton.qml:65:5: QML CameraListPopup: Binding loop detected for property "currentValue"
      

      The example app runs, but there is no video/camera stream.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Aras Did you also install gstreamer dev packages?
      Were the audio and media plug-ins built when you built Qt?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      ArasA 1 Reply Last reply
      1
      • jsulmJ jsulm

        @Aras Did you also install gstreamer dev packages?
        Were the audio and media plug-ins built when you built Qt?

        ArasA Offline
        ArasA Offline
        Aras
        wrote on last edited by
        #3

        Did you also install gstreamer dev packages?

        Yes I installed all gstreamer 1.0 packages. All of them.

        Were the audio and media plug-ins built when you built Qt?

        not sure what you mean by this. Can you explain a bit more?

        1 Reply Last reply
        0
        • ArasA Offline
          ArasA Offline
          Aras
          wrote on last edited by
          #4

          I think I have an idea why this is, but I still do not know how to fix it. I am building Qt5.8 without gstreamer 1.0 support. I use this command to build Qt from source:

          ../qt5/configure -developer-build -opensource -nomake examples -nomake tests -force-debug-info

          when I look at the output for the multimedia section, I see this:

          Qt Multimedia:
            ALSA ................................... yes
            GStreamer 1.0 .......................... no
            GStreamer 0.10 ......................... no
            Video for Linux ........................ yes
            OpenAL ................................. no
            PulseAudio ............................. yes
            Resource Policy (libresourceqt5) ....... no
            DirectShow ............................. no
          Qt Location:
            Gypsy GPS Daemon ....................... no
            WinRT Geolocation API .................. no
          Qt WebEngine:
            Proprietary Codecs ..................... no
            Spellchecker ........................... yes
          

          So clearly Gstreamer 1.0 is not being configured for build. This is strange because I think it is default and since all gstreamer libraries are installed on my machine, I would expect that it should be included.

          I used the following command to test that gstreamer is working on my system and it did display a video stream:

           gst-launch-1.0 v4l2src device="/dev/video0" ! video/x-raw,width=640,height=480 ! autovideosink
          

          I feel like this should be so simple, but it is driving me crazy for a while now. How can I configure my Qt build to include Gstreamer 1.0?

          Help please!

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi,

            It really looks like you are missing the dev packages, can you double check your installed packages ?

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved