Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audio SourceBuffer error. MediaSource readyState: ended #6337

Closed
5 tasks done
Isaacjon opened this issue Apr 9, 2024 · 10 comments
Closed
5 tasks done

audio SourceBuffer error. MediaSource readyState: ended #6337

Isaacjon opened this issue Apr 9, 2024 · 10 comments
Labels
Bug Confirmed Bug report confirmed or reproduced. Stream Issue
Milestone

Comments

@Isaacjon
Copy link

Isaacjon commented Apr 9, 2024

What version of Hls.js are you using?

1.5.7

What browser (including version) are you using?

Version 123.0.6312.58 (Official Build) (arm64)

What OS (including version) are you using?

macOs Sonoma 14.3.1

Test stream

No response

Configuration

{}

Additional player setup steps

No response

Checklist

Steps to reproduce

  1. play video

Expected behaviour

video should play

What actually happened?

player not playing the video
Screenshot 2024-04-09 at 09 21 36
Screenshot 2024-04-09 at 09 21 47
Screenshot 2024-04-09 at 09 22 10

Console output

error] > [buffer-controller] Error: audio SourceBuffer error. MediaSource readyState: ended

Chrome media internals output

render_id: 7027
player_id: 15
created: 2024-04-09 04:28:03.865259 UTC
origin_url: https://hlsjs.video-dev.org/
kFrameUrl: https://hlsjs.video-dev.org/demo/?src=https%3A%2F%2Fst1.uzdigital.tv%2FSetanta1HD%2Fvideo.m3u8%3Ftoken%3Dbbf35b01e4d67f284f5b3ed478735f40697f4e33-675556634d766542417a764a6c417a73-1712644671-1712633871%26remote%3D94.232.24.122&demoConfig=eyJlbmFibGVTdHJlYW1pbmciOnRydWUsImF1dG9SZWNvdmVyRXJyb3IiOnRydWUsInN0b3BPblN0YWxsIjpmYWxzZSwiZHVtcGZNUDQiOmZhbHNlLCJsZXZlbENhcHBpbmciOi0xLCJsaW1pdE1ldHJpY3MiOi0xfQ==
kFrameTitle: hls.js demo
url: blob:https://hlsjs.video-dev.org/47cdc278-7c4f-454d-a421-be651066a591
info: ChunkDemuxer
kRendererName: RendererImpl
pipeline_state: kStarting
duration: 23.994666


{
  "properties": {
    "render_id": 7027,
    "player_id": 15,
    "created": "2024-04-09 04:28:03.865259 UTC",
    "origin_url": "https://hlsjs.video-dev.org/",
    "kFrameUrl": "https://hlsjs.video-dev.org/demo/?src=https%3A%2F%2Fst1.uzdigital.tv%2FSetanta1HD%2Fvideo.m3u8%3Ftoken%3Dbbf35b01e4d67f284f5b3ed478735f40697f4e33-675556634d766542417a764a6c417a73-1712644671-1712633871%26remote%3D94.232.24.122&demoConfig=eyJlbmFibGVTdHJlYW1pbmciOnRydWUsImF1dG9SZWNvdmVyRXJyb3IiOnRydWUsInN0b3BPblN0YWxsIjpmYWxzZSwiZHVtcGZNUDQiOmZhbHNlLCJsZXZlbENhcHBpbmciOi0xLCJsaW1pdE1ldHJpY3MiOi0xfQ==",
    "kFrameTitle": "hls.js demo",
    "url": "blob:https://hlsjs.video-dev.org/47cdc278-7c4f-454d-a421-be651066a591",
    "info": "ChunkDemuxer",
    "kRendererName": "RendererImpl",
    "pipeline_state": "kStarting",
    "duration": 23.994666
  },
  "events": [
    {
      "time": 0,
      "key": "created",
      "value": "2024-04-09 04:28:03.865259 UTC"
    },
    {
      "time": 0.04400002956390381,
      "key": "origin_url",
      "value": "https://hlsjs.video-dev.org/"
    },
    {
      "time": 0.046999990940093994,
      "key": "kFrameUrl",
      "value": "https://hlsjs.video-dev.org/demo/?src=https%3A%2F%2Fst1.uzdigital.tv%2FSetanta1HD%2Fvideo.m3u8%3Ftoken%3Dbbf35b01e4d67f284f5b3ed478735f40697f4e33-675556634d766542417a764a6c417a73-1712644671-1712633871%26remote%3D94.232.24.122&demoConfig=eyJlbmFibGVTdHJlYW1pbmciOnRydWUsImF1dG9SZWNvdmVyRXJyb3IiOnRydWUsInN0b3BPblN0YWxsIjpmYWxzZSwiZHVtcGZNUDQiOmZhbHNlLCJsZXZlbENhcHBpbmciOi0xLCJsaW1pdE1ldHJpY3MiOi0xfQ=="
    },
    {
      "time": 0.04900002479553223,
      "key": "kFrameTitle",
      "value": "hls.js demo"
    },
    {
      "time": 0.07600003480911255,
      "key": "url",
      "value": "blob:https://hlsjs.video-dev.org/47cdc278-7c4f-454d-a421-be651066a591"
    },
    {
      "time": 0.0910000205039978,
      "key": "info",
      "value": "ChunkDemuxer"
    },
    {
      "time": 0.09600001573562622,
      "key": "kRendererName",
      "value": "RendererImpl"
    },
    {
      "time": 0.12800002098083496,
      "key": "pipeline_state",
      "value": "kStarting"
    },
    {
      "time": 0.16699999570846558,
      "key": "duration",
      "value": 23.994666
    }
  ]
}
@Isaacjon Isaacjon added Bug Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. labels Apr 9, 2024
@Isaacjon
Copy link
Author

