Skip to content

Instantly share code, notes, and snippets.

@KmolYuan
Created March 25, 2020 08:47
Show Gist options
  • Save KmolYuan/baad9a6a90ac734790d69bbe5ce3a65d to your computer and use it in GitHub Desktop.
Save KmolYuan/baad9a6a90ac734790d69bbe5ce3a65d to your computer and use it in GitHub Desktop.
Add subtitle.
@echo off
REM Usage:
REM addsrt "video_name"
REM (video_name.mp4 + video_name.srt) => video_name_new.mp4
ffmpeg -y -i "%1.mp4" -vf subtitles="%2.srt" -c:s mov_text "%1_new.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment