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

Buffering issue with manifest that contains multiple audio tracks #7824

Open
rymusg opened this issue Jan 2, 2025 · 2 comments
Open

Buffering issue with manifest that contains multiple audio tracks #7824

rymusg opened this issue Jan 2, 2025 · 2 comments
Labels
status: bad content Caused by invalid, broken, or unsupported content

Comments

@rymusg
Copy link

rymusg commented Jan 2, 2025

Have you read the FAQ and checked for duplicate open issues?
Yes

If the problem is related to FairPlay, have you read the tutorial?

N/A

What version of Shaka Player are you using?

4.11.10, but this also reproduces in the nightly demo app.

Can you reproduce the issue with our latest release version?
Yes

Can you reproduce the issue with the latest code from main?
Yes

Are you using the demo app or your own custom app?
Both

If custom app, can you reproduce the issue using our demo app?
Yes

What browser and OS are you using?
Windows, Edge, Chrome and Firefox

For embedded devices (smart TVs, etc.), what model and firmware version are you using?
N/A

What are the manifest and license server URIs?

Manifest File: https://cdn-dynmedia-1.microsoft.com/is/content/microsoftcorp/expand-opportunity-2024-rural-campaign_video_en-us-AVS.m3u8?packagedStreaming=true
License Server: N/A

What configuration are you using? What is the output of player.getNonDefaultConfiguration()?

{"streaming":{"bufferBehind":300,"ignoreTextStreamFailures":true}}

What did you do?

  • Start playback
  • In the ellipsis menu, change to the non-default 'English' language (2nd English Option)

What did you expect to happen?

  • I expect the player to switch to the 2nd audio track and continue playing

What actually happened?

  • The video stops buffering past 9 seconds and will not playback
  • If you are past 9 seconds in the video, it simply buffers

Note that this issue does not reproduce in hls.js (https://hlsjs.video-dev.org/demo/) or videojs.

Are you planning to send a PR to fix it?
No

@rymusg rymusg added the type: bug Something isn't working correctly label Jan 2, 2025
@shaka-bot shaka-bot added this to the v4.13 milestone Jan 2, 2025
@avelad
Copy link
Member

avelad commented Jan 3, 2025

The problem is that the alternative audio is poorly generated, the EXTINF tag indicates 129 seconds in each segment, and that is the total duration of the content.

Main audio: https://s7mbrstream.scene7.com/is/content/microsoftcorp/_media_/e89/e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4.m3u8

#EXTM3U
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:8
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MAP:URI="e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4",BYTERANGE="1325@0"
#EXTINF:8,
#EXT-X-BYTERANGE:93883@1325
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:7,
#EXT-X-BYTERANGE:91977@95208
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:8,
#EXT-X-BYTERANGE:92631@187185
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:7,
#EXT-X-BYTERANGE:91920@279816
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:8,
#EXT-X-BYTERANGE:92749@371736
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:7,
#EXT-X-BYTERANGE:91733@464485
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:8,
#EXT-X-BYTERANGE:92449@556218
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:7,
#EXT-X-BYTERANGE:92083@648667
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:8,
#EXT-X-BYTERANGE:92463@740750
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:7,
#EXT-X-BYTERANGE:92129@833213
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:8,
#EXT-X-BYTERANGE:92327@925342
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:7,
#EXT-X-BYTERANGE:92095@1017669
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:8,
#EXT-X-BYTERANGE:92403@1109764
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:7,
#EXT-X-BYTERANGE:91953@1202167
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:8,
#EXT-X-BYTERANGE:92416@1294120
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:7,
#EXT-X-BYTERANGE:92074@1386536
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:8,
#EXT-X-BYTERANGE:92350@1478610
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXTINF:1,
#EXT-X-BYTERANGE:10759@1570960
e89b1b12-1e8c-43c6-87eb-6ebf761bd3f7-audio.mp4
#EXT-X-ENDLIST

Alternate audio: https://s7mbrstream.scene7.com/is/content/microsoftcorp/_media_/029/0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4.m3u8


#EXTM3U
#EXT-X-VERSION:6
#EXT-X-TARGETDURATION:129
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MAP:URI="0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4",BYTERANGE="1481@0"
#EXTINF:129,
#EXT-X-BYTERANGE:123792@1481
0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4
#EXTINF:129,
#EXT-X-BYTERANGE:123050@125273
0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4
#EXTINF:129,
#EXT-X-BYTERANGE:122781@248323
0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4
#EXTINF:129,
#EXT-X-BYTERANGE:123481@371104
0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4
#EXTINF:129,
#EXT-X-BYTERANGE:122887@494585
0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4
#EXTINF:129,
#EXT-X-BYTERANGE:122791@617472
0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4
#EXTINF:129,
#EXT-X-BYTERANGE:123632@740263
0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4
#EXTINF:129,
#EXT-X-BYTERANGE:122758@863895
0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4
#EXTINF:129,
#EXT-X-BYTERANGE:122952@986653
0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4
#EXTINF:129,
#EXT-X-BYTERANGE:123656@1109605
0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4
#EXTINF:129,
#EXT-X-BYTERANGE:122902@1233261
0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4
#EXTINF:129,
#EXT-X-BYTERANGE:122580@1356163
0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4
#EXTINF:129,
#EXT-X-BYTERANGE:107279@1478743
0292ee58-25e7-41c2-bb09-23b0e6e94dbe-audio.mp4
#EXT-X-ENDLIST

@avelad avelad added status: bad content Caused by invalid, broken, or unsupported content and removed type: bug Something isn't working correctly labels Jan 3, 2025
@avelad avelad removed this from the v4.13 milestone Jan 3, 2025
@avelad avelad added the status: waiting on response Waiting on a response from the reporter(s) of the issue label Jan 3, 2025
@rymusg
Copy link
Author

rymusg commented Jan 3, 2025

avelad - I was just jumping in to update the bug. I agree - this is bad content. That being said, other players do handle this content appropriately - for example, you can use the hls.js demo linked above with the same manifest and it does work. I did also test in videojs, and it does work there as well. While not efficient, other players do seem to handle this.

From my perspective this makes this lower priority - and I'm probably the wrong person to determine if the shaka player should work in this scenario, but I do think it's worth noting that competing players do work with the same manifest.

@shaka-bot shaka-bot removed the status: waiting on response Waiting on a response from the reporter(s) of the issue label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: bad content Caused by invalid, broken, or unsupported content
Projects
None yet
Development

No branches or pull requests

3 participants