summaryrefslogtreecommitdiff
path: root/doc/muxers.texi
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2013-08-03 14:05:13 +0200
committerStefano Sabatini <stefasab@gmail.com>2013-08-21 17:44:35 +0200
commit71c5f9d29c9ed9cbad3f88fe5ef8098bdb4b4859 (patch)
tree9550dae316c0dd7bd553596dd13e6ac78358a944 /doc/muxers.texi
parent5ae3563359cd8319311eaff3c78ce67c295916d0 (diff)
doc/muxers: add elaborated example for the tee muxer
The example shows how to combine bsfs and select options.
Diffstat (limited to 'doc/muxers.texi')
-rw-r--r--doc/muxers.texi11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/muxers.texi b/doc/muxers.texi
index c9c4416bc1..4fa9f11f50 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -886,6 +886,17 @@ ffmpeg -i ... -c:v libx264 -c:a mp2 -f tee -map 0:v -map 0:a
"archive-20121107.mkv|[f=mpegts]udp://10.0.1.255:1234/"
@end example
+Example: use @command{ffmpeg} to encode the input, and send the output
+to three different destinations. The @code{dump_extra} bitstream
+filter is used to add extradata information to all the output video
+keyframes packets, as requested by the MPEG-TS format. The select
+option is applied to @file{out.aac} in order to make it contain only
+audio packets.
+@example
+ffmpeg -i ... -map 0 -flags +global_header -c:v libx264 -c:a aac -strict experimental
+ -f tee "[bsfs/v=dump_extra]out.ts|[movflags=+faststart]out.mp4|[select=a]out.aac"
+@end example
+
Note: some codecs may need different options depending on the output format;
the auto-detection of this can not work with the tee muxer. The main example
is the @option{global_header} flag.