if you need more options just use ffmpeg directly
https://trac.ffmpeg.org/wiki/Capture/Desktop
Because my recorded videos via ffmpeg always had the last seconds showing me how to switch to the terminal and stop by hand, which is more work for editing, which is why I use OBS studio, which I can recommend.
https://github.com/neXromancers/hacksaw#record-an-area-of-th...