Chocobozzz / PeerTube

ActivityPub-federated video streaming platform using P2P directly in your web browser
https://joinpeertube.org/
GNU Affero General Public License v3.0
13.1k stars 1.51k forks source link

About the unsustainable use of online video #1979

Closed sbernard31 closed 4 years ago

sbernard31 commented 5 years ago

Regarding last report of shift project about “Climate crisis: the unsustainable use of online video”, streaming is a real problem ! :sob:

Here the report :page_facing_up: : :gb: : https://theshiftproject.org/en/article/unsustainable-use-online-video/ :fr: : https://theshiftproject.org/article/climat-insoutenable-usage-video/

Peertube could follow some simple rules to try to limit its impacts :earth_africa: : a) do not download video if user don't really want to watch it. b) encourage usage of best encoding format like H.264. c) encourage user to use low resolution.

This rules could be declined in features like :

  1. for a) no autostart !
  2. for b) forbid worst encoding format.
  3. for b) add some advice or notation system about encoding format at upload time to nudge user to the right format and resolution. (CO²/bandwish/storage saved if it used a better encoding format)
  4. for c) let instance owner define the max resolution.
  5. for c) encourage instance owner to use a max resolution as lower as possible.
  6. for c) about resolution choice, auto mode could prefer the lower one.
  7. for c) if it exist a resolution lower than the one chosen, a message could be displayed with the CO² saved if the lower resolution was chosen.
  8. for c) add an audio only mode.

This features list is just some ideas to illustrate my point, this is not a real TODO list. Up to you(we) to find the better feature which will help to follow the above rules.

(If you vote down, please try to explain why in a constructive way. Maybe your point of view makes sense and it could be valuable to share it)

lapineige commented 5 years ago

Another idea for a) : don't load the full video when you connection is fast enough to load the missing part when watching it. If you open a video, start to watch it, but pause it and come back later, maybe you will stop and close the tab for some reason. But the player would load the full video anyway. Instead, the player could load the next (for instance) 10%, or 2min, and then stop until the user resume the playback (or come back to the tab ?)

(this is especially relevant for long videos, talks, movies…)

Chocobozzz commented 5 years ago

@lapineige This will be fixed with the HLS player

lapineige commented 5 years ago

What does it change ?

Chocobozzz commented 5 years ago

It has a max buffer size, so it won't load the entire video

njean42 commented 5 years ago

+1 on no autostart (possibly configurable by user?) +1 on audio-only play mode

Nutomic commented 5 years ago

A feature for autoplaying the next video was just merged in #2137. I think that is very relevant to this issue, because autoplaying will encourage users to watch more videos, or will even cause videos to be played when the user is away from the computer. At the moment, it is a profile setting and once enabled, will be always enabled for that user.

To make the feature sustainable, I suggest that autoplay should be an option on the video page, and should be disabled after each video session. That means users would have to actively choose to enable autoplay every time they open a video.

sbernard31 commented 4 years ago

There is an extension for firefox called Carbonalyser which help to see your internet carbon footprint.

This extension is released over MIT license. Reuse the calculate way could help to add some indicators about the video resolution or format impact.

(see shitfproject article for more details)

rigelk commented 4 years ago

I suggest that autoplay should be an option on the video page, and should be disabled after each video session. That means users would have to actively choose to enable autoplay every time they open a video.

@Nutomic That's what I ended up implementing in 88a7f93f8e5666f44121a2e3cf9d33d74c472aa7 for regular videos. By default only playlists go to the next video automatically (can be disabled too).

lapineige commented 4 years ago

Sounds like a very good choice :)

rigelk commented 4 years ago

I created an eponym tag to help you continue the discussion on more targeted issues, which is the preferred way to adress problems in PeerTube (all-encompassing issues are hard to track over time for us). Please open them as needed, and I will tag them as such.

unfa commented 3 years ago

Now I feel bad as a content creator trying to deliver higher quality videos :(

njean42 commented 3 years ago

Now I feel bad as a content creator trying to deliver higher quality videos :(

You don't have to. The choice should be in the hands of viewers. Depending on their connection speed, personal preferences for quality/environment etc., they will select the right video quality for them.