commit 0ebee8845979709fb8e1895959801d83456d2508 parent e32ac01331cb28a61afc64e6e2ee2d9c1440cd33 Author: dwrz <dwrz@dwrz.net> Date: Fri, 22 Dec 2023 15:28:18 +0000 Update screen-capture script Diffstat:
M | scripts/screen-capture | | | 12 | +++++++++++- |
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/scripts/screen-capture b/scripts/screen-capture @@ -13,9 +13,19 @@ if [ "$1" = "audio" ]; then -ac 2 \ -i default \ -c:v libx264 \ + -profile:v baseline \ + -level 3.0 \ + -pix_fmt yuv420p \ "${OUTPUT}" else >&2 echo "not capturing audio" - ffmpeg -video_size "${RESOLUTION}" -f x11grab -i :0.0 -c:v libx264 "${OUTPUT}" + ffmpeg -video_size "${RESOLUTION}" \ + -f x11grab \ + -i :0.0 \ + -c:v libx264 \ + -profile:v baseline \ + -level 3.0 \ + -pix_fmt yuv420p \ + "${OUTPUT}" fi