Is it possible to execute OS cmd command in unreal engine

I want to execute cmd command to run screen capture using ffmpeg library during game.
Does anybody know how to do it?

Yes, note C++ in UE4 is normal C++ and you can do anything that C++ can

But with UE4 APIs you should use FPlatform statics

API references lists “Generic” implementation which is fallback code from platform implementation, UE4 typedefs platform you compile to FPlatform

1 Like

Is that because otherwise you doom your Unreal app to work only on the platform that your platform-specific code is made for? If you go through FPlatform then it will choose the equivalent command (if one exists) for the platform you are building and packaging to, whether Windows, Linux, Mac, iOS, Android, etc., right?