summaryrefslogtreecommitdiff
path: root/doc/ffmpeg.texi
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2021-01-23 15:41:52 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2021-01-23 15:41:52 +0530
commite8b46b2c73a89c3554a4335f1de9de71f5c37846 (patch)
tree983ed5a1dca78d90f614e1a3a838eb3e5b4b1839 /doc/ffmpeg.texi
parentc52ced7ca25d85bbc94bd4283eba8f0ccdc6525e (diff)
doc/ffmpeg: restore location of stray passage
Added in 88fc1438c69, this passage was separated from its original context over the years with unrelated entries sandwiched in between.
Diffstat (limited to 'doc/ffmpeg.texi')
-rw-r--r--doc/ffmpeg.texi32
1 files changed, 16 insertions, 16 deletions
diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi
index 470ce961ce..96f6737412 100644
--- a/doc/ffmpeg.texi
+++ b/doc/ffmpeg.texi
@@ -1659,6 +1659,22 @@ graph will be added to the output file automatically, so we can simply write
ffmpeg -i video.mkv -i image.png -filter_complex 'overlay' out.mkv
@end example
+As a special exception, you can use a bitmap subtitle stream as input: it
+will be converted into a video with the same size as the largest video in
+the file, or 720x576 if no video is present. Note that this is an
+experimental and temporary solution. It will be removed once libavfilter has
+proper support for subtitles.
+
+For example, to hardcode subtitles on top of a DVB-T recording stored in
+MPEG-TS format, delaying the subtitles by 1 second:
+@example
+ffmpeg -i input.ts -filter_complex \
+ '[#0x2ef] setpts=PTS+1/TB [sub] ; [#0x2d0] [sub] overlay' \
+ -sn -map '#0x2dc' output.mkv
+@end example
+(0x2d0, 0x2dc and 0x2ef are the MPEG-TS PIDs of respectively the video,
+audio and subtitles streams; 0:0, 0:3 and 0:7 would have worked too)
+
To generate 5 seconds of pure red video using lavfi @code{color} source:
@example
ffmpeg -filter_complex 'color=c=red' -t 5 out.mkv
@@ -1773,22 +1789,6 @@ On by default, to explicitly disable it you need to specify
@end table
-As a special exception, you can use a bitmap subtitle stream as input: it
-will be converted into a video with the same size as the largest video in
-the file, or 720x576 if no video is present. Note that this is an
-experimental and temporary solution. It will be removed once libavfilter has
-proper support for subtitles.
-
-For example, to hardcode subtitles on top of a DVB-T recording stored in
-MPEG-TS format, delaying the subtitles by 1 second:
-@example
-ffmpeg -i input.ts -filter_complex \
- '[#0x2ef] setpts=PTS+1/TB [sub] ; [#0x2d0] [sub] overlay' \
- -sn -map '#0x2dc' output.mkv
-@end example
-(0x2d0, 0x2dc and 0x2ef are the MPEG-TS PIDs of respectively the video,
-audio and subtitles streams; 0:0, 0:3 and 0:7 would have worked too)
-
@section Preset files
A preset file contains a sequence of @var{option}=@var{value} pairs,
one for each line, specifying a sequence of options which would be