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. QML MediaPlayer and Gstreamer pipeline with rtspsrc
Forum Updated to NodeBB v4.3 + New Features

QML MediaPlayer and Gstreamer pipeline with rtspsrc

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 2 Posters 1.6k 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.
  • K Offline
    K Offline
    kostya.til
    wrote on last edited by
    #1

    I use qt 5.15.2. The documentation states that since Qt 5.12.2, the url scheme gst-pipeline provides custom pipelines for the GStreamer backend. I am trying to apply this pipeline:

    "gst-pipeline: rtspsrc location=rtsp://ip_address:port/something latency=100 protocols=tcp ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! qtvideosink"
    

    But it gives me error:

    Error: "Resource not found."
    

    "gst-pipeline: videotestsrc ! qtvideosink" works fine. What could be wrong? Or QT does not support rtspsrc?
    And by the way, if I use this pipeline with gst-launch-1.0 all works fine.

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

      Hi and welcome to devnet,

      Does that pipeline work properly on the command line ?

      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
      • K Offline
        K Offline
        kostya.til
        wrote on last edited by kostya.til
        #3

        Yes. On the command line it works properly. I use this command:

        gst-launch-1.0 rtspsrc location=rtsp://ip_address:port/something latency=100 protocols=tcp ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! autovideosink
        

        And this works as expected.
        By the way, my system is ubuntu 20.04 LTS. Could this be due to the fact that I installed QT using the online installer, and the Gstreamer was installed using the apt package manager? Maybe I need to install something else?

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

          To the best of my knowledge, it should be no problem.

          Can you try to build and run your application with your distribution provided Qt ?

          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
          • K Offline
            K Offline
            kostya.til
            wrote on last edited by
            #5

            Just tried to build app with distribution provided Qt, have same error.

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

              And if you run the pipeline with the autosink in place of qtvideosink ?

              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
              • K Offline
                K Offline
                kostya.til
                wrote on last edited by
                #7

                I already understand what the problem is. It was a stupid mistake on my part. It's all about quotes. The URL of my resource contains equal signs and therefore gave an error on the command line without quotes. So, along with quotes, I moved the pipeline to my application. But for some reason it refused to work with quotes. Without quotes, everything works as it should. Thank you for your attention.

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

                  Glad you found out and thanks for sharing !

                  Please mark the thread as solved using the "Topic Tools" button or the three dotted menu beside the answer you deem correct so that other forum members may know a solution has been found :-)

                  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