[FFmpeg-cvslog] doc/ffmpeg: update disposition values

Gyan Doshi git at videolan.org
Tue May 29 09:36:32 EEST 2018


ffmpeg | branch: master | Gyan Doshi <ffmpeg at gyani.pro> | Tue May 29 12:15:58 2018 +0530| [cba167934bb2d634f400d3b06cec2b0f99d5de9d] | committer: Gyan Doshi

doc/ffmpeg: update disposition values

Thumbnail example added. Avoid transcoding in older examples.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=cba167934bb2d634f400d3b06cec2b0f99d5de9d
---

 doc/ffmpeg.texi | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi
index 88dbdeb95a..dc0bc00b10 100644
--- a/doc/ffmpeg.texi
+++ b/doc/ffmpeg.texi
@@ -375,22 +375,31 @@ The following dispositions are recognized:
 @item hearing_impaired
 @item visual_impaired
 @item clean_effects
+ at item attached_pic
 @item captions
 @item descriptions
+ at item dependent
 @item metadata
 @end table
 
 For example, to make the second audio stream the default stream:
 @example
-ffmpeg -i in.mkv -disposition:a:1 default out.mkv
+ffmpeg -i in.mkv -c copy -disposition:a:1 default out.mkv
 @end example
 
 To make the second subtitle stream the default stream and remove the default
 disposition from the first subtitle stream:
 @example
-ffmpeg -i INPUT -disposition:s:0 0 -disposition:s:1 default OUTPUT
+ffmpeg -i in.mkv -c copy -disposition:s:0 0 -disposition:s:1 default out.mkv
 @end example
 
+To add an embedded cover/thumbnail:
+ at example
+ffmpeg -i in.mp4 -i IMAGE -map 0 -map 1 -c copy -c:v:1 png -disposition:v:1 attached_pic out.mp4
+ at end example
+
+Not all muxers support embedded thumbnails, and those who do, only support a few formats, like JPEG or PNG.
+
 @item -program [title=@var{title}:][program_num=@var{program_num}:]st=@var{stream}[:st=@var{stream}...] (@emph{output})
 
 Creates a program with the specified @var{title}, @var{program_num} and adds the specified



More information about the ffmpeg-cvslog mailing list