diff options
author | Yu-Jie Lin <livibetter@gmail.com> | 2011-07-30 18:46:36 +0800 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-07-31 14:25:00 +0200 |
commit | 085791a92e239875fed560c34db87e98083f4092 (patch) | |
tree | 30fba179b9028d76dc3616f8312daee224babac5 /doc/ffmpeg.texi | |
parent | 42ba12888b9296977237f2bca0027d8b017011db (diff) | |
download | ffmpeg-085791a92e239875fed560c34db87e98083f4092.tar.gz |
x11grab: add follow_mouse AVOption.
-follow_mouse centered|PIXELS
move grabbing region to where mouse pointer at the center; or
only move when pointer reaches within PIXELS to the edge.
Signed-off-by: Yu-Jie Lin <livibetter@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'doc/ffmpeg.texi')
-rw-r--r-- | doc/ffmpeg.texi | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi index 4dca5d8991..8d3968dbf2 100644 --- a/doc/ffmpeg.texi +++ b/doc/ffmpeg.texi @@ -900,8 +900,21 @@ the DISPLAY environment variable. ffmpeg -f x11grab -s cif -r 25 -i :0.0+10,20 /tmp/out.mpg @end example -0.0 is display.screen number of your X11 server, same as the DISPLAY environment -variable. 10 is the x-offset and 20 the y-offset for the grabbing. +10 is the x-offset and 20 the y-offset for the grabbing. + +@example +ffmpeg -f x11grab -follow_mouse centered -s cif -r 25 -i :0.0 /tmp/out.mpg +@end example + +The grabbing region follows the mouse pointer, which stays at the center of +region. + +@example +ffmpeg -f x11grab -follow_mouse 100 -s cif -r 25 -i :0.0 /tmp/out.mpg +@end example + +Only follows when mouse pointer reaches within 100 pixels to the edge of +region. @section Video and Audio file format conversion |