32blit-sdl supports optional FFMPEG video capture, which you can enable by grabbing a FFMPEG snapshot, building it, and turning on ENABLE_FFMPEG when building your project.
sudo apt install liblzma-devwget https://github.com/FFmpeg/FFmpeg/archive/n4.1.4.zipunzip n4.1.4.zipcd FFmpeg-n4.1.4./configure --prefix=$(pwd)/buildmake && make installThen configure your 32blit project with:
mkdir build cd build cmake .. -DVIDEO_CAPTURE=true
When running your game, you can now hit r to start and stop recording.