Browse code

doc/muxers: add elaborated example for the tee muxer

The example shows how to combine bsfs and select options.

Stefano Sabatini authored on 2013/08/03 21:05:13
Showing 1 changed files
... ...
@@ -886,6 +886,17 @@ ffmpeg -i ... -c:v libx264 -c:a mp2 -f tee -map 0:v -map 0:a
886 886
   "archive-20121107.mkv|[f=mpegts]udp://10.0.1.255:1234/"
887 887
 @end example
888 888
 
889
+Example: use @command{ffmpeg} to encode the input, and send the output
890
+to three different destinations. The @code{dump_extra} bitstream
891
+filter is used to add extradata information to all the output video
892
+keyframes packets, as requested by the MPEG-TS format. The select
893
+option is applied to @file{out.aac} in order to make it contain only
894
+audio packets.
895
+@example
896
+ffmpeg -i ... -map 0 -flags +global_header -c:v libx264 -c:a aac -strict experimental
897
+       -f tee "[bsfs/v=dump_extra]out.ts|[movflags=+faststart]out.mp4|[select=a]out.aac"
898
+@end example
899
+
889 900
 Note: some codecs may need different options depending on the output format;
890 901
 the auto-detection of this can not work with the tee muxer. The main example
891 902
 is the @option{global_header} flag.