Skip to content

[Bug] [HLS] IA chooses the wrong audio stream - Ignoring the AUDIO / group-id #2101

Description

@matthuisman

Describe the problem

With the below, IA will try to use the "233" audio even though the single video stream has AUDIO="234"
With ffmpeg will use and only show the single "234" audio stream.

It might only happen when there is a single video stream.
As if I pass the entire manifest through - IA has the 2nd audio stream listed first and it uses that.
However, it then keeps in-correctly using that for the lowest quality video stream that should use "233"

Possible fix

Remove / ignore audio streams without a matching group-id to the currently playing video stream

Steps to reproduce

  1. Create a HLS manifest with 2x audio streams with GROUP-ID="1" and GROUP-ID="2" in that order
    Have DEFAULT NO and AUTOSELECT YES on both
  2. Add single video stream with AUDIO="2"
  3. Play the HLS
  4. Observe IA will just select the first audio stream - when it should use the 2nd
  5. ffmpeg doesn't even show the first audio stream

Debug log

..

Stream manifest file(s)

#EXTM3U
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-MEDIA:URI="https://example.com/audio/playlist/233.m3u8",TYPE="AUDIO",GROUP-ID="233",NAME="Default",DEFAULT="NO",AUTOSELECT="YES"
#EXT-X-MEDIA:URI="https://example.com/audio/playlist/234.m3u8",TYPE="AUDIO",GROUP-ID="234",NAME="Default",DEFAULT="NO",AUTOSELECT="YES"
#EXT-X-STREAM-INF:BANDWIDTH=7171631,CODECS="avc1.64002A,mp4a.40.2",RESOLUTION=1920x1080,FRAME-RATE=60,VIDEO-RANGE=SDR,AUDIO="234",CLOSED-CAPTIONS=NONE
https://manifest.googlevideo.com/api/manifest/hls_playlist/expire/1787380794/playlist/video.m3u8

Additional info

No response

Operating system(s)

Windows

Operating system version(s)

11

InputStream Adaptive version(s)

22.3.20

Kodi version(s)

22

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triage: Needed(managed by bot) issue that was just created and needs someone looking at it

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions