how to add subtitle to mp4 using ffmpeg?

I wanted to add the English Subtitle on srt format into the mp4 video using ffmpeg. How to do that?

On 01/01/2015 04:56 AM, mki wrote:
>
> I wanted to add the English Subtitle on srt format into the mp4 video
> using ffmpeg. How to do that?
>
>

-f srt -i file.srt -c:s mov_text

So…

ffmpeg -i infile.mp4 -f srt -i infile.srt -c:v copy -c:a copy -c:s mov_text
outfile-with-subs.mp4

It didn’t work!

Consider posting the terminal output of the error. Saying “it didn’t work” gives no indication of what the problem might be - if you do have the necessary stuff installed, if the syntax you typed is correct, PEBKAC :slight_smile: , etc., making it difficult for most people here to help you.

Also check ffmpeg’s manual for an explanation of the switches you tried in the commandline, you might learn something.

Good luck!