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. QMultimedia rtsp delay (or how to provide ffmpeg flags)

QMultimedia rtsp delay (or how to provide ffmpeg flags)

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
4 Posts 4 Posters 857 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.
  • V Offline
    V Offline
    VLopez
    wrote on last edited by VLopez
    #1

    Using Qt 6.5.1 from binaries.
    I have managed to view a rtsp stream with QML setting the source to "rtsp://127.0.0.1:8554/back" in the mediaplayer example.

    But the playback has 1-2 second delay. The server and client are on the same machine, and the camera is running at 640x480 30fps, it is not a bandwidth/cpu issue.

    Furthermore, if I use ffplay to stream from the same server with this command
    ffplay -rtsp_transport tcp rtsp://localhost:8554/back I see a similar delay.

    But if I run with ffplay -rtsp_transport tcp rtsp://localhost:8554/back -fflags nobuffer -flags low_delay the delay is gone.

    How can I pass these flags to the ffmpeg backend? I need this for a Linux and Android application.

    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 currently not possible to do that kind customization.

      You should check the bug report system to see if there's something related.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      I 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        AFAIK, it's currently not possible to do that kind customization.

        You should check the bug report system to see if there's something related.

        I Offline
        I Offline
        ivorymasters
        wrote on last edited by
        #3

        @SGaist said in QMultimedia rtsp delay (or how to provide ffmpeg flags):

        Hi and welcome to devnet,

        AFAIK, it's currently not possible to do that kind customization.

        You should check the bug report system to see if there's something related.

        I finally understood the problem. Thank you!

        ...

        L 1 Reply Last reply
        0
        • I ivorymasters

          @SGaist said in QMultimedia rtsp delay (or how to provide ffmpeg flags):

          Hi and welcome to devnet,

          AFAIK, it's currently not possible to do that kind customization.

          You should check the bug report system to see if there's something related.

          I finally understood the problem. Thank you!

          L Offline
          L Offline
          lemons
          wrote on last edited by
          #4

          @ivorymasters try setting the playbackRate to 0 before playing the stream.

          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