The wine part is just a frame server. Things like mencoder and ffmpeg leave much to be desired. The x265 binary is compiled on the machine for the machine. Such architectural things like AVX-512 is why I use such a binary, instead of libraries through stuff like mencoder or ffmpeg. There is really no other way to get frames to such a program other than a pipe. x264 could be built to read video files directly, but processing options were garbage. x265 I don't believe will do anything.
I couldn't even get that example to run. It just dies and says slots full without doing anything.