User Tools

Site Tools


communication:bandwidth_conservation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
communication:bandwidth_conservation [2019/07/12 09:57]
frater_secessus [web frugality]
communication:bandwidth_conservation [2020/05/21 09:16]
frater_secessus [video frugality]
Line 44: Line 44:
  
 The traditional way mobile sites were/are denoted was with the prefix "​m"​. ​ Compare the https://​m.alaskaair.com/​ mobile website with the https://​www.alaskaair.com/​ . If the site does client analysis you might get pushed to the regular www site.  You may want to hack that behavior by sending a false [[https://​en.wikipedia.org/​wiki/​User_agent#​Use_in_HTTP|user agent string]]. The traditional way mobile sites were/are denoted was with the prefix "​m"​. ​ Compare the https://​m.alaskaair.com/​ mobile website with the https://​www.alaskaair.com/​ . If the site does client analysis you might get pushed to the regular www site.  You may want to hack that behavior by sending a false [[https://​en.wikipedia.org/​wiki/​User_agent#​Use_in_HTTP|user agent string]].
 +
 +
  
  
Line 60: Line 62:
 Note:  **HTTPS (encrypted) traffic cannot be optimized** by third parties because it is encrypted and the proxy can't see what it is.  ​ Note:  **HTTPS (encrypted) traffic cannot be optimized** by third parties because it is encrypted and the proxy can't see what it is.  ​
  
-[[http://​www.opera.com/​|Opera]] made the first mainstream browser to offer a compression proxy on their mobile and desktop browsers. ​ Now the Chrome mobile browser has a proxy and there is a [[https://​chrome.google.com/​webstore/​detail/​data-saver/​pfmgfdlgomnbgkofeojodiodmgpgmkac|Data Savings plugin for Chrome/​Chromium]].+[[http://​www.opera.com/​|Opera]] made the first mainstream browser to offer a compression proxy on their mobile ​~~and desktop~~ browsers.  ​~~Now the Chrome mobile browser has a proxy and there is a [[https://​chrome.google.com/​webstore/​detail/​data-saver/​pfmgfdlgomnbgkofeojodiodmgpgmkac|Data Savings plugin for Chrome/​Chromium]].~~
  
 If you are technically minded and have a server somewhere you can run your own compression proxy using freeware like ziproxy. ​ Frater Secessus runs one of these and will make a login for you if you want to play with it. If you are technically minded and have a server somewhere you can run your own compression proxy using freeware like ziproxy. ​ Frater Secessus runs one of these and will make a login for you if you want to play with it.
  
 +The [[https://​github.com/​ayastreb/​bandwidth-hero|Bandwidth Hero project]] compresses images; ​ significant assembly required. ​
  
 +A german ISP runs [[https://​www.skyzip.de/​skyzip-free-acceleration-and-compression-proxy-encrypts-your-traffic-increases-browsing-speed-and-saves-your-bandwidth-english/​|SkyZip]],​ a compression proxy.
 ==== email frugality ==== ==== email frugality ====
  
Line 94: Line 98:
 ==== video frugality ==== ==== video frugality ====
 **Streaming is evil** when bandwidth is limited. Some networking gear is socket-limited; ​ there is a certain number of "​slots"​ available for users. ​ When web browsing, reading email, etc, a user will take one of the slots for active data then release it.  //Streaming holds a monopoly on the socket//, which can block other users from using the resource. **Streaming is evil** when bandwidth is limited. Some networking gear is socket-limited; ​ there is a certain number of "​slots"​ available for users. ​ When web browsing, reading email, etc, a user will take one of the slots for active data then release it.  //Streaming holds a monopoly on the socket//, which can block other users from using the resource.
- 
-If you must stream use the minimum video quality you can tolerate. 
  
 If you can, download the media during off-hours; ​ this is the kindest to the provider and to other users. If you can, download the media during off-hours; ​ this is the kindest to the provider and to other users.
Line 102: Line 104:
  
 Force YouTube video quality down as far as you can stand. ​ You can also configure a downloading tool like [[https://​github.com/​rg3/​youtube-dl#​installation|youtube-dl]] to pull down videos for watching later. ​ Force YouTube video quality down as far as you can stand. ​ You can also configure a downloading tool like [[https://​github.com/​rg3/​youtube-dl#​installation|youtube-dl]] to pull down videos for watching later. ​
 +
 +You can [[source:​youtube-dl|see what resolutions are available with the ''​-F''​ flag]], and request the lowest-resolution complete video with something like:
 +
 +  youtube-dl -f '​160/​278/​133/​18/​22'​ [url]
 +
  
 For "​talking head" type videos you can download the audio only, using something like: For "​talking head" type videos you can download the audio only, using something like:
-  * ''​youtube-dl --format ​bestaudio [URL]''​ if you intended to process the file further; or +  * ''​youtube-dl -bestaudio [URL]''​ if you intended to process the file further; or 
-  * ''​youtube-dl --format ​worstaudio [URL]''​ if you are going to use it directly.  ​+  * ''​youtube-dl -worstaudio [URL]''​ if you are going to use it directly.  ​
  
 Pulling down audio only when possible can save 90% or more bandwidth.  ​ Pulling down audio only when possible can save 90% or more bandwidth.  ​
 +
 +If you need both audio and video, those pieces can be pulled down separately and combined for absolute smallest filesize:
 +
 +  * ''​youtube-dl -f worstaudio+worstvideo [URL]''​
 ==== android ==== ==== android ====
  
communication/bandwidth_conservation.txt · Last modified: 2020/05/21 09:16 by frater_secessus