History

Apply misc fixes spotted by Diego to indevs.texi and outdevs.texi.

Originally committed as revision 24724 to svn://svn.ffmpeg.org/ffmpeg/trunk

Stefano Sabatini committed 16 years ago

Commit 2f6bc4e1 parent c32ccf72 files · +32 −33Browse files

Unified · Split

2 files
  1. doc/indevs.texi +30 −31
  2. doc/outdevs.texi +2 −2
doc/indevs.texi+30−31
@@ -5,8 +5,8 @@ Input devices are configured elements in FFmpeg which allow to access · 4 unmodified lines
5the data coming from a multimedia device attached to your system.5the data coming from a multimedia device attached to your system.
6 6
7When you configure your FFmpeg build, all the supported input devices7When you configure your FFmpeg build, all the supported input devices
8are enabled by default. You can list them using the configure option8are enabled by default. You can list all available ones using the
9"--list-indevs".9configure option "--list-indevs".
10 10
11You can disable all the input devices using the configure option11You can disable all the input devices using the configure option
12"--disable-indevs", and selectively enable an input device using the12"--disable-indevs", and selectively enable an input device using the
@@ -25,7 +25,7 @@ ALSA (Advanced Linux Sound Architecture) input device. · 12 unmodified lines
25To enable this input device during configuration you need libasound25To enable this input device during configuration you need libasound
26installed on your system.26installed on your system.
27 27
28This device allows to capture from an ALSA device. The name of the28This device allows capturing from an ALSA device. The name of the
29device to capture has to be an ALSA card identifier.29device to capture has to be an ALSA card identifier.
30 30
31An ALSA identifier has the syntax:31An ALSA identifier has the syntax:
@@ -42,7 +42,7 @@ specify card number or identifier, device number and subdevice number · 10 unmodified lines
42To see the list of cards currently recognized by your system check the42To see the list of cards currently recognized by your system check the
43files @file{/proc/asound/cards} and @file{/proc/asound/devices}.43files @file{/proc/asound/cards} and @file{/proc/asound/devices}.
44 44
45For example to capture with @file{ffmpeg} from an alsa device with45For example to capture with @file{ffmpeg} from an ALSA device with
46card id 0, you may run the command:46card id 0, you may run the command:
47@example47@example
48ffmpeg -f alsa -i hw:0 alsaout.wav48ffmpeg -f alsa -i hw:0 alsaout.wav
@@ -65,38 +65,38 @@ Linux DV 1394 input device. · 16 unmodified lines
65 65
66@section jack66@section jack
67 67
68Jack input device.68JACK input device.
69 69
70To enable this input device during configuration you need libjack70To enable this input device during configuration you need libjack
71installed on your system.71installed on your system.
72 72
73A jack input device creates one or more jack writable clients, one for73A JACK input device creates one or more JACK writable clients, one for
74each audio channel, with name @var{client_name}:input_@var{N}, where74each audio channel, with name @var{client_name}:input_@var{N}, where
75@var{client_name} is the name provided by the application, and @var{N}75@var{client_name} is the name provided by the application, and @var{N}
76is a number which identifies the channel.76is a number which identifies the channel.
77Each writable client will send the acquired data to the FFmpeg input77Each writable client will send the acquired data to the FFmpeg input
78device.78device.
79 79
80Once you have created one or more jack readable clients, you need to80Once you have created one or more JACK readable clients, you need to
81connect them to one or more jack writable clients.81connect them to one or more JACK writable clients.
82 82
83To connect or disconnect jack clients you can use the83To connect or disconnect JACK clients you can use the
84@file{jack_connect} and @file{jack_disconnect} programs, or do it84@file{jack_connect} and @file{jack_disconnect} programs, or do it
85through a graphical interface, for example with @file{qjackctl}.85through a graphical interface, for example with @file{qjackctl}.
86 86
87To list the jack clients and their properties you can invoke the command87To list the JACK clients and their properties you can invoke the command
88@file{jack_lsp}.88@file{jack_lsp}.
89 89
90Follows an example which shows how to capture a jack readable client90Follows an example which shows how to capture a JACK readable client
91with @file{ffmpeg}.91with @file{ffmpeg}.
92@example92@example
93# create a jack writable client with name "ffmpeg"93# Create a JACK writable client with name "ffmpeg".
94$ ffmpeg -f jack -i ffmpeg -y out.wav94$ ffmpeg -f jack -i ffmpeg -y out.wav
95 95
96# start the sample jack_metro readable client96# Start the sample jack_metro readable client.
97$ jack_metro -b 120 -d 0.2 -f 400097$ jack_metro -b 120 -d 0.2 -f 4000
98 98
99# list the current jack clients99# List the current JACK clients.
100$ jack_lsp -c100$ jack_lsp -c
101system:capture_1101system:capture_1
102system:capture_2102system:capture_2
@@ -105,7 +105,7 @@ system:playback_2 · 2 unmodified lines
105ffmpeg:input_1105ffmpeg:input_1
106metro:120_bpm106metro:120_bpm
107 107
108# connect metro to the ffmpeg writable client108# Connect metro to the ffmpeg writable client.
109$ jack_connect metro:120_bpm ffmpeg:input_1109$ jack_connect metro:120_bpm ffmpeg:input_1
110@end example110@end example
111 111
@@ -122,9 +122,9 @@ Open Sound System input device. · 10 unmodified lines
122 122
123The filename to provide to the input device is the device node123The filename to provide to the input device is the device node
124representing the OSS input device, and is usually set to124representing the OSS input device, and is usually set to
125@file{/dev/dsp/}.125@file{/dev/dsp}.
126 126
127For example to grab from @file{/dev/dsp/} using @file{ffmpeg} use the127For example to grab from @file{/dev/dsp} using @file{ffmpeg} use the
128command:128command:
129@example129@example
130ffmpeg -f oss -i /dev/dsp /tmp/oss.wav130ffmpeg -f oss -i /dev/dsp /tmp/oss.wav
@@ -139,14 +139,14 @@ Video4Linux and Video4Linux2 input video devices. · 8 unmodified lines
139 139
140The name of the device to grab is a file device node, usually Linux140The name of the device to grab is a file device node, usually Linux
141systems tend to automatically create such nodes when the device141systems tend to automatically create such nodes when the device
142(e.g. an USB webcam) is plugged to the system, and has a name of the142(e.g. an USB webcam) is plugged into the system, and has a name of the
143kind @file{/dev/video@var{N}}, where @var{N} is a number associated to143kind @file{/dev/video@var{N}}, where @var{N} is a number associated to
144the device.144the device.
145 145
146Video4Linux and Video4Linux2 devices only support a limited set of146Video4Linux and Video4Linux2 devices only support a limited set of
147@var{width}x@var{height} sizes and framerates. You can check which are147@var{width}x@var{height} sizes and framerates. You can check which are
148supported for example using the command @file{dov4l} for Video4Linux148supported for example with the command @file{dov4l} for Video4Linux
149devices, and the command @file{v4l-info} for Video4Linux2 devices.149devices and the command @file{v4l-info} for Video4Linux2 devices.
150 150
151If the size for the device is set to 0x0, the input device will151If the size for the device is set to 0x0, the input device will
152try to autodetect the size to use.152try to autodetect the size to use.
@@ -157,19 +157,19 @@ dropped in later versions. · 4 unmodified lines
157Follow some usage examples of the video4linux devices with the ff*157Follow some usage examples of the video4linux devices with the ff*
158tools.158tools.
159@example159@example
160# grab and show the input of a video4linux device160# Grab and show the input of a video4linux device.
161ffplay -s 320x240 -f video4linux /dev/video0161ffplay -s 320x240 -f video4linux /dev/video0
162 162
163# grab and show the input of a video4linux2 device, autoadjust size163# Grab and show the input of a video4linux2 device, autoadjust size.
164ffplay -f video4linux2 /dev/video0164ffplay -f video4linux2 /dev/video0
165 165
166# grab and record the input of a video4linux2 device, autoadjust size166# Grab and record the input of a video4linux2 device, autoadjust size.
167ffmpeg -f video4linux2 -i /dev/video0 out.mpeg167ffmpeg -f video4linux2 -i /dev/video0 out.mpeg
168@end example168@end example
169 169
170@section vfwcap170@section vfwcap
171 171
172VFW (Video For Window) catpure input device.172VFW (Video For Windows) capture input device.
173 173
174@section x11grab174@section x11grab
175 175
@@ -177,31 +177,30 @@ X11 video input device. · 1 unmodified line
177 177
178This device allows to capture a region of an X11 display.178This device allows to capture a region of an X11 display.
179 179
180The filename passed in input has the syntax:180The filename passed as input has the syntax:
181@example181@example
182[@var{hostname}]:@var{display_number}.@var{screen_number}[+@var{x_offset},@var{y_offset}]182[@var{hostname}]:@var{display_number}.@var{screen_number}[+@var{x_offset},@var{y_offset}]
183@end example183@end example
184 184
185@var{hostname}:@var{display_number}.@var{screen_number} specifies the185@var{hostname}:@var{display_number}.@var{screen_number} specifies the
186X11 display name of the screen to grab from. @var{hostname} can be not186X11 display name of the screen to grab from. @var{hostname} can be
187specified, and defaults to "localhost". The environment variable187ommitted, and defaults to "localhost". The environment variable
188@env{DISPLAY} contains the default display name.188@env{DISPLAY} contains the default display name.
189 189
190@var{x_offset} and @var{y_offset} specify the offsets of the grabbed190@var{x_offset} and @var{y_offset} specify the offsets of the grabbed
191area with respect to the top/left border of the X11 screen image. They191area with respect to the top-left border of the X11 screen. They
192default to 0.192default to 0.
193 193
194Check the X11 documentation (e.g. man X) for more detailed information.194Check the X11 documentation (e.g. man X) for more detailed information.
195 195
196Use the @file{dpyinfo} program for getting basic information about the196Use the @file{dpyinfo} program for getting basic information about the
197properties of your X11 display screen (e.g. grep for "name" or197properties of your X11 display (e.g. grep for "name" or "dimensions").
198"dimensions").
199 198
200For example to grab from @file{:0.0} using @file{ffmpeg}:199For example to grab from @file{:0.0} using @file{ffmpeg}:
201@example200@example
202ffmpeg -f x11grab -r 25 -s cif -i :0.0 out.mpg201ffmpeg -f x11grab -r 25 -s cif -i :0.0 out.mpg
203 202
204# grab at position 10,20203# Grab at position 10,20.
205ffmpeg -f x11grab -25 -s cif -i :0.0+10,20 out.mpg204ffmpeg -f x11grab -25 -s cif -i :0.0+10,20 out.mpg
206@end example205@end example
207 206
doc/outdevs.texi+2−2
@@ -5,8 +5,8 @@ Output devices are configured elements in FFmpeg which allow to write · 4 unmodified lines
5multimedia data to an output device attached to your system.5multimedia data to an output device attached to your system.
6 6
7When you configure your FFmpeg build, all the supported output devices7When you configure your FFmpeg build, all the supported output devices
8are enabled by default. You can list them using the configure option8are enabled by default. You can list all available ones using the
9"--list-outdevs".9configure option "--list-outdevs".
10 10
11You can disable all the output devices using the configure option11You can disable all the output devices using the configure option
12"--disable-outdevs", and selectively enable an output device using the12"--disable-outdevs", and selectively enable an output device using the

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t