diff options
author | Omar Emara <mail@OmarEmara.dev> | 2020-07-11 11:29:09 +0200 |
---|---|---|
committer | Andriy Gelman <andriy.gelman@gmail.com> | 2020-11-06 23:25:13 -0500 |
commit | 04b37b5d7fcd5ffd141054177611d5168629e4ac (patch) | |
tree | a426e7e66baecc55ec8086686c92f471a0b1e31a /libavfilter/f_ebur128.c | |
parent | c8101aabee654f6d147a4d89f77fa73e18908610 (diff) | |
download | ffmpeg-04b37b5d7fcd5ffd141054177611d5168629e4ac.tar.gz |
avdevice/xcbgrab: Add select_region option
This patch adds a select_region option to the xcbgrab input device.
If set to 1, the user will be prompted to select the grabbing area
graphically by clicking and dragging. A rectangle will be drawn to
mark the grabbing area. A single click with no dragging will select
the whole screen. The option overwrites the video_size, grab_x, and
grab_y options if set by the user.
For testing, just set the select_region option as follows:
ffmpeg -f x11grab -select_region 1 -i :0.0 output.mp4
The drawing happens directly on the root window using standard rubber
banding techniques, so it is very efficient and doesn't depend on any
X extensions or compositors.
Reviewed-by: Andriy Gelman <andriy.gelman@gmail.com>
Signed-off-by: Omar Emara <mail@OmarEmara.dev>
Diffstat (limited to 'libavfilter/f_ebur128.c')
0 files changed, 0 insertions, 0 deletions