History

doc/ffmpeg: update disposition values

Thumbnail example added. Avoid transcoding in older examples.

Gyan Doshi committed 8 years ago

Commit cba16791 parent 5717cd81 file · +11 −2Browse files

Unified · Split

doc/ffmpeg.texi+11−2
@@ -375,22 +375,31 @@ The following dispositions are recognized: · 374 unmodified lines
375375 @item hearing_impaired
376376 @item visual_impaired
377377 @item clean_effects
378+@item attached_pic
378379 @item captions
379380 @item descriptions
381+@item dependent
380382 @item metadata
381383 @end table
382384
383385 For example, to make the second audio stream the default stream:
384386 @example
385−ffmpeg -i in.mkv -disposition:a:1 default out.mkv
387+ffmpeg -i in.mkv -c copy -disposition:a:1 default out.mkv
386388 @end example
387389
388390 To make the second subtitle stream the default stream and remove the default
389391 disposition from the first subtitle stream:
390392 @example
391−ffmpeg -i INPUT -disposition:s:0 0 -disposition:s:1 default OUTPUT
393+ffmpeg -i in.mkv -c copy -disposition:s:0 0 -disposition:s:1 default out.mkv
392394 @end example
393395
396+To add an embedded cover/thumbnail:
397+@example
398+ffmpeg -i in.mp4 -i IMAGE -map 0 -map 1 -c copy -c:v:1 png -disposition:v:1 attached_pic out.mp4
399+@end example
400+
401+Not all muxers support embedded thumbnails, and those who do, only support a few formats, like JPEG or PNG.
402+
394403 @item -program [title=@var{title}:][program_num=@var{program_num}:]st=@var{stream}[:st=@var{stream}...] (@emph{output})
395404
396405 Creates a program with the specified @var{title}, @var{program_num} and adds the specified

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t