Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QT6.2 MediaPlayer url for udp stream

QT6.2 MediaPlayer url for udp stream

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 3 Posters 953 Views 2 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.
  • S Offline
    S Offline
    Software1
    wrote on last edited by
    #1

    I am using custom gstreamer pipeline in Qt5.15 to show a video stream

    udpsrc caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)RAW, sampling=(string)YCbCr-4:2:2, depth=(string)8, width=(string)720, height=(string)576, colorimetry=(string)BT709-2" port=5 ! rtpvrawdepay ! queue ! videoconvert ! autovideosink

    However, as far as I know qt6 does not accepts custom pipelines.
    I want to try Qt6, what I need to define as url to MediaPlayer?
    Source ip address is 169.254.188.4

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

      Hi and welcome to devnet,

      From the top of my head, try using:

      rtsp://169.254.188.4
      

      Hope it helps

      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
      • S Offline
        S Offline
        Software1
        wrote on last edited by
        #3

        I tried your suggestion and many other variations to correctly define the url path, yet never able to get any visuals.
        I guess I am stuck with the Qt5 for now.

        1 Reply Last reply
        0
        • L Offline
          L Offline
          legerborea
          wrote on last edited by legerborea
          #4

          Try using a .sdp file, this allow to specify video stream configuration.
          At the top of my head, this may enough :

          v=0
          s=My session name
          i=Short video infos
          m=video 5 RTP/AVP 96
          c=IN IP4 0.0.0.0
          a=rtpmap:96 H264/90000
          a=recvonly
          

          Note than port number is specified under m (media) field

          More informations can be found at https://en.wikipedia.org/wiki/Session_Description_Protocol

          I know than .sdp file are supported in Qt 5.x.y series, I have not try yet wih Qt 6 series (I'm stuck with Qt 5 series for another reasons)

          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