Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved HLS playback in Qt 6 in Windows ?

    General and Desktop
    qtmultimedia hls
    2
    7
    126
    Loading More Posts
    • 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
      oniongarlic last edited by

      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 Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        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 Reply Quote 0
        • O
          oniongarlic @SGaist last edited by

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

          SGaist 1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion @oniongarlic last edited by

            @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 Reply Quote 0
            • O
              oniongarlic @SGaist last edited by

              @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 Reply Quote 0
              • O
                oniongarlic @oniongarlic last edited by

                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 Reply Quote 1
                • O
                  oniongarlic @oniongarlic last edited by

                  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 Reply Quote 0
                  • First post
                    Last post