Skip to content

Instantly share code, notes, and snippets.

@baskeboler
Created June 13, 2019 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baskeboler/6f28f5cde99352ae4ef8700cfc6de494 to your computer and use it in GitHub Desktop.
Save baskeboler/6f28f5cde99352ae4ef8700cfc6de494 to your computer and use it in GitHub Desktop.
render srt subtitles into a video stream with ffmpeg
# 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