Use the subtitles filter to make hardsubs (burnt-in subtitles).
Assuming you have a subtitles file named sub.srt
:
ffmpeg -i input.mkv -vf "subtitles=sub.srt" output.mp4
Or if the subtitles are in input.mkv
:
ffmpeg -i input.mkv -vf "subtitles=input.mkv" output.mp4
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…