Newpipe: Add option to reduce thumbnail resolution Plenty of data is used to load the video page

Created on 21 Feb 2020  Â·  12Comments  Â·  Source: TeamNewPipe/NewPipe

It consumes a lot of data to download the video and thumbnails page. Please put an option to reduce the quality of the thumbnails

good first issue requires extractor change

Most helpful comment

@TobiGr: I was just about to reply the same thing.

All 12 comments

Please change issue name to "Add option to reduce thumbnail resolution" or similar. I'm not entirely sure that doing this is possible, since I don't know if YouTube provides different sizes. In the meantime, you can try disabling loading thumbnails entirely.

@gkeegan YouTube provides different sizes, but the extractor only extracts the one with the highest resolution

I though about this while working on the extraction of the new YouTube version, too. I think we should extract all thumbnails and let the client decide which thumbnail to load.

@TobiGr: I was just about to reply the same thing.

About PeerTube extractor

This line give the highest quality.

For lower quality, use thumbnailPath instead.
Also, on this line, it doesn't give the max resolution. previewPath gives higher resolution.

But, list items don't need high quality, it's already showing fine, at least on mobile.
I changed only for video detail, because it's really visible: low quality | high quality.

Idea

I think we should change Load thumbnails setting, from a ON/OFF switch, to a list:

  • highest resolution: it would typically be used for TV, tablets, or other big screens.
  • optimized resolution (DEFAULT): it would get the max resolution for the things that need it, for example the thumbnail in video detail page would be max res, but in list it wouldn't be max res (for YouTube there are 4 thumbnails if I remember, then 2 or 3 / 4). Typically be used by phones, and set as default setting.
  • lowest resolution.
  • thumbnails disabled.

More settings (for example choose the exact resolution for YouTube from the 4 available) would make this setting an airplane cockpit.

Not only is the problem with thumbnails, but when thumbnails are disabled, a lot of data is still used to load the video page itself

That can't be reduced, it's just the page size provided by YouTube, so we can't change it...

That can't be reduced, it's just the page size provided by YouTube, so we can't change it...

In fact, it can with pbj=1 parameter. See https://github.com/TeamNewPipe/NewPipeExtractor/pull/261#discussion_r384300531 and TeamNewPipe/NewPipeExtractor#262.

With pbj=1, pages will be more like 20-30 KB gzipped.

In fact, it can with pbj=1 parameter. See TeamNewPipe/NewPipeExtractor#261 (comment) and TeamNewPipe/NewPipeExtractor#262.

Yeah, now I've seen @wb9688's improvements, 6 days ago I didn't ;-)
Also, this issue was probably about pre-0.18.5.
@AlbahrawyAlalimi fixed in next version

@Stypox: The thumbnail stuff isn't fixed in the next version though. I'll fix that on the NewPipeExtractor-side soonâ„¢ though

Version 0.18.7 and still takes more than 1MB to download the video page with thumbnails disabled!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hassanseoul123 picture hassanseoul123  Â·  3Comments

B0pol picture B0pol  Â·  3Comments

desmonk picture desmonk  Â·  3Comments

tty4242 picture tty4242  Â·  3Comments

PanderMusubi picture PanderMusubi  Â·  3Comments