summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorVíctor Paesa <wzrlpy@arsystel.com>2006-11-20 18:44:33 +0000
committerDiego Biurrun <diego@biurrun.de>2006-11-20 18:44:33 +0000
commit699e77b198c924a0a32c6f83f5d51ca574e3757c (patch)
tree5f6f9eaea5704e35532a1c0e628cfd72f5189d91 /doc
parent9f83e1427ac17b9c96c3ce3c975929c900c05fee (diff)
Some notes about the order of options on the command line.
patch by Víctor Paesa, wzrlpy arsystel com Originally committed as revision 7135 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'doc')
-rw-r--r--doc/ffmpeg-doc.texi28
1 files changed, 25 insertions, 3 deletions
diff --git a/doc/ffmpeg-doc.texi b/doc/ffmpeg-doc.texi
index 33ccc66be4..8997ff3335 100644
--- a/doc/ffmpeg-doc.texi
+++ b/doc/ffmpeg-doc.texi
@@ -139,9 +139,31 @@ ffmpeg [[infile options][@option{-i} @var{infile}]]... @{[outfile options] @var{
If no input file is given, audio/video grabbing is done.
As a general rule, options are applied to the next specified
-file. For example, if you give the @option{-b 64k} option, it sets the video
-bitrate of the next file. The format option may be needed for raw input
-files.
+file. Therefore, order is important, and you can have the same
+option on the comman line multiple times. Each occurence is
+then applied to the next input or output file.
+
+* To set the video bitrate of the output file to 64Kbit/s:
+@example
+ffmpeg -i input.avi -b 64k output.avi
+@end example
+
+* To force the frame rate of the input and output file to 24 fps:
+@example
+ffmpeg -r 24 -i input.avi output.avi
+@end example
+
+* To force the frame rate of the output file to 24 fps:
+@example
+ffmpeg -i input.avi -r 24 output.avi
+@end example
+
+* To force the frame rate of input file to 1 fps and the output file to 24 fps:
+@example
+ffmpeg -r 1 -i input.avi -r 24 output.avi
+@end example
+
+The format option may be needed for raw input files.
By default, FFmpeg tries to convert as losslessly as possible: It
uses the same audio and video parameters for the outputs as the one