Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Qt6 QtMultimedia : using custom gstreamer pipeline

Qt6 QtMultimedia : using custom gstreamer pipeline

Scheduled Pinned Locked Moved Unsolved Qt 6
qt6qtmultimediagstreamerpipeline
11 Posts 7 Posters 4.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.
  • A Offline
    A Offline
    ACF87
    wrote on 24 Feb 2022, 19:44 last edited by
    #1

    Hi,

    I am currently trying to port a video player I implemented using Qml/MediaPlayer from Qt 5.12 to 6.3. To that video player I used to pass a gstreamer pipeline by assigning 'gst-pipeline: ...' string to MediaPlayer.source property and it worked fine. However, I have been inspecting the source code of Qt 6.3 and it seems that 'gst-pipeline' protocol is not longer supported. The question here is, how could I use my custom gstreamer pipeline in Qt 6.3?

    Thanks.

    M 1 Reply Last reply 23 Jun 2023, 14:47
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 24 Feb 2022, 19:54 last edited by
      #2

      Hi and welcome to devnet,

      To the best of my knowledge you would have to use GStreamer directly with their QML sink.

      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
      • A ACF87
        24 Feb 2022, 19:44

        Hi,

        I am currently trying to port a video player I implemented using Qml/MediaPlayer from Qt 5.12 to 6.3. To that video player I used to pass a gstreamer pipeline by assigning 'gst-pipeline: ...' string to MediaPlayer.source property and it worked fine. However, I have been inspecting the source code of Qt 6.3 and it seems that 'gst-pipeline' protocol is not longer supported. The question here is, how could I use my custom gstreamer pipeline in Qt 6.3?

        Thanks.

        M Offline
        M Offline
        malikcis
        wrote on 23 Jun 2023, 14:47 last edited by
        #3

        @ACF87 Hi,
        Did you manage to solve this issue?
        I have exact same problem and Tried different approaches with no success yet.
        Thx

        J 1 Reply Last reply 23 Jun 2023, 15:00
        0
        • M malikcis
          23 Jun 2023, 14:47

          @ACF87 Hi,
          Did you manage to solve this issue?
          I have exact same problem and Tried different approaches with no success yet.
          Thx

          J Offline
          J Offline
          JoeCFD
          wrote on 23 Jun 2023, 15:00 last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • J Offline
            J Offline
            Jojojoris
            wrote on 23 Jun 2023, 15:07 last edited by
            #5

            I moved to the ffmpeg pipeline as their defaults work acceptable in my application.

            M 1 Reply Last reply 23 Jun 2023, 15:41
            0
            • J Jojojoris
              23 Jun 2023, 15:07

              I moved to the ffmpeg pipeline as their defaults work acceptable in my application.

              M Offline
              M Offline
              malikcis
              wrote on 23 Jun 2023, 15:41 last edited by
              #6

              @Jojojoris Hi,
              when you say you moved to FFMPEG, does that mean you stick to the default FFMPEG backend when using QT6 QML frontend or are you using FFMEG programmatically using ffmpeg's library directly?
              Is it possible to share some code so this becomes clear?
              Thanks

              P 1 Reply Last reply 1 Feb 2024, 15:58
              0
              • M malikcis
                23 Jun 2023, 15:41

                @Jojojoris Hi,
                when you say you moved to FFMPEG, does that mean you stick to the default FFMPEG backend when using QT6 QML frontend or are you using FFMEG programmatically using ffmpeg's library directly?
                Is it possible to share some code so this becomes clear?
                Thanks

                P Offline
                P Offline
                petero3
                wrote on 1 Feb 2024, 15:58 last edited by
                #7

                @malikcis
                you can try
                https://doc.qt.io/qt-6/qtmultimedia-index.html#changing-backends
                export QT_MEDIA_BACKEND=ffmpeg

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  DeepakVishak
                  wrote on 10 Mar 2024, 13:50 last edited by
                  #8

                  I am also having the exact problem "gst-pipeline:<custom pipeline>" is not supporting in QtMultimedia in Qt6 but in Qt5 it works even though I have given "export QT_MEDIA_BACKEND=gstreamer" before executing the binary

                  Anybody please help...

                  S M 2 Replies Last reply 10 Mar 2024, 19:41
                  0
                  • D DeepakVishak
                    10 Mar 2024, 13:50

                    I am also having the exact problem "gst-pipeline:<custom pipeline>" is not supporting in QtMultimedia in Qt6 but in Qt5 it works even though I have given "export QT_MEDIA_BACKEND=gstreamer" before executing the binary

                    Anybody please help...

                    S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 10 Mar 2024, 19:41 last edited by
                    #9

                    @DeepakVishak As already written, custom GStreamer pipelines have been dropped in Qt 6.

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

                    D 1 Reply Last reply 11 Mar 2024, 02:28
                    0
                    • S SGaist
                      10 Mar 2024, 19:41

                      @DeepakVishak As already written, custom GStreamer pipelines have been dropped in Qt 6.

                      D Offline
                      D Offline
                      DeepakVishak
                      wrote on 11 Mar 2024, 02:28 last edited by
                      #10

                      @SGaist
                      Hi thank you so much for your response
                      Suppose If I want to implement gstreamer pipeline in qt6 is there any way to do soo
                      I am just looking for possibilities

                      1 Reply Last reply
                      0
                      • D DeepakVishak
                        10 Mar 2024, 13:50

                        I am also having the exact problem "gst-pipeline:<custom pipeline>" is not supporting in QtMultimedia in Qt6 but in Qt5 it works even though I have given "export QT_MEDIA_BACKEND=gstreamer" before executing the binary

                        Anybody please help...

                        M Offline
                        M Offline
                        malikcis
                        wrote on 12 Mar 2024, 16:27 last edited by
                        #11

                        @DeepakVishak
                        SGaist is right. custom GStreamer pipelines have been dropped in Qt 6 Multimedia, however you can achieve the same using qml6glsink.
                        Have a look at this example:
                        https://gitlab.freedesktop.org/gstreamer/gstreamer/-/tree/1.24/subprojects/gst-plugins-good/tests/examples/qt6/qmlsink?ref_type=heads

                        1 Reply Last reply
                        1

                        • Login

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