diff options
author | Gyan Doshi <ffmpeg@gyani.pro> | 2019-02-17 11:28:31 +0530 |
---|---|---|
committer | Gyan Doshi <ffmpeg@gyani.pro> | 2019-02-17 11:28:31 +0530 |
commit | a9452fe6dc2ecf5b2249aae6d770655095b4e232 (patch) | |
tree | 62186cde7812bb454cc37e25c7a9a1494225d929 | |
parent | 7a51fed0f04718d2f0caf9b990ccee4f4ebce573 (diff) | |
download | ffmpeg-a9452fe6dc2ecf5b2249aae6d770655095b4e232.tar.gz |
doc/fftools-common-opts: add example for codec option stream specifiers
-rw-r--r-- | doc/fftools-common-opts.texi | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/fftools-common-opts.texi b/doc/fftools-common-opts.texi index 43c1f4d2d6..f4820fd293 100644 --- a/doc/fftools-common-opts.texi +++ b/doc/fftools-common-opts.texi @@ -365,7 +365,15 @@ ffmpeg -i input.flac -id3v2_version 3 out.mp3 @end example All codec AVOptions are per-stream, and thus a stream specifier -should be attached to them. +should be attached to them: +@example +ffmpeg -i multichannel.mxf -map 0:v:0 -map 0:a:0 -map 0:a:0 -c:a:0 ac3 -b:a:0 640k -ac:a:1 2 -c:a:1 aac -b:2 128k out.mp4 +@end example + +In the above example, a multichannel audio stream is mapped twice for output. +The first instance is encoded with codec ac3 and bitrate 640k. +The second instance is downmixed to 2 channels and encoded with codec aac. A bitrate of 128k is specified for it using +absolute index of the output stream. Note: the @option{-nooption} syntax cannot be used for boolean AVOptions, use @option{-option 0}/@option{-option 1}. |