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. Playing RTP stream on Windows with Qt 6.2
Forum Updated to NodeBB v4.3 + New Features

Playing RTP stream on Windows with Qt 6.2

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 921 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.
  • F Offline
    F Offline
    fggd
    wrote on last edited by
    #1

    Hello,

    I am trying to understand how can I play RTP video stream with QMediaPlayer, e.g. generated with GStreamer by running:

    .\gst-launch-1.0.exe  videotestsrc ! 'video/x-raw,width=640,height=480' ! openh264enc ! rtph264pay ! udpsink host=127.0.0.1 port=5000
    

    I tried passing simply passing url like:

      QMediaPlayer* player = ....
      player->setSource(QUrl("rtp://@127.0.0.1:5000"));
    

    That didn't work. AFAIK QtMultimedia in ver 6.2 doesn't support GStreamer pipelines on Windows.
    Is there a way to do it w/o custom GStreamer or libVLC based implementation?

    Thank you
    Filip

    SGaistS 1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by JoeCFD
      #2

      https://doc.qt.io/qt-5/qtmultimedia-windows.html
      GStreamer is only used by Qt Multimedia on Linux.
      Take a look at qt gstreamer.
      https://gstreamer.freedesktop.org/modules/qt-gstreamer.html

      1 Reply Last reply
      0
      • F fggd

        Hello,

        I am trying to understand how can I play RTP video stream with QMediaPlayer, e.g. generated with GStreamer by running:

        .\gst-launch-1.0.exe  videotestsrc ! 'video/x-raw,width=640,height=480' ! openh264enc ! rtph264pay ! udpsink host=127.0.0.1 port=5000
        

        I tried passing simply passing url like:

          QMediaPlayer* player = ....
          player->setSource(QUrl("rtp://@127.0.0.1:5000"));
        

        That didn't work. AFAIK QtMultimedia in ver 6.2 doesn't support GStreamer pipelines on Windows.
        Is there a way to do it w/o custom GStreamer or libVLC based implementation?

        Thank you
        Filip

        SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        @fggd said in Playing RTP stream on Windows with Qt 6.2:

        player->setSource(QUrl("rtp://@127.0.0.1:5000"));

        This does not look like a valid URL. You should fix it first.

        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
        • F Offline
          F Offline
          fggd
          wrote on last edited by fggd
          #4

          @SGaist said in Playing RTP stream on Windows with Qt 6.2:

          player->setSource(QUrl("rtp://@127.0.0.1:5000"));

          Hi @SGaist
          In a fact I tried also
          "rtp://127.0.0.1:5000"
          "udp://127.0.0.1:5000"
          without luck

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

            Just found out this answer from Lars. Basically full cross-platform support for rtp/rtsp may come after 6.2.

            One possible alternative is to rebuild QtMultimedia to use GStreamer.

            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
            • jsulmJ jsulm referenced this topic on

            • Login

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