Last active
May 16, 2024 23:02
-
-
Save wmanth/d08fb9fcc87dcf84ee5fd4a1d8b9d91c to your computer and use it in GitHub Desktop.
Using MP4Box to add subtitles in SRT format to MP4 files that will be supported by AppleTV
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
# Add English language subtitle to MP4 file | |
MP4Box -add <Subtitle>.srt:hdlr=sbtl:lang=eng <MovieWithoutSubtitle>.mp4 -out <MovieWithSubtitle>.mp4 | |
# Add English language subtitle with 1sec time delay to MP4 file | |
MP4Box -add <Subtitle>.srt:hdlr=sbtl:lang=eng:delay=1000 <MovieWithoutSubtitle>.mp4 -out <MovieWithSubtitle>.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this snippet, it was a big help while creating a python utility to do this for me semi-automatically https://github.com/sverrirs/mp4srtmerge