Server-sided video transcoding
What feature would you like implemented? (Please give us a brief description of what you'd like.)
I would like for sharkey to explore the possibility of server-sided video transcoding. I have talked directly to the devs over discord, and we came up with a couple of ways that this can be accomplished. mainly utilizing ffmpeg as we already use it in other places.
Why should we add this feature? (Please give us a brief description of why your feature is important.)
This feature solves two problems, one is that it solves a potential headache when dealing with a large amount of video attachments. Being able to transcode video to a smaller, more optimized format for storage will decrease the price required to run instances. This also fixes a specific issue in regards to browser + device combinations not supporting all available codecs. I'll provide you a very real scenario: I record a video on my iPhone, I upload this video to my account on sharkey. It's stored as a .mov which is apple's proprietary codec + container format. Firefox on windows cannot display this codec. Not just specific to apple but there's a lot of various codecs out there such as VP9, H265, H264 with varying degree of support from operating systems to browser developers. What we can do to alleviate these small nuisances is to use a container format that's easy to transcode to and from. By implementing this we can save space on storage while at the same time providing a cleaner experience to the end user.
Version (What version of Sharkey is your instance running? You can find this by clicking your instance's logo at the top left and then clicking instance information.)
2024.3.2
Instance (What instance of Sharkey are you using?)
transfem.social
Contribution Guidelines By submitting this issue, you agree to follow our Contribution Guidelines
- I agree to follow this project's Contribution Guidelines
- I have searched the issue tracker for similar requests, and this is not a duplicate.