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
Forum Updated to NodeBB v4.3 + New Features

Using ffmpeg from QtMultimedia to set RTP as container media format

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 655 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 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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 last edited by
        #3

        @SGaist I have Qt commercial, version 6.5.2

        Raul Guerrero
        http://jimi.mx

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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
          0
          • SGaistS SGaist

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

            R Offline
            R Offline
            raulgd
            wrote on 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

            SGaistS 1 Reply Last reply
            0
            • R raulgd

              @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.

              SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on 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
              0
              • SGaistS SGaist

                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 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

                • Login

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