Resize videos larger than max allowed resolution #34
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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