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
QtWS25 Last Chance

Qt5.11 multimedia and gstreamer connection problem

Scheduled Pinned Locked Moved Unsolved General and Desktop
qt5.11multimediagstreamergstreamer1.0gstreamer video
6 Posts 4 Posters 508 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.
  • X Offline
    X Offline
    xQula
    wrote on 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 last edited by
      #2

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

      Christian EhrlicherC 1 Reply Last reply
      0
      • M Mahyar

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

        Christian EhrlicherC Online
        Christian EhrlicherC Online
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on 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
        • Axel SpoerlA Offline
          Axel SpoerlA Offline
          Axel Spoerl
          Moderators
          wrote on 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
          0
          • Axel SpoerlA Axel Spoerl

            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 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
            • Axel SpoerlA Offline
              Axel SpoerlA Offline
              Axel Spoerl
              Moderators
              wrote on 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

              • Login

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