Using AVEncoder interface to encode output frame to h264 stream in runtime

Hi. I see that UE4 uses AVEncoder interface which resides in Engine\Source\Runtime\AVEncoder for WebRTC encoding. I would like to use it in other scenarios, e.g encoding viewport output into video stream. It uses NVENC under the hood and I want to use the existing encoder implementation instead of writing another one. I didn’t find any info of using this module for anything else so I would like to ask if it is fit for any other type of image encoding than WebRTC endpoint?

Answering it myself )) Found an example in the engine core. (GameplayMediaEncoder). It is a bit buggy but works.