Changes between Version 12 and Version 13 of HowToBurnSubtitlesIntoVideo
- Timestamp:
- May 29, 2013, 10:50:39 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToBurnSubtitlesIntoVideo
v12 v13 1 You can burn text subtitles with one of two filters: `subtitles` or `ass`.1 You can burn text subtitles (hardsubs) with one of two filters: `subtitles` or `ass`. 2 2 3 3 == `subtitles` filter == 4 As of Nov 29, 2012 you can also simply use the [http://ffmpeg.org/ffmpeg.html#subtitles-1 subtitles filter]: 4 Draw subtitles on top of input video using the libass library. This filter requires `ffmpeg` to be compiled with `--enable-libass`. See the [http://ffmpeg.org/ffmpeg-filters.html#subtitles-1 subtitles video filter documentation] for more details. 5 5 6 6 {{{ … … 8 8 }}} 9 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 10 12 11 == `ass` filter == 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: 12 Same as the subtitles filter, except that it doesn’t require libavcodec and libavformat to work. This filter requires `ffmpeg` to be compiled with `--enable-libass`. On the other hand, it is limited to [http://en.wikipedia.org/wiki/SubStation_Alpha#Advanced_SubStation_Alpha ASS (Advanced Substation Alpha)] subtitles files. See the [http://ffmpeg.org/ffmpeg-filters.html#ass ass video filter documentation] for more details. 13 14 14 {{{ 15 15 ffmpeg -i video.avi -vf "ass=subtitle.ass" out.avi 16 16 }}} 17 17 18 As with the `subtitles` filter, this filter requires `ffmpeg` to be compiled with `--enable-libass`. 19 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: 18 If your subtitle is in `SubRip`, `MicroDVD` or any other supported text subtitles, you have to convert it to ASS before using this filter: 21 19 {{{ 22 20 ffmpeg -i subtitle.srt subtitle.ass 23 21 }}} 24 22 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 rightto get libass to work23 Windows users will have to [http://ffmpeg.zeranoe.com/forum/viewtopic.php?f=10&t=318&start=20 setup font paths] to get libass to work 26 24 27 25 == picture based subtitles == 28 26 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:27 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 [http://ffmpeg.org/ffmpeg-filters.html#overlay-1 overlay video filter] to overlay the images. Example of an MKV with dvdsub subtitles in a separate stream: 30 28 31 29 {{{
