Skip to content

Instantly share code, notes, and snippets.

@detunized
Created August 30, 2013 09:12
Show Gist options
  • Save detunized/6387932 to your computer and use it in GitHub Desktop.
Save detunized/6387932 to your computer and use it in GitHub Desktop.
Embed subtitles into an .mp4 file
#!/bin/sh
ffmpeg -i input.mkv -c:v copy -c:a copy temporary-no-subtitles.mp4
mp4box temporary-no-subtitles.mp4 -add subtitles-in-utf8.srt -out output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment