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.
IF I HAD A MINE SHAFT, I don't think I would just abandon it. There's got to be a better way. -- Jack Handley, The New Mexican, 1988.