Skip to content

Instantly share code, notes, and snippets.

@CyberRex0
Created November 16, 2020 13:18
Show Gist options
  • Save CyberRex0/f5ff6f6c711bdd13d53c0c3d83ae3aea to your computer and use it in GitHub Desktop.
Save CyberRex0/f5ff6f6c711bdd13d53c0c3d83ae3aea to your computer and use it in GitHub Desktop.
FFmpegで字幕を焼く

ffmpeg -i movie.mkv -vf "subtitles=sub.ass" -vcodec h264 -preset fast -b:v 1.5M -acodec aac -b:a 192k -s 1280x720 out.mp4

WebVTT字幕ファイルは

ffmpeg -i sub.vtt sub.ass

であらかじめ変換しておく

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment