TeamNewPipe / NewPipe

A libre lightweight streaming front-end for Android.
https://newpipe.net
GNU General Public License v3.0
31.83k stars 3.08k forks source link

Slow initial video buffer #7630

Closed ghost closed 2 years ago

ghost commented 2 years ago

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

triallax commented 2 years ago

Please fill your NewPipe version in the first checklist item.

ghost commented 2 years ago

Please fill your NewPipe version in the first checklist item.

Edited. It's latest version btw.

triallax commented 2 years ago

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.

foreignmeloman commented 2 years ago

I upvote this issue.

shom13 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

Screenshot_20220225-130037
shom13 commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

@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 commented 2 years ago

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

shom13 commented 2 years ago

@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 commented 2 years ago

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

foreignmeloman commented 2 years ago

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

ghost commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

The recent v0.22.2 still experience crazy buffers.

shom13 commented 2 years ago

Initial load buffer will be fixed with version 0.23.0 as its out for testing, hopefully will be released very soon. https://github.com/TeamNewPipe/NewPipe/pull/8230

sleeply4cat commented 2 years ago

0.23.1 is still insanely slow

ghost commented 2 years ago

0.23.1 is still insanely slow

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

sleeply4cat commented 2 years ago

Slow where? Buffering, UI, UX ?

Initial page load and video buffering may take several minutes.

ghost commented 2 years ago

Slow where? Buffering, UI, UX ?

Initial page load and video buffering may take several minutes.

No issues here. Try resetting newpipe.