-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Shaka Offline Download Speed is SLOW #4625
Comments
For reference, my download speed, on average, is 53.62 Mbps. The download, based on the Network tab, for Shaka download is averaging about 34Kbps |
There's certainly no deliberate code meant to slow down downloads. I don't even believe there's any API on the web that you could use to slow a download. Perhaps we're doing something poorly, but I don't know what it is. Do you see the same download speed in the Shaka Player Demo in a typical desktop browser that you do in your Electron app? Do you see any reason for the low speed when you look at the network tab for your app? Do you get better speeds for the same files outside the app on the same machine (curl, wget, or browser)? Is there a lot of downtime in the network panel where we aren't downloading? How many segments are being downloaded for that 120MB of data? |
I am using v3.3 and got the following message.
Could this be an issue? |
That shouldn't have anything to do with download speed, no. It's just a deprecation warning for an API change we made in |
Do you see any reason for the low speed when you look at the network tab for your app? Do you get better speeds for the same files outside the app on the same machine (curl, wget, or browser)? Is there a lot of downtime in the network panel where we aren't downloading? How many segments are being downloaded for that 120MB of data? |
That's a lot of individual files. Before we made some initial changes so we could later add background fetch support, all downloads happened sequentially. That is, we would download one segment, store it, then download the next segment once the previous one is fully stored. So it might be that having to stop downloading and store a file 105000 times throughout the download process is what is causing things to go so slowly. I'm not super knowledgeable about IndexedDB, but I wouldn't be surprised if it had some amount of time overhead on operations. In |
I was trying to use v4.2.x but the python and docker commands to generate the shaka docs kept failing |
I don't think you need to generate the docs to use v4.2.x. You can see them here: https://shaka-player-demo.appspot.com/docs/api/index.html |
It's possible that 2 seconds is too short of a time for that timeout. Does it consistently take longer than that on your machine? |
When I was running version 3.4, it never took that long. This time, the error is consistently popping up when I use the latest code from "main" |
@jookeboxpm , with #4984 you should no longer see the error, can you try? |
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 |
Have you read the Tutorials?
Yes
Have you read the FAQ and checked for duplicate open issues?
Yes
What version of Shaka Player are you using?
3.2.x
Please ask your question
I am attempting to download several DASH files from a Google Cloud Bucket for offline storage and playback. The code has taken an hour to download 120MB worth of data. I wish to know if there is a way I can speed up the download. I am running shaka-player on an Electron app, if that information helps
The text was updated successfully, but these errors were encountered: