We want to support local users uploading video in two senses:
Normal video files (MP4, MKV, MOV, etc.)
Animated GIFs/PNGs
We only want to allow videos to be in either mp4 with a common codec or webm/vp8 - all other formats will need conversion to one of these. This will need background processing that isn't in a stator main thread (as it's CPU bound). We might be OK launching an ffmpeg subprocess and asynchronously checking its progress.
We also want a size limit for uploads; Mastodon has one and quite a few clients appear to re-encode video locally already to meet this.
We want to support local users uploading video in two senses:
We only want to allow videos to be in either mp4 with a common codec or webm/vp8 - all other formats will need conversion to one of these. This will need background processing that isn't in a stator main thread (as it's CPU bound). We might be OK launching an ffmpeg subprocess and asynchronously checking its progress.
We also want a size limit for uploads; Mastodon has one and quite a few clients appear to re-encode video locally already to meet this.