On Sun, Jul 31, 2011 at 12:27:46AM +0800, Yu-Jie Lin wrote:
>
> --- a/doc/ffmpeg.texi
> +++ b/doc/ffmpeg.texi
> @@ -920,6 +920,23 @@ ffmpeg -f x11grab -follow_mouse 100 -s cif -r 25 -i :0.0
> /tmp/out.mpg
>
> +@example
> +ffmpeg -f x11grab -show_region 1 -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
is the
> +0.0 is display.screen number of your X11 server, same as the DISPLAY
> environment
is the
> --- a/doc/indevs.texi
> +++ b/doc/indevs.texi
> @@ -267,4 +267,16 @@ ffmpeg -f x11grab -follow_mouse -1 -r 25 -s cif -i :0.0
> out.mpg
>
> +If @var{show_region} AVOption is specified with @var{1} as value, then the
> +grabbing region will be indicated on screen. With this option, it's easy to
> +know what is being grabbed if only grab a portion of the screen.
know what is being grabbed if only a portion of the screen is grabbed.
> --- a/libavdevice/x11grab.c
> +++ b/libavdevice/x11grab.c
> @@ -72,9 +73,74 @@ struct x11_grab
>
> + screen = DefaultScreen(dpy);
> + attribs.override_redirect = True;
> + s->region_win = XCreateWindow(
> + dpy, RootWindow(dpy, screen),
> + s->x_off - REGION_WIN_BORDER,
ugly linebreak
> + rect.width = s->width;
> + rect.height = s->height;
nit: align '='
Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel