- Code: Select all
ffmpeg -i test.mkv -vf "ass=test.ass" out.mp4
However, when I open the resulting movie with VLC, I see no subtitles.
Googling mentions some other options, but none of them seems to be able to burn the subtitles on top of an mp4 video. Some old articles mention the "-newsubtitle" flag, but that no longer exists according to the FFmpeg documentation.
I am using our homebrew FFmpeg on Mac OSX, which should be able to understand quite a lot of flavors of subs:
- Code: Select all
> ./ffmpeg -codecs
ffmpeg version 1.0 (PMS2) for PS3 Media Server Copyright (c) 2000-2012 the FFmpeg developers
built on Nov 11 2012 09:59:47 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
configuration: http://git.io/ZHdseg
Codecs:
D..... = Decoding supported
.E.... = Encoding supported
..V... = Video codec
..A... = Audio codec
..S... = Subtitle codec
...I.. = Intra frame-only codec
....L. = Lossy compression
.....S = Lossless compression
[...]
DES... dvb_subtitle DVB subtitles (decoders: dvbsub ) (encoders: dvbsub )
..S... dvb_teletext DVB teletext
DES... dvd_subtitle DVD subtitles (decoders: dvdsub ) (encoders: dvdsub )
..S... eia_608 EIA-608 closed captions
D.S... hdmv_pgs_subtitle HDMV Presentation Graphic Stream subtitles (decoders: pgssub )
D.S... jacosub JACOsub subtitle
D.S... microdvd MicroDVD subtitle
DES... mov_text MOV text
D.S... realtext RealText subtitle
D.S... sami SAMI subtitle
DES... srt SubRip subtitle with embedded timing
DES... ssa SSA (SubStation Alpha) / ASS (Advanced SSA) subtitle (decoders: ass ) (encoders: ass )
DES... subrip SubRip subtitle
D.S... subviewer SubViewer subtitle
..S... text raw UTF-8 text
D.S... webvtt WebVTT subtitle
DES... xsub XSUB
Has anyone been successful in burning subs into an mp4 using FFmpeg?
