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. How to force TCP transport layer when using QMediaPlayer to open an RTSP link (ffmpeg backend)
Qt 6.11 is out! See what's new in the release blog

How to force TCP transport layer when using QMediaPlayer to open an RTSP link (ffmpeg backend)

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 670 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.
  • N Offline
    N Offline
    NNT24
    wrote on last edited by NNT24
    #1

    I am using QMediaPlayer to open an RTSP link. I use PyQt6 version 6.5.2

    player = QMediaPlayer()
    player.setSource(QUrl(rtsp_link))
    player.play()
    

    But that RTSP link can only be opened using TCP transport protocol and the previous code will hang up

    I tried to open that RTSP link using ffplay

    This hang

    ffplay rtsp_link
    

    This work

    ffplay -rtsp_transport tcp rtsp_link
    

    How to tell ffmpeg backend to use TCP to open that link?

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

      Hi and welcome to devnet,

      AFAIK, it's not possible currently.

      You might want to check the bug report system to see if there's something related there and if not open a feature request.

      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
      1

      • Login

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