You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

ffmpeg provides the straight and easy way to burn-in SRT subtitle. By forece_style, you can customize your subtitle format like font, fontsize,outline,outlinecolor,borderstyle and so on. The disadvantage of burnt-in caption is that can make bad TV experience for those who does not want to see the subtitle on top of the screen. On the contrary, the benefit of the burnt-in subitie is that doesn't require any additional technical tools/modules on the client.

ffmpeg -i test_30sec.mov -vf "subtitles=subtitle_en.srt:force_style='fontsize=25,Outline=2,OutlineColor=&H80000000'" out.mp4

Its result will be like below:


If you want to put dark block behind of the subtitle, you can do it easily by adding BorderStyle=4 like below:

ffmpeg -i test_30sec.mov -vf "subtitles=subtitle_en.srt:force_style='fontsize=25,BorderStyle=4,Outline=8,OutlineColor=&H80000000'" out.mp4
  • No labels