Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QtMultimedia and gstreamer backend
QtWS25 Last Chance

QtMultimedia and gstreamer backend

Scheduled Pinned Locked Moved Solved Mobile and Embedded
qtmultimediagstreamer1.0linuxbuildroot
6 Posts 2 Posters 5.7k 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.
  • M Offline
    M Offline
    Mark81
    wrote on 15 May 2016, 05:59 last edited by Mark81
    #1

    I'm trying to use QtMultimedia in my Buildroot system.
    The documentation says:

    
    The minimum required version of GStreamer is 0.10.24. The 1.x series is also supported.
    
    To build Qt Multimedia, you need the GStreamer library, base plugins, and development files for your system. To run applications that use Qt Multimedia, you might also need to install the following GStreamer plugins: 'good', 'ugly', 'bad', ffmpeg (0.10), and libav (1.x). These additional plugins contain various codecs for audio and video decoding, as well as the necessary components for using the camera APIs. The package names for GStreamer vary between Linux distributions; try searching for gstreamer or libgstreamer in your distribution's package repository to find suitable packages.
    

    Some questions:

    • I need ALL base, good, ugly and bad plugins? They are a lot!
    • which are the "development" files? Just the headers?

    I installed gstreamer 1.0 and some of the plugins but I still receive the error:

    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.mediaplayer"
    

    EDIT:

    I checked the configure log for Qt5Multimedia and the gstreamer tests were successfull. And under /usr/lib/qt/plugins/mediaservice/ on target I find:

    libgstaudiodecoder.so
    libgstcamerabin.so
    libgstmediacapture.so
    libgstmediaplayer.so

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 15 May 2016, 21:18 last edited by
      #2

      Hi,

      What do you mean by some of the plugins ? And what are you trying to open with your media player ?

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

      M 1 Reply Last reply 16 May 2016, 09:41
      0
      • S SGaist
        15 May 2016, 21:18

        Hi,

        What do you mean by some of the plugins ? And what are you trying to open with your media player ?

        M Offline
        M Offline
        Mark81
        wrote on 16 May 2016, 09:41 last edited by
        #3

        @SGaist I mean the base plugins are about 24. good and bad ones over 50 each... I selected the most common, i.e. from base:

        • audioconvert
        • audiotestsrc
        • playback
        • audioresample
        • tcp
        • typefind
        • videotestsrc
        • videoscale
        • volume
        • alsa

        It's an embedded system and I would like to install only the plugins I need. But if I DO need to install them all to have QtMultimedia working ok, I could live with that.

        I'm trying to play a standard PCM wave file.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 16 May 2016, 20:22 last edited by
          #4

          Since it's PCM and unless I'm mistaken, you could just use QAudioOuput and write the file data in there.

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

          M 1 Reply Last reply 17 May 2016, 16:01
          0
          • S SGaist
            16 May 2016, 20:22

            Since it's PCM and unless I'm mistaken, you could just use QAudioOuput and write the file data in there.

            M Offline
            M Offline
            Mark81
            wrote on 17 May 2016, 16:01 last edited by
            #5

            @SGaist Yes, but it's a workaround, because QAudioOutput is quite different than QMediaPlayer :) . Anyway I found the problem: libQt5OpenGL was missing: I can't find this requirement for QtMultimedia in the official documentation.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 17 May 2016, 20:16 last edited by
              #6

              Depending on your needs, QAudioOutput is rather a lightweight alternative but QMediaPlayer is indeed easier to setup and run.

              Glad you found out and thanks for sharing !

              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

              1/6

              15 May 2016, 05:59

              • Login

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