瀏覽代碼

[bin] Add a screencap shell script

Colin Powell 5 年之前
父節點
當前提交
27cfe32f67
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      bin/.bin/screencap

+ 7 - 0
bin/.bin/screencap

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