NeuromatchAcademy / mastodon

A glitchy but lovable microblogging server
https://glitch-soc.github.io/docs/
GNU Affero General Public License v3.0
7 stars 2 forks source link

Resize videos larger than max allowed resolution #34

Open sneakers-the-rat opened 11 months ago

sneakers-the-rat commented 11 months ago

Context: https://neuromatch.social/@elduvelle/111597148157826926

tl;dr we want to let people post larger media here, the question is how large?

Description

The current configuration options actually don't modify some of the underlying behavior for handling gifs, and the current behavior is to just reject gifs/videos larger than the max rather than trying to rescale them.

This PR:

TODO

Discussion

this works, but sort of begs the question what we want our storage/media limits to be. There are a few limits that act independent-ish:

and they seem like they sort of should be independent (except for maybe frame number, idk why that wouldn't be better handled by filesize). resolution is the main determinant of bitrate (how much cpu and bandwidth is needed to watch the video) and size is the uh only determinant of storage use.

right now the settings are sorta ridiculous, like i can upload a 4K gif, but it has to be less than 16MB, so it can only be 1 second long.

we want to support ppl being able to upload big stuff, but we might not want to get ourselves in the position of having to guarantee a lot of storage right now. We are committed to preserving whatever is posted to the instance, as we should be, so to what degree do we want to act like an archival video server vs. more limited microblogging server? rn we are not really hungry for storage space, but if we start accepting very large videos, that would be the fastest way for that to happen

github-actions[bot] commented 10 months ago

This pull request has merge conflicts that must be resolved before it can be merged.