| 29 | | You can burn "picture based" subtitles into a movie as well (for instance, dvdsub is a type of picture based overlay subtitles), by using the overlay filter to overlay the images. See [http://ffmpeg.org/ffmpeg.html the official documentation] search for "hardcode". |
| | 29 | You can burn "picture based" subtitles into a movie as well (for instance, dvdsub is a type of picture based overlay subtitles), by using the overlay filter to overlay the images. Here is an example - an MKV with dvdsub subtitles in a separate stream: |
| | 30 | |
| | 31 | {{{ |
| | 32 | ffmpeg -i input.mkv -filter_complex '[0:v][0:s]overlay[v]' -map [v] -map 0:a <output options> output.mkv |
| | 33 | }}} |
| | 34 | |
| | 35 | If you have multiple subtitle streams, you can select which one to use by replacing [0:s] with [0:s:0] to select the first subtitle stream or [0:s:1] to select the second subtitle stream, and so on. See also [http://ffmpeg.org/ffmpeg.html the official documentation]; search for "hardcode". |