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
375@item hearing_impaired375@item hearing_impaired
376@item visual_impaired376@item visual_impaired
377@item clean_effects377@item clean_effects
378@item attached_pic
378@item captions379@item captions
379@item descriptions380@item descriptions
381@item dependent
380@item metadata382@item metadata
381@end table383@end table
382 384
383For example, to make the second audio stream the default stream:385For example, to make the second audio stream the default stream:
384@example386@example
385ffmpeg -i in.mkv -disposition:a:1 default out.mkv387ffmpeg -i in.mkv -c copy -disposition:a:1 default out.mkv
386@end example388@end example
387 389
388To make the second subtitle stream the default stream and remove the default390To make the second subtitle stream the default stream and remove the default
389disposition from the first subtitle stream:391disposition from the first subtitle stream:
390@example392@example
391ffmpeg -i INPUT -disposition:s:0 0 -disposition:s:1 default OUTPUT393ffmpeg -i in.mkv -c copy -disposition:s:0 0 -disposition:s:1 default out.mkv
392@end example394@end example
393 395
396To add an embedded cover/thumbnail:
397@example
398ffmpeg -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
401Not all muxers support embedded thumbnails, and those who do, only support a few formats, like JPEG or PNG.
402
394@item -program [title=@var{title}:][program_num=@var{program_num}:]st=@var{stream}[:st=@var{stream}...] (@emph{output})403@item -program [title=@var{title}:][program_num=@var{program_num}:]st=@var{stream}[:st=@var{stream}...] (@emph{output})
395 404
396Creates a program with the specified @var{title}, @var{program_num} and adds the specified405Creates 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