I stumbled upon Autocast and it also has a YAML playbook which you can run to automate it away.
Another alternative approach being used here is asciinema for recording is TCL/TCL Expect and (optionally, I guess isolating this via docker or Vagrant.
Reference to where I proposed this.
Cross-posted to their forum.