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