I’ve had random issues like this with CLI recorders before, especially where nothing gets saved after you stop the recording, so I switched to using more modern screen capture tools for reliability. Sometimes those older apps just don’t play well with different setups, and it gets annoying troubleshooting every time when you need a quick recording for YouTube.
Lately, I just use online options since I don’t want to mess with downloads or fixing CLI bugs. For this kind of thing, movavi makes it super easy since it works right from the browser, and I never run into missing file issues.