Skip to content

Instantly share code, notes, and snippets.

@Enelar
Created May 6, 2018 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Enelar/54d1f77b11db193427477b77f342f635 to your computer and use it in GitHub Desktop.
Save Enelar/54d1f77b11db193427477b77f342f635 to your computer and use it in GitHub Desktop.
Arch flicker free ffmpeg screen capture
#etc/X11/xorg.conf.d/20-graphics.conf
Section "Device"
Identifier "Intel Graphics"
Driver "modesetting"
Option "AccelMethod" "glamor"
EndSection
ffmpeg -vaapi_device /dev/dri/renderD128 -f x11grab -video_size 1920x1080 -i :1 -vf 'format=nv12,hwupload' -c:v h264_vaapi -r 90 vaapi.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment