I've actually used ffmpeg + GNU screen to do something very similar in the past.
The benefit of using GNU screen is that the "tape" can be a shell script. I suppose if you don't like shell scripts that's not a benefit, but I do like them.
For example, instead of:
Type "echo 'Welcome to VHS!'"
# Pause for dramatic effect...
Sleep 500ms
Enter
The benefit of using GNU screen is that the "tape" can be a shell script. I suppose if you don't like shell scripts that's not a benefit, but I do like them.
For example, instead of:
With GNU screen, you would write: If you want to start interacting with the session, just do screen -r whateverYou can also read what is in the screen with -X hardcopy, then do something with the output, like verify the output is correct or adjust the input.