Skip to content

Instantly share code, notes, and snippets.

@wmanth
Last active May 16, 2024 23:02
Show Gist options
  • Save wmanth/d08fb9fcc87dcf84ee5fd4a1d8b9d91c to your computer and use it in GitHub Desktop.
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
# 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
@sverrirs
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment