aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/ffmpeg.html
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ffmpeg.html')
-rw-r--r--tools/ffmpeg.html4
1 files changed, 2 insertions, 2 deletions
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 @@
<p>Following snippet allows to select a window which is then captured.</p>
<pre><code class="language-bash">#!/bin/bash
-echo &quot;Click on window to record ..&quot;
+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 &quot;-video_size %dx%d -i :0.0+%d,%d&quot;, 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
</code></pre>