How to add subtitles to a video | Burn in subtitle video effect

Published: 27 December 2021
on channel: The FFMPEG guy
3,300
56

Today, we show how to add / burn in subtitles onto a video. As usual, all parameters can be tuned and customized to suit your needs.

MORE TEXT VIDEO EFFECTS
   • How to add a dynamic text onto a vide...  

EXAMPLES
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
❶ Subtitles in an apart “subtitle.srt” .srt file (SRT = Sub Rip Subtitle file)
→ ffmpeg -i input.mp4 -vf subtitles=input.srt output01.mp4

with:
-i input.mp4 = Reads file «input.mp4» …
*-vf = … and starts a video filter (vf)…
subtitles = … calling the «subtitles» filter to burn in the subtitles onto the video (default settings)…
input.srt = … reading «input.srt» as the source for subtitles…
output01.mp4 = … and outputs the result to file «output01.mp4». Note: since no font has been defined, the text is displayed using the default font settings.

❷ Subtitles embedded in “input.mkv” input video file (in our example, “input.mkv” holds 2 subtitles streams)
→ ffmpeg -i input.mkv -vf subtitles=input.mkv:si=1 output02.mp4

with:
-i input.mp4 = Reads file «input.mp4» …
*-vf = … and starts a video filter (vf)…
subtitles = … calling the «subtitles» filter to burn in the subtitles onto the video…
input.mkv:si=1 = … reading «input.mkv» subtitles stream index 1 as the source for subtitles…
output02.mp4 = … outputs the result to file «output02.mp4».
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
MUSIC
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
→ Regrets - Causmic
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ
An FFMPEG question?
Ask the FFMPEG guy
ꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷꟷ


Watch video How to add subtitles to a video | Burn in subtitle video effect online without registration, duration hours minute second in high quality. This video was added by user The FFMPEG guy 27 December 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,300 once and liked it 56 people.