Created
March 8, 2017 03:02
Burn (harcode) srt into mp4
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
Step 1. Download ffmpeg | |
(ffmpeg static builds: https://johnvansickle.com/ffmpeg/ ) | |
Step 2. Make sure the SRT is valid: | |
Valid format: | |
1 | |
00:00:00,000 --> 00:00:03,540 | |
hi bla bla bla | |
Invalid: | |
1 | |
00:00:00 --> 00:00:03 | |
hi bla bla bla | |
Step 3. execute | |
ffmpeg -i video.mp4 -vf "subtitles=subfilename.srt" output.mp4 | |
Bonus: | |
To download CC from youtube. | |
youtube-dl --all-subs http://www.youtube.com/watch?v=etc | |
It will download a vtt file. To convert it to srt | |
ffmpeg -i filename.vtt subtitle.srt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment