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. RaspberryPi2EGLFS - Tutorial Qt Multimedia
Forum Updated to NodeBB v4.3 + New Features

RaspberryPi2EGLFS - Tutorial Qt Multimedia

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 2 Posters 2.1k Views 1 Watching
  • 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
    metRo_
    wrote on last edited by
    #1

    Hello,

    I was reading this tutorial and found the last chapter a little confusing.

    Qt Multimedia
    Unfortunately the GStreamer-based multimedia stuff is not quite usable at the time of writing - accelerated video works only sometimes (and with glitches), while the camera is just broken.
    As an alternative to Qt Multimedia, try using OpenMAX directly. For the Raspberry Pi Camera Module take a look at the raspistill application sources for an example on how to get the camera preview image into an OpenGL texture.
    If you wish to experiment with Qt Multimedia, try the following:
    Before building Qt Multimedia 5.6, make sure the following are installed:
    sudo apt-get install gstreamer1.0-omx libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
    Do not forget to sync the headers and libs back to the sysroot on the host PC and re-run the sysroot-relativelinks.py script.
    Once the GStreamer 1.0 dependencies are in place, make sure Qt Multimedia is built with 1.0 support:
    ~/raspbi/qt5/bin/qmake -r GST_VERSION=1.0
    To verify that the accelerated OpenMAX path is used for H.264 videos, do export GST_DEBUG=omx:4 before running a video playback app like the qmlvideofx example.
    

    It says gstreamer is unstable but and tell you to use OpenMAX, then tell you to install gstreamter but at the end tell you to check if OpenMAX is working.

    How can I make OpenMAX to work instead of gstreamer?

    Thank you

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

      Hi,

      If everything went correctly you should have a special version of gstreamer that uses OpenMax so you shouldn't have to do anything to have it working.

      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
      0
      • SGaistS SGaist

        Hi,

        If everything went correctly you should have a special version of gstreamer that uses OpenMax so you shouldn't have to do anything to have it working.

        M Offline
        M Offline
        metRo_
        wrote on last edited by
        #3

        @SGaist How can I select to use Qt Multimedia or OpenMAX?

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

          IIRC, the idea was to make the QtMultimedia plugin use OpenMAX so you shouldn't have to do anything special for that.

          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
          0
          • SGaistS SGaist

            IIRC, the idea was to make the QtMultimedia plugin use OpenMAX so you shouldn't have to do anything special for that.

            M Offline
            M Offline
            metRo_
            wrote on last edited by
            #5

            @metRo_ said:

            sudo apt-get install gstreamer1.0-omx libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev

            Can you clarify me which part is making Qt Multimedia use OpenMAX? BTW when I do ~/raspbi/qt5/bin/qmake -r GST_VERSION=1.0 it will replace older Qt Multimedia with new one?

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

              You should also delete the .qmake.cache file to ensure that the configuration process is fully done again.

              Right now, I have a doubt whether you need to use this or if with GStreamer 1.0 its all done for you.

              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