Skip to content
Snippets Groups Projects
Commit a06dcde5 authored by Lou Logan's avatar Lou Logan Committed by Stefano Sabatini
Browse files

doc: make x11grab examples consistent with option names


Change -r to -framerate, but either will work.
Change -s to -video_size, but either will work.

Signed-off-by: default avatarStefano Sabatini <stefasab@gmail.com>
parent d6f86d74
No related branches found
No related tags found
No related merge requests found
...@@ -1215,14 +1215,14 @@ standard mixer. ...@@ -1215,14 +1215,14 @@ standard mixer.
Grab the X11 display with ffmpeg via Grab the X11 display with ffmpeg via
@example @example
ffmpeg -f x11grab -s cif -r 25 -i :0.0 /tmp/out.mpg ffmpeg -f x11grab -video_size cif -framerate 25 -i :0.0 /tmp/out.mpg
@end example @end example
0.0 is display.screen number of your X11 server, same as 0.0 is display.screen number of your X11 server, same as
the DISPLAY environment variable. the DISPLAY environment variable.
@example @example
ffmpeg -f x11grab -s cif -r 25 -i :0.0+10,20 /tmp/out.mpg ffmpeg -f x11grab -video_size cif -framerate 25 -i :0.0+10,20 /tmp/out.mpg
@end example @end example
0.0 is display.screen number of your X11 server, same as the DISPLAY environment 0.0 is display.screen number of your X11 server, same as the DISPLAY environment
......
...@@ -698,12 +698,12 @@ properties of your X11 display (e.g. grep for "name" or "dimensions"). ...@@ -698,12 +698,12 @@ properties of your X11 display (e.g. grep for "name" or "dimensions").
For example to grab from @file{:0.0} using @command{ffmpeg}: For example to grab from @file{:0.0} using @command{ffmpeg}:
@example @example
ffmpeg -f x11grab -r 25 -s cif -i :0.0 out.mpg ffmpeg -f x11grab -framerate 25 -video_size cif -i :0.0 out.mpg
@end example @end example
Grab at position @code{10,20}: Grab at position @code{10,20}:
@example @example
ffmpeg -f x11grab -r 25 -s cif -i :0.0+10,20 out.mpg ffmpeg -f x11grab -framerate 25 -video_size cif -i :0.0+10,20 out.mpg
@end example @end example
@subsection Options @subsection Options
...@@ -724,12 +724,12 @@ zero) to the edge of region. ...@@ -724,12 +724,12 @@ zero) to the edge of region.
For example: For example:
@example @example
ffmpeg -f x11grab -follow_mouse centered -r 25 -s cif -i :0.0 out.mpg ffmpeg -f x11grab -follow_mouse centered -framerate 25 -video_size cif -i :0.0 out.mpg
@end example @end example
To follow only when the mouse pointer reaches within 100 pixels to edge: To follow only when the mouse pointer reaches within 100 pixels to edge:
@example @example
ffmpeg -f x11grab -follow_mouse 100 -r 25 -s cif -i :0.0 out.mpg ffmpeg -f x11grab -follow_mouse 100 -framerate 25 -video_size cif -i :0.0 out.mpg
@end example @end example
@item framerate @item framerate
...@@ -745,12 +745,12 @@ know what is being grabbed if only a portion of the screen is grabbed. ...@@ -745,12 +745,12 @@ know what is being grabbed if only a portion of the screen is grabbed.
For example: For example:
@example @example
ffmpeg -f x11grab -show_region 1 -r 25 -s cif -i :0.0+10,20 out.mpg ffmpeg -f x11grab -show_region 1 -framerate 25 -video_size cif -i :0.0+10,20 out.mpg
@end example @end example
With @var{follow_mouse}: With @var{follow_mouse}:
@example @example
ffmpeg -f x11grab -follow_mouse centered -show_region 1 -r 25 -s cif -i :0.0 out.mpg ffmpeg -f x11grab -follow_mouse centered -show_region 1 -framerate 25 -video_size cif -i :0.0 out.mpg
@end example @end example
@item video_size @item video_size
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment