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. HLS playback in Qt 6 in Windows ?

HLS playback in Qt 6 in Windows ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qtmultimediahls
7 Posts 2 Posters 1.4k 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.
  • O Offline
    O Offline
    oniongarlic
    wrote on 9 Feb 2023, 08:54 last edited by
    #1

    I'm trying to port over my application to Qt 6, but I'm having issues with HLS playback support in Windows. It works perfectly in Qt 5.15 but not under Qt 6. Even tried the just released beta of 6.5.0 but mediaplayer example just says "Could not open file".
    Is HLS not yet supported ? The url plays fine in ffmpeg, afaik shouldn't Qt Multimedia use ffmpeg these days on all platforms ?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 Feb 2023, 20:30 last edited by
      #2

      Hi,

      If memory serves well you need to set the QT_MEDIA_BACKEND environment variable to ffmpeg for now.

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

      O 1 Reply Last reply 10 Feb 2023, 09:39
      0
      • S SGaist
        9 Feb 2023, 20:30

        Hi,

        If memory serves well you need to set the QT_MEDIA_BACKEND environment variable to ffmpeg for now.

        O Offline
        O Offline
        oniongarlic
        wrote on 10 Feb 2023, 09:39 last edited by
        #3

        @SGaist thanks, that seems to work, but HLS stream still won't play :(

        S 1 Reply Last reply 10 Feb 2023, 21:18
        0
        • O oniongarlic
          10 Feb 2023, 09:39

          @SGaist thanks, that seems to work, but HLS stream still won't play :(

          S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 10 Feb 2023, 21:18 last edited by
          #4

          @oniongarlic do you have any error message about it ?

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

          O 1 Reply Last reply 17 Apr 2023, 07:23
          0
          • S SGaist
            10 Feb 2023, 21:18

            @oniongarlic do you have any error message about it ?

            O Offline
            O Offline
            oniongarlic
            wrote on 17 Apr 2023, 07:23 last edited by
            #5

            @SGaist no, just the "Could not open file" that seems to come from the ffmpeg qt support code. This is with the release version of 6.5

            I tried with QT_FFMPEG_DEBUG but that didn't give anything extra, just:

            [NULL @ 000001b18339df80] Opening 'http://...secrethost.../index.m3u8' for reading

            and nothing else. (Playing local file give a lot of debug output)

            This works fine in both Linux and MacOS and ffplay on Windows the from command line plays the network media just fine.

            O 1 Reply Last reply 26 Apr 2023, 07:01
            0
            • O oniongarlic
              17 Apr 2023, 07:23

              @SGaist no, just the "Could not open file" that seems to come from the ffmpeg qt support code. This is with the release version of 6.5

              I tried with QT_FFMPEG_DEBUG but that didn't give anything extra, just:

              [NULL @ 000001b18339df80] Opening 'http://...secrethost.../index.m3u8' for reading

              and nothing else. (Playing local file give a lot of debug output)

              This works fine in both Linux and MacOS and ffplay on Windows the from command line plays the network media just fine.

              O Offline
              O Offline
              oniongarlic
              wrote on 26 Apr 2023, 07:01 last edited by
              #6

              Seems to be a known bug, ffmpeg is built without network support in 6.5.0 and seems to be fixed in 6.5.1, whenever that comes along.
              https://bugreports.qt.io/browse/QTBUG-111378

              O 1 Reply Last reply 25 May 2023, 10:51
              1
              • O oniongarlic
                26 Apr 2023, 07:01

                Seems to be a known bug, ffmpeg is built without network support in 6.5.0 and seems to be fixed in 6.5.1, whenever that comes along.
                https://bugreports.qt.io/browse/QTBUG-111378

                O Offline
                O Offline
                oniongarlic
                wrote on 25 May 2023, 10:51 last edited by
                #7

                So 6.5.1 is out and this should now be fixed, but nope, it starts, debug output shows hls playlist information but the it just ends with "Operation not permitted". Same url works with ffplay just fine. sigh.

                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