Is there any way to record output?

I want to record my OSMC setup to show it off to someone but it’s just far too hard to record my TV with a phone or whatnot while trying to use it. Is there some way I can say run a program in ssh that records the current output until I terminate it?

Assuming you have a Raspberry Pi then you should have found this thread

Yep, should have searched better, sorry about that.