mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
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 | ||
alldevices.c | ||
alsa_dec.c | ||
alsa_enc.c | ||
alsa.c | ||
alsa.h | ||
android_camera.c | ||
audiotoolbox.m | ||
avdevice.c | ||
avdevice.h | ||
avdeviceres.rc | ||
avfoundation.m | ||
bktr.c | ||
caca.c | ||
decklink_common_c.h | ||
decklink_common.cpp | ||
decklink_common.h | ||
decklink_dec_c.c | ||
decklink_dec.cpp | ||
decklink_dec.h | ||
decklink_enc_c.c | ||
decklink_enc.cpp | ||
decklink_enc.h | ||
dshow_capture.h | ||
dshow_common.c | ||
dshow_crossbar.c | ||
dshow_enummediatypes.c | ||
dshow_enumpins.c | ||
dshow_filter.c | ||
dshow_pin.c | ||
dshow.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 | ||
Makefile | ||
openal-dec.c | ||
opengl_enc_shaders.h | ||
opengl_enc.c | ||
oss_dec.c | ||
oss_enc.c | ||
oss.c | ||
oss.h | ||
pulse_audio_common.c | ||
pulse_audio_common.h | ||
pulse_audio_dec.c | ||
pulse_audio_enc.c | ||
reverse.c | ||
sdl2.c | ||
sndio_dec.c | ||
sndio_enc.c | ||
sndio.c | ||
sndio.h | ||
timefilter.c | ||
timefilter.h | ||
utils.c | ||
v4l2-common.c | ||
v4l2-common.h | ||
v4l2.c | ||
v4l2enc.c | ||
version.h | ||
vfwcap.c | ||
xcbgrab.c | ||
xv.c |