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

Slow initial video buffer #7630

Closed
4 tasks done
ghost opened this issue Jan 8, 2022 · 23 comments · Fixed by #7919
Closed
4 tasks done

Slow initial video buffer #7630

ghost opened this issue Jan 8, 2022 · 23 comments · Fixed by #7919
Labels
bug Issue is related to a bug player Issues related to any player (main, popup and background)

Comments

@ghost
Copy link

ghost commented Jan 8, 2022

Checklist

Steps to reproduce the bug

Start playing random unopened videos

Actual behavior

Initial loading time of an unopened video is too high.

Conditions while reproducing the bug

  1. Default video format = webm/240p
  2. Internet speed is 100Mbps
  3. No issues in the device & it's OS.

Expected behavior

Videos should start playing instantly.

Screenshots/Screen recordings

Here's the screen recorded proof.

Logs

Not generated. I could verbose log, if been asked.

Device info

  • Android version/Custom ROM version: 11/crDroid 7.13/4.14.190 perf
  • Device model: Redmi Note 10/sunny/mojito
@ghost ghost added the bug Issue is related to a bug label Jan 8, 2022
@triallax
Copy link
Contributor

triallax commented Jan 8, 2022

Please fill your NewPipe version in the first checklist item.

@triallax triallax added the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Jan 8, 2022
@ghost
Copy link
Author

ghost commented Jan 8, 2022

Please fill your NewPipe version in the first checklist item.

Edited. It's latest version btw.

@github-actions github-actions bot removed the waiting for author If the author doesn't respond, the issue will be auto-closed. Otherwise the label will be removed. label Jan 8, 2022
@triallax
Copy link
Contributor

triallax commented Jan 8, 2022

Thank you.

It's latest version btw.

You're totally right, but it happens that users think they're using the latest version, while they are not, for various reasons. That's why we ask you to specify your NewPipe version in the template.

@triallax triallax added the player Issues related to any player (main, popup and background) label Jan 9, 2022
@foreignmeloman

This comment has been minimized.

@shom13
Copy link

shom13 commented Feb 16, 2022

I was about to open a new issue, but found this one. I agree it takes a while for videos to load initially, which is not a desirable behaviour

@karyogamy
Copy link
Contributor

Hi @pc00per @foreignmeloman @shom13,
Please test fix #7919 and let me know if it works for you.
The apk can be found by going to https://github.com/TeamNewPipe/NewPipe/pull/7919/checks, click on CI on the left, and scroll down to Artifacts.
NOTE you need to enable the fix by going to Settings -> Video and audio -> Playback load interval size -> choose a small value (e.g. 16 KiB).

@foreignmeloman
Copy link

foreignmeloman commented Feb 25, 2022

@karyogamy I'm using the latest build (v0.22.0) and yet there is no such option in the settings
Screenshot_20220225-130037

@shom13
Copy link

shom13 commented Feb 25, 2022

@karyogamy sorry for late update, but after testing extensively with the new setting its got a lot better than before. The stream starts as expected. Thank you so much

@karyogamy
Copy link
Contributor

@foreignmeloman You'd have to install a test build instead of v0.22.0 by going to https://github.com/TeamNewPipe/NewPipe/pull/7919/checks, click on CI on the left, and scroll down to Artifacts.

@shom13 Thanks for testing! Have you experienced any side effects with lower values, for example, more frequent buffering? Could you also post your internet speed? Would be interested to see how this works with slower network.

@shom13
Copy link

shom13 commented Feb 25, 2022

@karyogamy no i have not encountered any buffering issues with lower value, tested with 16kb settings. I could test with lower settings if that would help, do let me know. And my broadband speed is 75Mbps to be precise.

@karyogamy
Copy link
Contributor

Do you notice any difference between 1kB vs 16kB? If not, might be best to just drop one of them from the selection.

@shom13
Copy link

shom13 commented Feb 25, 2022

@karyogamy I dont particularly notice much difference between the two, but with 1kb it seemingly loads a bit faster, the difference is minimal though. But given the choice i would prefer 1 over 16. I will post after testing a bit more, this is based on a just a very short test.

@shom13
Copy link

shom13 commented Feb 25, 2022

After going through enough videos, 1kb seems a touch faster than 16, but the difference is negligible to none.

@foreignmeloman
Copy link

@karyogamy thanks for the instructions. After installing the build I can confirm that 16 KiB setting greatly improves the load time.

@ghost
Copy link
Author

ghost commented Feb 25, 2022

@karyogamy I've tested #7919 & it solved the buffer issue. The current default ExoPlayer interval has some issues. But after switching to (any) interval value you had in the list, worked out well. The issue could be something related to ExoPlayer, not the internet.

@karyogamy
Copy link
Contributor

Thanks for testing guys, and sorry I forgot a big caveat: the player has cache enabled all the time.
So if you have been using the same video or previously watched video in the test, then it's probably using the cached video instead of loading a new one, and that could be why all the settings had the same load time for @pc00per.
If you've been testing with new videos only, then it is still good.

@shom13
Copy link

shom13 commented Feb 26, 2022

@karyogamy I have been testing with new videos, not previously watches or played ones. So cache should not have been a problem in my case.

@ghost
Copy link
Author

ghost commented Apr 16, 2022

The recent v0.22.2 still experience crazy buffers.

@shom13
Copy link

shom13 commented Apr 17, 2022

Initial load buffer will be fixed with version 0.23.0 as its out for testing, hopefully will be released very soon. #8230

@sleeply4cat
Copy link

0.23.1 is still insanely slow

@ghost
Copy link
Author

ghost commented Jul 23, 2022

0.23.1 is still insanely slow

Incomplete info. Slow where? Buffering, UI, UX ?

@sleeply4cat
Copy link

sleeply4cat commented Jul 24, 2022

Slow where? Buffering, UI, UX ?

Initial page load and video buffering may take several minutes.

@ghost
Copy link
Author

ghost commented Jul 24, 2022

Slow where? Buffering, UI, UX ?

Initial page load and video buffering may take several minutes.

No issues here. Try resetting newpipe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is related to a bug player Issues related to any player (main, popup and background)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants