Skip to content

Instantly share code, notes, and snippets.

@juliendkim
Last active April 29, 2024 13:19
Show Gist options
  • Save juliendkim/aa6315c234395d88799b7037bde5f897 to your computer and use it in GitHub Desktop.
Save juliendkim/aa6315c234395d88799b7037bde5f897 to your computer and use it in GitHub Desktop.
Add multiple subtitles to an MP4/MOV with FFMPEG
# single subtitle with MP4(for MOV : change mov_text to srt)
$ ffmpeg -i VIDEO.mp4 -i SUBTITLE.srt -c:v copy -c:a copy -c:s mov_text OUTPUT.mp4
$ ffmpeg -i VIDEO.mov -i SUBTITLE.srt -c:v copy -c:a copy -c:s srt OUTPUT.mov
# multiple subtitles with MP4(for MOV : change mov_text to srt)
$ ffmpeg -i VIDEO.mp4 -i KOREAN.srt -i ENGLISH.srt \
-c:v copy -c:a copy -c:s mov_text \
-map 0:v -map 0:a -map 1 -map 2 \
-metadata:s:s:0 language=kor -metadata:s:s:1 language=eng \
OUTPUT.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment