- Install Pulseaudio because ALSA won’t record sound from your integrated on-board sound card :(
- In pavucontrol, show all recording devices and activate the one that reacts when games make sounds, so that Internal Audio is set as fallback (shield icon)
- Start game
- wmctrl -r GameWindowTitle -e 0,0,0,1280,720
- ffmpeg -f alsa -i pulse -f x11grab -acodec pcm_s16le -r 30 -s 1280x720 -i :0.0+1280x720 -vcodec libx264 -crf 0 -preset ultrafast -threads 0 out.mkv
- Edit/encode in kdenlive
Some alternatives, problems, solutions and discussions of this and similar methods can be found on:
Got questions? Ask below. :) Suggestions welcome too!
Nikki and the Robots: Story Episodes
Buy the cute Überpixel™ style platformer now!
outrageously blatant self-promotion