doc/faq: remove indent in examples.

CSS should take care of this.
pull/37/merge
Clément Bœsch 11 years ago
parent eafb9c52e8
commit 2e798c6ce0
  1. 20
      doc/faq.texi

@ -105,7 +105,7 @@ For example, img1.jpg, img2.jpg, img3.jpg,...
Then you may run: Then you may run:
@example @example
ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg ffmpeg -f image2 -i img%d.jpg /tmp/a.mpg
@end example @end example
Notice that @samp{%d} is replaced by the image number. Notice that @samp{%d} is replaced by the image number.
@ -118,7 +118,7 @@ the sequence. This is useful if your sequence does not start with
example will start with @file{img100.jpg}: example will start with @file{img100.jpg}:
@example @example
ffmpeg -f image2 -start_number 100 -i img%d.jpg /tmp/a.mpg ffmpeg -f image2 -start_number 100 -i img%d.jpg /tmp/a.mpg
@end example @end example
If you have large number of pictures to rename, you can use the If you have large number of pictures to rename, you can use the
@ -128,7 +128,7 @@ that match @code{*jpg} to the @file{/tmp} directory in the sequence of
@file{img001.jpg}, @file{img002.jpg} and so on. @file{img001.jpg}, @file{img002.jpg} and so on.
@example @example
x=1; for i in *jpg; do counter=$(printf %03d $x); ln -s "$i" /tmp/img"$counter".jpg; x=$(($x+1)); done x=1; for i in *jpg; do counter=$(printf %03d $x); ln -s "$i" /tmp/img"$counter".jpg; x=$(($x+1)); done
@end example @end example
If you want to sequence them by oldest modified first, substitute If you want to sequence them by oldest modified first, substitute
@ -137,7 +137,7 @@ If you want to sequence them by oldest modified first, substitute
Then run: Then run:
@example @example
ffmpeg -f image2 -i /tmp/img%03d.jpg /tmp/a.mpg ffmpeg -f image2 -i /tmp/img%03d.jpg /tmp/a.mpg
@end example @end example
The same logic is used for any image format that ffmpeg reads. The same logic is used for any image format that ffmpeg reads.
@ -145,7 +145,7 @@ The same logic is used for any image format that ffmpeg reads.
You can also use @command{cat} to pipe images to ffmpeg: You can also use @command{cat} to pipe images to ffmpeg:
@example @example
cat *.jpg | ffmpeg -f image2pipe -c:v mjpeg -i - output.mpg cat *.jpg | ffmpeg -f image2pipe -c:v mjpeg -i - output.mpg
@end example @end example
@section How do I encode movie to single pictures? @section How do I encode movie to single pictures?
@ -153,7 +153,7 @@ You can also use @command{cat} to pipe images to ffmpeg:
Use: Use:
@example @example
ffmpeg -i movie.mpg movie%d.jpg ffmpeg -i movie.mpg movie%d.jpg
@end example @end example
The @file{movie.mpg} used as input will be converted to The @file{movie.mpg} used as input will be converted to
@ -169,7 +169,7 @@ to force the encoding.
Applying that to the previous example: Applying that to the previous example:
@example @example
ffmpeg -i movie.mpg -f image2 -c:v mjpeg menu%d.jpg ffmpeg -i movie.mpg -f image2 -c:v mjpeg menu%d.jpg
@end example @end example
Beware that there is no "jpeg" codec. Use "mjpeg" instead. Beware that there is no "jpeg" codec. Use "mjpeg" instead.
@ -227,11 +227,11 @@ then you may use any file that DirectShow can read as input.
Just create an "input.avs" text file with this single line ... Just create an "input.avs" text file with this single line ...
@example @example
DirectShowSource("C:\path to your file\yourfile.asf") DirectShowSource("C:\path to your file\yourfile.asf")
@end example @end example
... and then feed that text file to ffmpeg: ... and then feed that text file to ffmpeg:
@example @example
ffmpeg -i input.avs ffmpeg -i input.avs
@end example @end example
For ANY other help on AviSynth, please visit the For ANY other help on AviSynth, please visit the
@ -497,7 +497,7 @@ An easy way to get the full list of required libraries in dependency order
is to use @code{pkg-config}. is to use @code{pkg-config}.
@example @example
c99 -o program program.c $(pkg-config --cflags --libs libavformat libavcodec) c99 -o program program.c $(pkg-config --cflags --libs libavformat libavcodec)
@end example @end example
See @file{doc/example/Makefile} and @file{doc/example/pc-uninstalled} for See @file{doc/example/Makefile} and @file{doc/example/pc-uninstalled} for

Loading…
Cancel
Save