aboutsummaryrefslogtreecommitdiffstats
path: root/doc/indevs.texi
diff options
context:
space:
mode:
authorYu-Jie Lin <livibetter@gmail.com>2011-07-30 19:13:43 +0800
committerAnton Khirnov <anton@khirnov.net>2011-07-31 14:26:08 +0200
commit1442d295337dfc83fb66b20444c1b09a803ebb80 (patch)
tree187cf147fca63957498d0f84d6a6ffe04ec7d9f4 /doc/indevs.texi
parent085791a92e239875fed560c34db87e98083f4092 (diff)
downloadffmpeg-1442d295337dfc83fb66b20444c1b09a803ebb80.tar.gz
x11grab: add show_region AVOption.
Draw the current grabbing region for indication. Signed-off-by: Yu-Jie Lin <livibetter@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'doc/indevs.texi')
-rw-r--r--doc/indevs.texi19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/indevs.texi b/doc/indevs.texi
index aa001cdb63..fa21c099d5 100644
--- a/doc/indevs.texi
+++ b/doc/indevs.texi
@@ -271,4 +271,23 @@ ffmpeg -f x11grab -follow_mouse centered -r 25 -s cif -i :0.0 out.mpg
ffmpeg -f x11grab -follow_mouse 100 -r 25 -s cif -i :0.0 out.mpg
@end example
+@subsection @var{show_region} AVOption
+
+The syntax is:
+@example
+-show_region 1
+@end example
+
+If @var{show_region} AVOption is specified with @var{1}, then the grabbing
+region will be indicated on screen. With this option, it's easy to know what is
+being grabbed if only a portion of the screen is grabbed.
+
+For example:
+@example
+ffmpeg -f x11grab -show_region 1 -r 25 -s cif -i :0.0+10,20 out.mpg
+
+# With follow_mouse
+ffmpeg -f x11grab -follow_mouse centered -show_region 1 -r 25 -s cif -i :0.0 out.mpg
+@end example
+
@c man end INPUT DEVICES