Xbox Game Bar allows you to screenshot stills of your game and video from your game.
On Windows 11, type Win + G. Then click the cam icon to get the Capture window. Then, to capture a screenshot, click the camera icon. To capture a video, click the circle record icon. When done recording, click the square stop icon. These two icons look like the icons on a retro cassette recorder.
If you need the settings for this, you can find them here.
Once you’re done, compress your video with FreeConvert Video Compressor, if your video is less than 1 minute long.