Thumbnail example added. Avoid transcoding in older examples.
Unified · Split
| @@ -375,22 +375,31 @@ The following dispositions are recognized: · 374 unmodified lines | |||
| 375 | @item hearing_impaired | 375 | @item hearing_impaired |
| 376 | @item visual_impaired | 376 | @item visual_impaired |
| 377 | @item clean_effects | 377 | @item clean_effects |
| 378 | @item attached_pic | ||
| 378 | @item captions | 379 | @item captions |
| 379 | @item descriptions | 380 | @item descriptions |
| 381 | @item dependent | ||
| 380 | @item metadata | 382 | @item metadata |
| 381 | @end table | 383 | @end table |
| 382 | 384 | ||
| 383 | For example, to make the second audio stream the default stream: | 385 | For example, to make the second audio stream the default stream: |
| 384 | @example | 386 | @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 |
| 386 | @end example | 388 | @end example |
| 387 | 389 | ||
| 388 | To make the second subtitle stream the default stream and remove the default | 390 | To make the second subtitle stream the default stream and remove the default |
| 389 | disposition from the first subtitle stream: | 391 | disposition from the first subtitle stream: |
| 390 | @example | 392 | @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 |
| 392 | @end example | 394 | @end example |
| 393 | 395 | ||
| 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 | |||
| 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 | ||
| 396 | Creates a program with the specified @var{title}, @var{program_num} and adds the specified | 405 | Creates a program with the specified @var{title}, @var{program_num} and adds the specified |