-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Loading future DASH segments in v4.x #3952
Comments
Got this problem too. The main reason is that your Dash manifest is using Segment Template, where segments created based on duration and timescale . For some reason, when combine with certain content it will generate "phantom" segment like that at the end of the content duration. You can change your origin (unified streaming) setting to not use Segment Template (using SegmentList or byte-range for example) and the problem will gone. |
Thanks for that insight. Ill talk with the backend team, if thats possible. But im sure, Shaka will fix this soon 😉 |
Can you test with v4.3.3? Thanks! |
Closing due to inactivity. If this is still an issue for you or if you have further questions, the OP can ask shaka-bot to reopen it by including |
@shaka-bot reopen |
Sorry, I did not see the last Comment on this before. |
Hi @avelad, looks like this is happening to us, too. We're using the latest Shaka version. I'll share a manifest that has the problem. |
I'm affected by this problem too. The ticket title says "not existing chunks", which is correct. But I'll like to add a precision to that: it's not just "not existing chunks", but "future chunks". I'm working with 24/7 live streams, and Shaka player tries to download yet not existing chunks: future chunks. Since I didn't found anything weird in my setup (I've been using it for years), i began to suspect to some new shaka player version. Indeed, I wasn't able to reproduce the problem with a 3.x.x version, while it doesn't take long to appear with a 4.x.x version. Below are two screenshots, both taken about the same time two hours ago. The URLs are redacted for privacy. But please note the chunks numbers and the shaka version: 3.x is on the "473" chunk position and playing fine, while 4.x is on "495" and failing with 404 errors. In those screenshots, the error is: 4.x version should not jump to "495". Those chunks does not yet exist by that time. This is a very troubling issue, as shaka player is part of many production setups, and the issue doesn't seem to be originated by any improper manifest syntax. Given that it's about future chunks, most likely shaka player would be doing something wrong on the "next chunk" calc logic. |
@Canta, thank you for your insights. We will work on this when we have time, but the team is very much overloaded these days. It may be best for someone else in the community to investigate and try to determine the root cause. |
@joeyparrish , I've been doing a quick search on the code, but I'm also on a tight agenda, so can't do much about this right now. Here are some notes nonetheless:
That means there's 3 variables involved:
If I clear my agenda, I'll take a look at it. In the meantime, I'll let quick notes so others can follow. @lifofernandez |
Hi @joeyparrish and @avelad, I'll share some research I did on this issue. When Segment Template generates information of the streams, It creates a TSI for each one, appends and evicts segments to this TSI but does not always update the Given this I modified the TSI's
A part of this new actual
Future chunk numbers are no longer observed, but it did produce many
Although it is necessary to review and fine-tune all the variables involved to achieve the best possible reproduction, I hope these notes helps to find the cause and fix of the problem. |
Have you read the FAQ and checked for duplicate open issues?
yes - this is (probably) identical to (closed) Ticket 3717
What version of Shaka Player are you using?
3.3.1
Can you reproduce the issue with our latest release version?
yes
Can you reproduce the issue with the latest code from
master
?didnt check
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?
Chrome/Edge/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?
https://sdn-global-streaming-cache.3qsdn.com/24666/files/21/10/11/3960246/24666-GVQnP7CqzRgXNDW.ism/manifest.mpd
What configuration are you using? What is the output of
player.getConfiguration()
?{"preferredAudioLanguage":"auto","abr":{"enabled":true,"switchInterval":6},"manifest":{"disableText":true},"streaming":{"smallGapLimit":1,"jumpLargeGaps":true,"ignoreTextStreamFailures":true,"useNativeHlsOnSafari":false}}
What did you do?
Loading the Manifest "https://sdn-global-streaming-cache.3qsdn.com/24666/files/21/10/11/3960246/24666-GVQnP7CqzRgXNDW.ism/manifest.mpd" to the Player
What did you expect to happen?
The Video should be played until the end and then stop
What actually happened?
I already had an own Ticket on this - and Ticket 3717 was dealing with this too (but is closed now). From my Understanding, this should have been fixed in 3.3.1 - but it clearly isnt.
SHAKA starts to load non-existing ("phantom") Chunks like:
https://sdn-global-streaming-cache.3qsdn.com/24666/files/21/10/11/3960246/24666-GVQnP7CqzRgXNDW.ism/dash/24666-GVQnP7CqzRgXNDW-audio=128000-150.m4s
https://sdn-global-streaming-cache.3qsdn.com/24666/files/21/10/11/3960246/24666-GVQnP7CqzRgXNDW.ism/dash/24666-GVQnP7CqzRgXNDW-video=2793000-150.m4s
which leads to 404 - for some reason, it never stops requesting them, what leads to a ton of issues in the CDN, as millions of requests are processed there for non-existing Material.
This is ONLY happening in DASH, not in HLS.
(compare the HLS Manifest: https://sdn-global-streaming-cache.3qsdn.com/24666/files/21/10/11/3960246/24666-GVQnP7CqzRgXNDW.ism/manifest.m3u8)
The text was updated successfully, but these errors were encountered: