Sway: Tweak screen recorder.
This commit is contained in:
parent
0cbcfdb5b0
commit
7e1502dae3
|
@ -24,7 +24,6 @@ let
|
||||||
container = "mp4";
|
container = "mp4";
|
||||||
format = "%Y-%m-%d_%H-%M-%S";
|
format = "%Y-%m-%d_%H-%M-%S";
|
||||||
framerate = 30;
|
framerate = 30;
|
||||||
keyint = framerate * 5;
|
|
||||||
opacity = "26";
|
opacity = "26";
|
||||||
pixfmt = "yuv420p10le";
|
pixfmt = "yuv420p10le";
|
||||||
selection = "slurp -d -b ${color.bg.light}${opacity} -c ${color.fg.light} -w 0 -s 00000000";
|
selection = "slurp -d -b ${color.bg.light}${opacity} -c ${color.fg.light} -w 0 -s 00000000";
|
||||||
|
@ -111,9 +110,7 @@ let
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
-i "''${scrFile}" \
|
-i "''${scrFile}" \
|
||||||
-c:v ${codec} \
|
-c:v ${codec} \
|
||||||
-svtav1-params "tune=0" \
|
|
||||||
-pix_fmt ${pixfmt} \
|
-pix_fmt ${pixfmt} \
|
||||||
-g ${toString keyint} \
|
|
||||||
-f ${container} \
|
-f ${container} \
|
||||||
"''${scrFile}_" \
|
"''${scrFile}_" \
|
||||||
&& mv "''${scrFile}_" "''${scrFile}" \
|
&& mv "''${scrFile}_" "''${scrFile}" \
|
||||||
|
|
Loading…
Reference in a new issue