Last active
April 29, 2024 13:19
-
-
Save juliendkim/aa6315c234395d88799b7037bde5f897 to your computer and use it in GitHub Desktop.
Add multiple subtitles to an MP4/MOV with FFMPEG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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