I've got a weird issue running ffmpeg and trying to capture my screen.
When I run it with:
ffmpeg -video_size 512x383 -framerate 60 -f x11grab -i :0.0+512,203 -c:v libx264 -crf 0 -preset ultrafast -t 20 /tmp/lossless.mkv
I can capture 60fps without any issue.
However, as soon as I try to capture audio. The framerate drops to less than 30fps:
ffmpeg -video_size 512x383 -framerate 60 -f x11grab -i :0.0+512,203 -f pulse -ac 2 -i default -c:v libx264 -crf 0 -preset ultrafast -b:a 64k -t 20 /tmp/lossless_with_audio.mkv
See here for command output: https://pastebin.com/BMq38raq