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. Using ffmpeg from QtMultimedia to set RTP as container media format
Servers for Qt installer are currently down

Using ffmpeg from QtMultimedia to set RTP as container media format

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 654 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.
  • R Offline
    R Offline
    raulgd
    wrote on 22 Jul 2023, 00:07 last edited by raulgd
    #1

    Hi,

    I'm creating an application that requires RTP as media format container for streaming, but QMediaFormat doesn't have it as an option, although I know it's supported by the ffmpeg libraries as a media format.

    How can I integrate that media format if my backend is ffmpeg, I wouldn't have to have to use ffmpeg besides QtMultimedia knowing it also uses it.

    Cheers

    Raul Guerrero
    http://jimi.mx

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 22 Jul 2023, 16:04 last edited by
      #2

      Hi,

      Which version of Qt are you using ?

      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
      • R Offline
        R Offline
        raulgd
        wrote on 27 Jul 2023, 02:02 last edited by
        #3

        @SGaist I have Qt commercial, version 6.5.2

        Raul Guerrero
        http://jimi.mx

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 27 Jul 2023, 20:12 last edited by
          #4

          AFAIR, you can play RTP streams directly by using the URL of the source.

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

          R 1 Reply Last reply 29 Jul 2023, 05:16
          0
          • S SGaist
            27 Jul 2023, 20:12

            AFAIR, you can play RTP streams directly by using the URL of the source.

            R Offline
            R Offline
            raulgd
            wrote on 29 Jul 2023, 05:16 last edited by
            #5

            @SGaist I need to produce them, not play them, that's why I want to encode through QMediaFormat.
            I need to produce a video stream out of the desktop and another from the camera, and encode it in AVC with RTP as container for transmission.

            Raul Guerrero
            http://jimi.mx

            S 1 Reply Last reply 29 Jul 2023, 18:53
            0
            • R raulgd
              29 Jul 2023, 05:16

              @SGaist I need to produce them, not play them, that's why I want to encode through QMediaFormat.
              I need to produce a video stream out of the desktop and another from the camera, and encode it in AVC with RTP as container for transmission.

              S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 29 Jul 2023, 18:53 last edited by
              #6

              Sorry ! I misread your requirement. I currently don't think that it's possible through QtMultimedia. It might be a feature request to be made for the ffmpeg backend. AFAIK, the current list of supported format come from what is supported on each platform.

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

              R 1 Reply Last reply 30 Jul 2023, 02:34
              0
              • S SGaist
                29 Jul 2023, 18:53

                Sorry ! I misread your requirement. I currently don't think that it's possible through QtMultimedia. It might be a feature request to be made for the ffmpeg backend. AFAIK, the current list of supported format come from what is supported on each platform.

                R Offline
                R Offline
                raulgd
                wrote on 30 Jul 2023, 02:34 last edited by
                #7

                @SGaist thanks for the reply... Although ffmpeg does support RTP, I Don't see if it's available on all supported platforms or only on some.

                As an alternative, I found this library https://github.com/ultravideo/uvgRTP I'll see if I can make something of it and integrate it with QtMultimedia, apparently if I get a stream of H264 (AVC) or H265 it will wrap it into (S)RTP, although only works on Windows, Mac and Linux, it would be cool if I get it to work also on iOS and Android (the platforms covered by my Qt subscription).

                Maybe I'll keep this open, if I manage to get it working it could help someone else.

                Raul Guerrero
                http://jimi.mx

                1 Reply Last reply
                0

                1/7

                22 Jul 2023, 00:07

                • Login

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