Changes between Version 11 and Version 12 of HowToBurnSubtitlesIntoVideo
- Timestamp:
- Apr 9, 2013, 10:36:06 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToBurnSubtitlesIntoVideo
v11 v12 1 1 You can burn text subtitles with one of two filters: `subtitles` or `ass`. 2 2 3 == subtitlesfilter ==3 == `subtitles` filter == 4 4 As of Nov 29, 2012 you can also simply use the [http://ffmpeg.org/ffmpeg.html#subtitles-1 subtitles filter]: 5 5 … … 10 10 This filter requires `ffmpeg` to be compiled with `--enable-libass` (if you are building FFmpeg yourself, look for the `libass-dev` package on Debian-like distributions). 11 11 12 == assfilter ==12 == `ass` filter == 13 13 Using FFmpeg's [http://ffmpeg.org/ffmpeg.html#ass ass video filter] (see Wikipedia for [http://en.wikipedia.org/wiki/SubStation_Alpha#Advanced_SubStation_Alpha Advanced SubStation Alpha]), we can draw text of the subtitles into the movie, like this: 14 14 {{{ … … 30 30 31 31 {{{ 32 ffmpeg -i input.mkv -filter_complex '[0:v][0:s]overlay[v]'-map [v] -map 0:a <output options> output.mkv32 ffmpeg -i input.mkv -filter_complex "[0:v][0:s]overlay[v]" -map [v] -map 0:a <output options> output.mkv 33 33 }}} 34 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".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".
