|
...
|
...
|
@@ -26,6 +26,23 @@ avconv is a very fast video and audio converter that can also grab from
|
|
26
|
26
|
a live audio/video source. It can also convert between arbitrary sample
|
|
27
|
27
|
rates and resize video on the fly with a high quality polyphase filter.
|
|
28
|
28
|
|
|
|
29
|
+avconv reads from an arbitrary number of input "files" (which can be regular
|
|
|
30
|
+files, pipes, network streams, grabbing devices, etc.), specified by the
|
|
|
31
|
+@code{-i} option, and writes to an arbitrary number of output "files", which are
|
|
|
32
|
+specified by a plain output filename. Anything found on the commandline which
|
|
|
33
|
+cannot be interpreted as an option is considered to be an output filename.
|
|
|
34
|
+
|
|
|
35
|
+Each input or output file can in principle contain any number of streams of
|
|
|
36
|
+different types (video/audio/subtitle/attachment/data). Allowed number and/or
|
|
|
37
|
+types of streams can be limited by the container format. Selecting, which
|
|
|
38
|
+streams from which inputs go into output, is done either automatically or with
|
|
|
39
|
+the @code{-map} option (see the Stream selection chapter).
|
|
|
40
|
+
|
|
|
41
|
+To refer to input files in options, you must use their indices (0-based). E.g.
|
|
|
42
|
+the first input file is @code{0}, the second is @code{1} etc. Similarly, streams
|
|
|
43
|
+within a file are referred to by their indices. E.g. @code{2:3} refers to the
|
|
|
44
|
+fourth stream in the third input file. See also the Stream specifiers chapter.
|
|
|
45
|
+
|
|
29
|
46
|
As a general rule, options are applied to the next specified
|
|
30
|
47
|
file. Therefore, order is important, and you can have the same
|
|
31
|
48
|
option on the command line multiple times. Each occurrence is
|
|
...
|
...
|
@@ -33,6 +50,10 @@ then applied to the next input or output file.
|
|
33
|
33
|
Exceptions from this rule are the global options (e.g. verbosity level),
|
|
34
|
34
|
which should be specified first.
|
|
35
|
35
|
|
|
|
36
|
+Do not mix input and output files -- first specify all input files, then all
|
|
|
37
|
+output files. Also do not mix options which belong to different files. All
|
|
|
38
|
+options apply ONLY to the next input or output file and are reset between files.
|
|
|
39
|
+
|
|
36
|
40
|
@itemize
|
|
37
|
41
|
@item
|
|
38
|
42
|
To set the video bitrate of the output file to 64kbit/s:
|