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. Qt5.11 multimedia and gstreamer connection problem
Forum Updated to NodeBB v4.3 + New Features

Qt5.11 multimedia and gstreamer connection problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5.11multimediagstreamergstreamer1.0gstreamer video
6 Posts 4 Posters 544 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.
  • X Offline
    X Offline
    xQula
    wrote on 30 Aug 2024, 14:09 last edited by
    #1

    Hello everyone.
    I am writing an application to output an rtp stream sent by gstreamer.
    On qt 5.15, everything starts successfully and outputs the video stream to Qwidget, but on 5.11 there is a problem, on ubuntu 16.04.
    Error:
    "Streamer; Unable to pause - "gst-pipeline: udpsre port=10334 caps = %22application/x-rtp,
    rtph264depay ! decodebin ! videoconvert ! ximagesink name=qtvideosink"
    Streamer; Unable to pause - "gst-pipeline: udpsre port=10334 caps
    = %22application/x-rtp, media=(string) video, clock-rate=(int) 90000, encoding-name=(string)H 264, payload=(int)96%22 | queue ! rtpjitterbuffer latency=0 !
    rtph264depay ! decodebin ! videoconvert ! ximagesink name=qtvideosink" Error:
    "There is no URI handler implemented for the gst-pipeline."

    const auto port = 5000;
    auto m_mediaPlayer = new QMediaPlayer();
    auto m_videoWidget = new QVideoWidget();
      m_mediaPlayer->setVideoOutput(m_videoWidget);
      m_mediaPlayer->setMedia(QUrl("gst-pipeline: udpsrc port=" + port + " caps = \"application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96\" ! queue ! rtpjitterbuffer latency=0 ! rtph264depay ! decodebin ! videoconvert ! ximagesink name=qtvideosink"));
      m_mediaPlayer->play();
    

    sending pipeline

    gst-launch-1.0 -v ximagesrc startx = 0 endx = 1920 ! video/x-raw,framerate=20/1 ! videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=1000 speed-preset=superfast ! rtph264pay ! udpsink host=127.0.0.1 port=5000
    

    receiving pipeline

    gst-launch-1.0 -v udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! ximagesink
    

    I tried another approach, but unfortunately I also get an error:
    "Error:The stream type could not be determined.""
    code:

    auto process = new QProcess;
    auto player = new QMediaPlayer;
    auto video = new QVideoWidget() ;
    player-›setVideoOutput(video);
    QStringList p;
    QString z = "gst-launch-1.0":
    p « "videotestsrc" << "!" << "appsink"; 
    process-›start(z,p) ;
    process-›waitForReadyRead) :
    player-›setMedia (QMediaContent, process) ; 
    player-›play;
    
    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mahyar
      wrote on 30 Aug 2024, 14:20 last edited by
      #2

      سلام من بلد نیستم

      C 1 Reply Last reply 30 Aug 2024, 14:27
      0
      • M Mahyar
        30 Aug 2024, 14:20

        سلام من بلد نیستم

        C Offline
        C Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 30 Aug 2024, 14:27 last edited by
        #3

        @Mahyar what's the point of your answer? And this is an english forum.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        0
        • A Online
          A Online
          Axel Spoerl
          Moderators
          wrote on 30 Aug 2024, 15:55 last edited by
          #4

          Qt 5.11 is no longer supported. No point in using it, when everything works on 5.15.

          Software Engineer
          The Qt Company, Oslo

          X 1 Reply Last reply 2 Sept 2024, 06:22
          0
          • A Axel Spoerl
            30 Aug 2024, 15:55

            Qt 5.11 is no longer supported. No point in using it, when everything works on 5.15.

            X Offline
            X Offline
            xQula
            wrote on 2 Sept 2024, 06:22 last edited by
            #5

            @Axel-Spoerl Have a nice day. I would be happy to use qt 5.15. o on my linux version, the maximum version from the package manager 5.11 and higher cannot be used.

            1 Reply Last reply
            0
            • A Online
              A Online
              Axel Spoerl
              Moderators
              wrote on 2 Sept 2024, 07:08 last edited by
              #6

              Then your package manager provides EOL-software!
              You can download later versions via the link in @Christian-Ehrlicher's signature.

              Software Engineer
              The Qt Company, Oslo

              1 Reply Last reply
              0

              3/6

              30 Aug 2024, 14:27

              • Login

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