For media server, I recommend Serviio, and not _too_ worry about video encoding that much (on-the-fly transcoding, but a few mkv files do have issues, depending on how they were encoded). And Linux/Windows/Mac version are available for free.
"I've finally learned what `upward compatible' means. It means we get to keep all our old mistakes." -- Dennie van Tassel