mirror of https://git.ffmpeg.org/ffmpeg.git
04b37b5d7f
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> |
||
---|---|---|
.. | ||
tests | ||
.gitignore | ||
Makefile | ||
alldevices.c | ||
alsa.c | ||
alsa.h | ||
alsa_dec.c | ||
alsa_enc.c | ||
android_camera.c | ||
audiotoolbox.m | ||
avdevice.c | ||
avdevice.h | ||
avdeviceres.rc | ||
avfoundation.m | ||
bktr.c | ||
caca.c | ||
decklink_common.cpp | ||
decklink_common.h | ||
decklink_common_c.h | ||
decklink_dec.cpp | ||
decklink_dec.h | ||
decklink_dec_c.c | ||
decklink_enc.cpp | ||
decklink_enc.h | ||
decklink_enc_c.c | ||
dshow.c | ||
dshow_capture.h | ||
dshow_common.c | ||
dshow_crossbar.c | ||
dshow_enummediatypes.c | ||
dshow_enumpins.c | ||
dshow_filter.c | ||
dshow_pin.c | ||
fbdev_common.c | ||
fbdev_common.h | ||
fbdev_dec.c | ||
fbdev_enc.c | ||
file_open.c | ||
gdigrab.c | ||
iec61883.c | ||
internal.h | ||
jack.c | ||
kmsgrab.c | ||
lavfi.c | ||
libavdevice.v | ||
libcdio.c | ||
libdc1394.c | ||
openal-dec.c | ||
opengl_enc.c | ||
opengl_enc_shaders.h | ||
oss.c | ||
oss.h | ||
oss_dec.c | ||
oss_enc.c | ||
pulse_audio_common.c | ||
pulse_audio_common.h | ||
pulse_audio_dec.c | ||
pulse_audio_enc.c | ||
reverse.c | ||
sdl2.c | ||
sndio.c | ||
sndio.h | ||
sndio_dec.c | ||
sndio_enc.c | ||
timefilter.c | ||
timefilter.h | ||
utils.c | ||
v4l2-common.c | ||
v4l2-common.h | ||
v4l2.c | ||
v4l2enc.c | ||
version.h | ||
vfwcap.c | ||
xcbgrab.c | ||
xv.c |