Isaacjon commented Apr 9, 2024

but if i revert back to 0.8.8 version of hls.js it plays okay

@robwalch
Copy link
Collaborator

robwalch commented Apr 9, 2024

Hi @Isaacjon.

Please provide an HLS playlist with the minimum number of segment(s) required to reproduce the issue.

Complete player logs (text) would be preferred over screenshots.

@robwalch
Copy link
Collaborator

robwalch commented Apr 9, 2024

but if i revert back to 0.8.8 version of hls.js it plays okay

With audio? If you include segments missing audio or with corrupt audio, the stream will fail to play. Older versions may not have supported the audio track at all. While you might get video playback, excluding audio is not the correct behavior.

@Isaacjon
Copy link
Author

Isaacjon commented Apr 10, 2024 via email

@Isaacjon
Copy link
Author

Isaacjon commented Apr 10, 2024 via email

@robwalch
Copy link
Collaborator

It is odd that the audio codec is listed twice:

sourceBuffer(audio/mp4;codecs=mp4a.40.2,mp4a.40.2)

@Isaacjon
Copy link
Author

Isaacjon commented Apr 10, 2024 via email

@Isaacjon
Copy link
Author

Isaacjon commented Apr 10, 2024 via email

@robwalch
Copy link
Collaborator

Then why other online hls players playing it?

I don't know what "it" is. You must provide steps to reproduce the issue - that includes some sample of media that reproduces the issue for us to understand what exactly the problem is and how to fix it.

@robwalch
Copy link
Collaborator

robwalch commented Apr 10, 2024

In the m3u8 found in "kFrameUrl" you have the audio codec listed twice:

"avc1.640028,mp4a.40.2,mp4a.40.2"

Removing the duplicate codec string will fix SourceBuffer setup.

We'll address this in the next patch (v1.5.8). For now, you can test the fix in dev at https://hlsjs-dev.video-dev.org/demo/.

@robwalch robwalch added this to the 1.5.8 milestone Apr 10, 2024
@robwalch robwalch added Confirmed Bug report confirmed or reproduced. Stream Issue and removed Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. Need sample stream labels Apr 10, 2024
robwalch added a commit that referenced this issue Apr 10, 2024
…io codec strings are present in the Multivariant Playlist variant CODECS attribute with muxed content

Fixes #6337
robwalch added a commit that referenced this issue Apr 10, 2024
…io codec strings are present in the Multivariant Playlist variant CODECS attribute with muxed content (#6341)

Fixes #6337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Confirmed Bug report confirmed or reproduced. Stream Issue
Projects
None yet
Development

No branches or pull requests

2 participants