Skip to content

Instantly share code, notes, and snippets.

@pavel-kirienko
Created April 16, 2021 14:54
Show Gist options
  • Save pavel-kirienko/52a26f51c1ed7fd434b7b2c4d8fb52dc to your computer and use it in GitHub Desktop.
Save pavel-kirienko/52a26f51c1ed7fd434b7b2c4d8fb52dc to your computer and use it in GitHub Desktop.
Capture high-frame-rate, high-resolution video of the desktop using ffmpeg
# Capture high-frame-rate, high-resolution video of the desktop using ffmpeg.
# The key options are: -c:v libx264 -f flv -vb 1000M -deadline realtime -cpu-used 12
# Without these, the output video peaks at ~5 fps or so.
ffmpeg -video_size 3840x2080 -f x11grab -i :0.0+3840,0 -c:v libx264 -f flv -vb 1000M -deadline realtime -cpu-used 12 output.mp4 -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment