1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00
FFmpeg/libavdevice
Omar Emara 04b37b5d7f 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>
2020-11-06 23:25:13 -05:00
..
tests
.gitignore
alldevices.c avdevice/alldevices: stop using deprecated linked list API 2020-10-19 11:54:45 -03:00
alsa_dec.c
alsa_enc.c
alsa.c
alsa.h
android_camera.c
audiotoolbox.m lavdevice: Add AudioToolbox output device. 2020-06-15 15:09:33 +02:00
avdevice.c avdevice/alldevices: stop using deprecated linked list API 2020-10-19 11:54:45 -03:00
avdevice.h
avdeviceres.rc
avfoundation.m avfoundation: Fix building on iOS 2020-04-30 14:21:47 +02:00
bktr.c
caca.c
decklink_common_c.h avdevice/decklink_dec: add support for querying RP188 High Frame Rate timecode 2020-09-13 18:06:54 +02:00
decklink_common.cpp avdevice/decklink_dec: use decklink_ctx->raw_format as bmdPixelFormat 2020-09-13 17:59:30 +02:00
decklink_common.h avdevice/decklink_dec: add support for querying RP188 High Frame Rate timecode 2020-09-13 18:06:54 +02:00
decklink_dec_c.c avdevice/decklink_dec: add support for querying RP188 High Frame Rate timecode 2020-09-13 18:06:54 +02:00
decklink_dec.cpp avdevice/decklink_dec: fix build with older SDK 2020-09-15 22:07:26 +02:00
decklink_dec.h
decklink_enc_c.c
decklink_enc.cpp avdevice/decklink: deprecate the -list_devices option 2020-01-03 18:13:22 +01:00
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 kmsgrab: Add more supported formats 2020-08-09 20:18:49 +01:00
lavfi.c avdevice/lavfi: av_malloc -> av_malloc_array 2020-09-21 09:30:55 +08:00
libavdevice.v
libcdio.c
libdc1394.c
Makefile lavdevice: Add AudioToolbox output device. 2020-06-15 15:09:33 +02:00
openal-dec.c
opengl_enc_shaders.h
opengl_enc.c avdevice/opengl: add support of wrapped avframe codec 2020-04-16 23:52:12 +02:00
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 avdevice/v4l2enc: Allow writing non-rawvideos to v4l2. 2020-05-09 15:44:43 +01:00
version.h avdevice/decklink_dec: add support for querying RP188 High Frame Rate timecode 2020-09-13 18:06:54 +02:00
vfwcap.c
xcbgrab.c avdevice/xcbgrab: Add select_region option 2020-11-06 23:25:13 -05:00
xv.c avdevice/xv: add support of wrapped avframe codec 2020-04-16 23:52:12 +02:00