Created
June 13, 2019 21:07
-
-
Save baskeboler/6f28f5cde99352ae4ef8700cfc6de494 to your computer and use it in GitHub Desktop.
render srt subtitles into a video stream 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
# first convert srt subs to .ass format | |
ffmpeg -i subs.srt subs.ass | |
# you may get encoding errors, in that case try adding option: -sub_charenc CP1252 | |
# render the subs | |
ffmpeg -i video.mkv -vf ass=subs.ass video_with_subs.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment