From bac8a5d2822835cf47175d1162030653fadd5c09 Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 15 Feb 2024 23:29:57 +0000 Subject: deploy: 4485708c972815bbb6df7f5a228683aa855d553d --- tools/ffmpeg.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/ffmpeg.html') diff --git a/tools/ffmpeg.html b/tools/ffmpeg.html index 3c8a3f1..563a011 100644 --- a/tools/ffmpeg.html +++ b/tools/ffmpeg.html @@ -181,14 +181,14 @@

Following snippet allows to select a window which is then captured.

#!/bin/bash
 
-echo "Click on window to record .."
+echo "Click on window to record .."
 # Extract window size and x,y offset.
 video_args=$(xwininfo \
     | awk '/Absolute upper-left X:/ { xoff = $4 }
            /Absolute upper-left Y:/ { yoff=$4 }
            /Width:/ { if ($2 % 2 == 1) { width=$2-1; } else { width=$2; } }
            /Height:/ { if ($2 % 2 == 1) { height=$2-1; } else { height=$2; } }
-           END { printf "-video_size %dx%d -i :0.0+%d,%d", width, height, xoff, yoff  }')
+           END { printf "-video_size %dx%d -i :0.0+%d,%d", width, height, xoff, yoff  }')
 
 ffmpeg -framerate 25 -f x11grab $video_args -pix_fmt yuv420p $@ output.mp4
 
-- cgit v1.2.3