Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-128908

HLS video stream (m3u8) has glitches and delay in the first segment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.3, 6.7.2
    • Multimedia
    • None
    • Android, Linux/Wayland

    Description

      I use QML MediaPlayer to play an m3u8 stream (over HLS). It does play, but the first segment stalls and stutters at the start. Only when the next segment starts to play, the stream looks fine.

      This is one of the streams I try to play:
      https://video.bsky.app/watch/did%3Aplc%3Az72i7hdynmk6r22z27h6tvur/bafkreih7qpo7ef7hhtm7ehi7paimlieddrn5argpq4eayz6teez2qbsr7m/playlist.m3u8

      This stream plays in fine in Firefox with a HLS plugin. Also ffplay plays the stream fine. To me it seems that MediaPlayer is the problem here. In the logs I see that it fails to do a seek(0)

      The weird thing is that if I resolve the m3u8 playlist to the actual stream segments and I set the URL of the first segment as resource in MediaPlayer, then that segment plays fine! This is a nice work around for streams that consist of a single segment, but for multiple segments it does not help as I cannot put multiple URLs in the source.

      I have this problem on both Linux and Android (Android is my main concern).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qtmultimediateam Qt Multimedia Team
            michel_de_boer Michel de Boer
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes