Sorry, I did not understand that you were talking about video.
I think it’s only available for cut-scenes in the editor but you might be able to get UMovieSceneCapture working for you in C++. However expect it to have a large impact on your game’s performance.
Check this discussion: How do i record video in game