I avoided transcoding by making sure to only host videos compatible with all clients. Also, I will spend the time to reencode codes that are too large for my taste. Which happens after a rip of uhd disks.
H265 with slow preset really works wonders for non-grainy film. AV1 is what you have to use when there is grain.
Gulf of Freedom