Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved QtMultimedia work with Gstreamer 1.0

    General and Desktop
    qtmultimedia
    5
    17
    13983
    Loading More Posts
    • 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.
    • sbenejam
      sbenejam last edited by

      How can I get QtMultimedia build and linked against Gstreamer1.0 instead of Gstreamer 0.10 on Qt5.6?. On Ubuntu 16.04 LTS the default gstreamer version is 1.0.

      1 Reply Last reply Reply Quote 1
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        As silly as it may sound, just build the module by hand. If you used one of the installer, grab the sources from there and then usual combo applies: qmake, make, make install. Note that you will need the development package of GStreamer installed. Also, use the full path to qmake when you build QtMultimedia.

        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 Reply Quote 0
        • sbenejam
          sbenejam last edited by

          Hi,
          I will try this. Now I have to learn how to activate gstreamer 1.0 instead 0.10.

          Thanks

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            Call configure --help to have all the options available. IIRC it's something like -gstreamer 1.0

            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 Reply Quote 0
            • sbenejam
              sbenejam last edited by sbenejam

              I build qtmultimedia from Qt5.6 source with qmake -r GST_VERSION=1.0, make, make install. Then I rebuild application that uses qtmultimedia with Qt5.6 and video don't work, sound from video is played, video window is black.
              Maybe I miss some steps.

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                Did you install GStreamer 1.0 plugins 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 Reply Quote 0
                • sbenejam
                  sbenejam last edited by

                  Yes all Gstreamer 1.0 plugins packages are installed. Video examples from Qt5.6 works as expected.

                  1 Reply Last reply Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    Just to be sure I understand things correctly, the Qt Multimedia example is working just fine but your application is missing the video part ?

                    What are you doing differently to setup your video widget ?

                    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 Reply Quote 0
                    • sbenejam
                      sbenejam last edited by

                      I'm trying to compile this program https://github.com/mcallegari/qlcplus

                      1 Reply Last reply Reply Quote 0
                      • SGaist
                        SGaist Lifetime Qt Champion last edited by

                        Then you should contact the authors of that project about that matter.

                        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 Reply Quote 0
                        • R
                          Raz3l last edited by

                          Sorry to "reactivate" this post again but I am stuck with the same problem. I I am running qt on a Ubuntu 16.04 LTS and using Qt 5.7 installed by and online installer. How can I enable the QtMultimedia with Gstreamer 1.0? I see that it's possible to build the QtMultimedia sources and configure them to use 1.0, but I don't have the knowledge how can I do that, if I read this post correctly. Can you provide so more deep information on how to do that building?

                          1 Reply Last reply Reply Quote 1
                          • SGaist
                            SGaist Lifetime Qt Champion last edited by

                            Hi,

                            @sbenejam wrote it:

                            qmake -r GST_VERSION=1.0
                            make
                            make install
                            

                            qmake must be the one from the Qt version you want to modify.

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

                            R 1 Reply Last reply Reply Quote 1
                            • R
                              Raz3l @SGaist last edited by

                              @SGaist Solved! Thank you !

                              1 Reply Last reply Reply Quote 0
                              • T
                                tamolo last edited by tamolo

                                Sorry if my question is silly but i built the QtMultimedia with
                                "qmake -r GST_VERSION=1.0
                                make
                                make install" but how to replace this QtMultimedia with the old Multimedia in my Qt5.7. Just copy and paste some folder from new QtMultimedia to old Multimedia or what should i do? . Can anyone please tell me.

                                jsulm 1 Reply Last reply Reply Quote 0
                                • jsulm
                                  jsulm Lifetime Qt Champion @tamolo last edited by

                                  @tamolo I would expect "make install" to put the new libs in your old installation if you used the correct qmake.

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

                                  T 1 Reply Last reply Reply Quote 0
                                  • T
                                    tamolo @jsulm last edited by

                                    @jsulm Thank you for your reply but i don't understand. Can you show me the details.
                                    Path to Qt5.7 is home/Qt5.7 (all the library is here)
                                    Path to QtMultimedia is home/QtMultimedia ( haven't built with qmake)
                                    Now i want to replace the QtMultimedia library in home/Qt5.7 by the new one in home/QtMultimedia.
                                    Can you please show me the details?

                                    jsulm 1 Reply Last reply Reply Quote 0
                                    • jsulm
                                      jsulm Lifetime Qt Champion @tamolo last edited by

                                      @tamolo You used qmake from home/Qt5.7 to build QtMultimedia, right? In this case make install should copy it to home/Qt5.7. If it did not then you still can copy the stuff manually. Actually, if you call "make install" you see what it is installing where.

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

                                      1 Reply Last reply Reply Quote 0
                                      • First post
                                        Last post