Skip to content

Instantly share code, notes, and snippets.

@dllud
Last active August 29, 2015 14:16
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 dllud/e93cbb92f158ce71ad88 to your computer and use it in GitHub Desktop.
Save dllud/e93cbb92f158ce71ad88 to your computer and use it in GitHub Desktop.
Command to screen capture/cast a selectable X11 window using ffmpeg (avconv) with lossless H.264
gm=$(xwininfo | grep 'geometry') && avconv -video_size $(echo $gm | grep -Eo '[0-9]+x[0-9]+') -framerate 30 -f x11grab -i :0.0+$(echo $gm | grep -Eo '[0-9]+\+[0-9]+$' | sed s/+/,/),nomouse -c:v libx264 -qp 0 -preset ultrafast -profile:v high444 capture.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment