Saturday, February 19, 2022

Add SRT subtitle file to movie file

Note to self. This is about how to add a SRT subtitle file to a movie file using ffmpeg.

ffmpeg -i infile.mp4 -i infile.srt -c copy -c:s mov_text outfile.mp4


Alternatively, install mkvtoolnix and mkvtoolnix-gui, and then use mkvtoolnix-gui to create a .mkv file with the required subtitles.
sudo apt install mkvtoolnix-gui
should install both with the required dependencies. MKV also allows multiple subs since it is basically just a container.

No comments: