I tried to install some screen recording software but it crashed. So I came up with a simple way to do what I want:
First, start "recording" one frame a second.
mkdir /tmp/record while [ -d /tmp/record ]; do import -window root /tmp/record/$(date +%s').jpg; sleep 1; done
Then start doing whatever you want to record. In my case, I wanted to make a video of a run of my covid-19 heatmap.
When done, rename the directory to end recording: mv /tmp/record /tmp/record.done.
Then run the magic ffmpeg command:
cd /tmp/record.done ffmpeg -framerate 10 -pattern_type glob -i '*.jpg' -c:v libx264 -pix_fmt yuv420p out.mp4
Then you can play it: cvlc out.mp4 vlc://quit
last updated 2020-08-19 19:25:29. served from tektonic.jcomeau.com