summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2023-03-27 02:22:28 +0200
committerStefano Sabatini <stefasab@gmail.com>2023-04-02 16:28:54 +0200
commit627d5a87bbe0495cdde10be7da9d3fe3810a3dc7 (patch)
tree15c5135f1b8fbbf4c5969ae18bb0e2b5992b514d /doc
parentee25a434dce2faf6c1766fbb9bfb36d2715aaa87 (diff)
downloadffmpeg-627d5a87bbe0495cdde10be7da9d3fe3810a3dc7.tar.gz
doc/ffmpeg: slightly rework introductory examples
In particular, add a sentence to introduce the example, and add a simpler starting example with no options. Also use different format for input.avi and output.mp4, to convey that the conversion also works on the container format. Address issue: http://trac.ffmpeg.org/ticket/8730
Diffstat (limited to 'doc')
-rw-r--r--doc/ffmpeg.texi22
1 files changed, 15 insertions, 7 deletions
diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi
index adfc2726ff..630971d90b 100644
--- a/doc/ffmpeg.texi
+++ b/doc/ffmpeg.texi
@@ -49,24 +49,32 @@ Do not mix input and output files -- first specify all input files, then all
output files. Also do not mix options which belong to different files. All
options apply ONLY to the next input or output file and are reset between files.
+Some simple examples follow.
+
@itemize
@item
-To set the video bitrate of the output file to 64 kbit/s:
+Convert an input media file to a different format, by re-encoding media streams:
+@example
+ffmpeg -i input.avi output.mp4
+@end example
+
+@item
+Set the video bitrate of the output file to 64 kbit/s:
@example
-ffmpeg -i input.avi -b:v 64k -bufsize 64k output.avi
+ffmpeg -i input.avi -b:v 64k -bufsize 64k output.mp4
@end example
@item
-To force the frame rate of the output file to 24 fps:
+Force the frame rate of the output file to 24 fps:
@example
-ffmpeg -i input.avi -r 24 output.avi
+ffmpeg -i input.avi -r 24 output.mp4
@end example
@item
-To force the frame rate of the input file (valid for raw formats only)
-to 1 fps and the frame rate of the output file to 24 fps:
+Force the frame rate of the input file (valid for raw formats only) to 1 fps and
+the frame rate of the output file to 24 fps:
@example
-ffmpeg -r 1 -i input.m2v -r 24 output.avi
+ffmpeg -r 1 -i input.m2v -r 24 output.mp4
@end example
@end itemize