Set up on-demand recording
Open Game Recording in Steam Settings and choose recording on demand. Check the assigned start and stop shortcut. Record a short clip in local practice, then stop using the assigned shortcut.
Check video and audio
Open the recording in Steam and play it. Check that you can see the game and hear the audio you wanted. If your microphone is missing, check the selected audio sources and repeat the short test.
Save an MP4 file
Select the start and end of the segment on the recording timeline, create a clip and export it as MP4. Play the saved file before sharing it. The clip contains the view you recorded. You cannot select a different player after export.