Subtitling

The topic provides examples for adding subtitles to a video file.

The following code block shows the example in different scenarios.
  • Add subtitles to an MP4 file:
    ffmpeg -i 1080p_h264_aac.mp4 -i test_subtitle.srt -c copy -c:s mov_text out-put-sub-1080p_h264_aac.mp4
  • Add subtitles to an MKV file:
    ffmpeg -i 1080p_h264_aac.mkv -i test_subtitle.srt -c copy output-sub-1080p_h264_aac.mkv