[FFmpeg-devel] [PATCH] doc/indevs: rework option description in the x11 grab section

Clément Bœsch ubitux at gmail.com
Wed Aug 8 23:00:20 CEST 2012


On Wed, Aug 08, 2012 at 11:21:56AM +0200, Stefano Sabatini wrote:
> Create a dedicated options subchapter, rather than a subchapter for each
> option.
> 
> This is more consistent with the rest of the docs. Also apply misc minor
> fixes for improving rendering.
> ---
>  doc/indevs.texi |   35 ++++++++++++++++++-----------------
>  1 files changed, 18 insertions(+), 17 deletions(-)
> 
> diff --git a/doc/indevs.texi b/doc/indevs.texi
> index fed0fbf..8c7615e 100644
> --- a/doc/indevs.texi
> +++ b/doc/indevs.texi
> @@ -635,12 +635,12 @@ ffmpeg -f x11grab -r 25 -s cif -i :0.0 out.mpg
>  ffmpeg -f x11grab -r 25 -s cif -i :0.0+10,20 out.mpg
>  @end example
>  
> - at subsection @var{follow_mouse} AVOption
> + at subsection Options
>  
> -The syntax is:
> - at example
> --follow_mouse centered|@var{PIXELS}
> - at end example
> + at table @option
> + at item follow_mouse
> +Make the grabbed area follow the mouse. The argument can be
> + at code{centered} or a number of pixels @var{PIXELS}.
>  
>  When it is specified with "centered", the grabbing region follows the mouse
>  pointer and keeps the pointer at the center of region; otherwise, the region
> @@ -650,28 +650,29 @@ zero) to the edge of region.
>  For example:
>  @example
>  ffmpeg -f x11grab -follow_mouse centered -r 25 -s cif -i :0.0 out.mpg
> -
> -# Follows only when the mouse pointer reaches within 100 pixels to edge
> -ffmpeg -f x11grab -follow_mouse 100 -r 25 -s cif -i :0.0 out.mpg
>  @end example
>  
> - at subsection @var{show_region} AVOption
> -
> -The syntax is:
> +To follow only when the mouse pointer reaches within 100 pixels to edge:
>  @example
> --show_region 1
> +ffmpeg -f x11grab -follow_mouse 100 -r 25 -s cif -i :0.0 out.mpg
>  @end example
>  
> -If @var{show_region} AVOption is specified with @var{1}, then the grabbing
> -region will be indicated on screen. With this option, it's easy to know what is
> -being grabbed if only a portion of the screen is grabbed.
> + at item show_region
> +Show grabbed region on screen.
> +
> +If @var{show_region} is specified with @code{1}, then the grabbing
> +region will be indicated on screen. With this option, it is easy to
> +know what is being grabbed if only a portion of the screen is grabbed.
>  
>  For example:
>  @example
>  ffmpeg -f x11grab -show_region 1 -r 25 -s cif -i :0.0+10,20 out.mpg
> + at end example
>  
> -# With follow_mouse
> -ffmpeg -f x11grab -follow_mouse centered -show_region 1  -r 25 -s cif -i :0.0 out.mpg
> +With @var{follow_mouse}:
> + at example
> +ffmpeg -f x11grab -follow_mouse centered -show_region 1 -r 25 -s cif -i :0.0 out.mpg
>  @end example
> + at end table
>  
>  @c man end INPUT DEVICES

LGTM.

Note: could be nice if you could send these patches as a patchset,
especially since the order is important :)

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120808/994f1380/attachment.asc>


More information about the ffmpeg-devel mailing list