screencap 254 B

1234567
  1. #!/usr/bin/env sh
  2. # FFmppeg screen capture
  3. #
  4. REC_iface=$(pactl list sources short | awk '{print$2}' | grep 'monitor')
  5. SCREEN_res=$(xrandr -q --current | grep '*' | awk '{print$1}')
  6. ffmpeg -f x11grab -r 25 -s 1920x1080 -i :0.0 -vcodec libx264 output.mkv