Changes between Version 6 and Version 7 of How to burn subtitles into the video
- Timestamp:
- 12/08/2012 01:29:31 AM (6 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
How to burn subtitles into the video
v6 v7 1 You can burn subtitles with one of two filters: `subtitles` or `ass`. 2 3 == subtitles filter == 4 As of Nov 29, 2012 you can also simply use the [http://ffmpeg.org/ffmpeg.html#subtitles-1 subtitles filter]: 5 6 {{{ 7 ffmpeg -i video.avi -vf subtitles=subtitle.srt out.avi 8 }}} 9 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 12 == ass filter == 1 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: 2 14 {{{ … … 4 16 }}} 5 17 6 Note: you need to have ffmpeg built with '''--enable-libass''' (if you are building FFmpeg yourself, look for the '''libass-dev''' package on debian-like distributions).18 As with the `subtitles` filter, this filter requires `ffmpeg` to be compiled with `--enable-libass`. 7 19 8 20 If your subtitle is in `SubRip``/``MicroDVD` or any other supported text subtitles, you have to convert it to ASS before using the filter: … … 11 23 }}} 12 24 13 For windows users [http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=10&t=318&start=20 this link] may be useful, as you have to setup font paths just right to get libass to work. 14 15 With recent versions (starting Nov 29th 2012) of FFmpeg, you can also simply use the subtitles filter: 16 17 {{{ 18 ffmpeg -i video.avi -vf subtitles=subtitle.srt out.avi 19 }}} 25 For Windows users [http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=10&t=318&start=20 this link] may be useful, as you have to setup font paths just right to get libass to work


