Recording Selenium test execution with Expression Encoder 4 SDK fails on build server
Running tests on Windows Server require you to add the feature
User Interfaces
and
Infrastructure > Desktop Experience
to install missing dependencies required by Microsoft Expression Encoder.
If you already did this and it doesn't work read this article, it is very helpful and there is a link to GitHub profile with the code used for the video recording. The author uses ScreenCaptureJob thru interface which sounds great.