Created
April 16, 2021 14:54
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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