Skip to content

Instantly share code, notes, and snippets.

@reedrw
reedrw / hardsub.sh
Last active July 1, 2018 09:53 — forked from ctrlcctrlv/hardsub.sh
Convert softsubbed MKV files into hardsubbed MP4 files for playback via Roku, low powered devices etc, keep all fonts intact.
#!/bin/sh
# HARDSUB.SH
# (c) 2014 Fredrick Brennan
#
# Usage notes:
# This script requires that ~/.fonts is in your fontconfig path.
# This script also requires mkvmerge, realpath and ffmpeg to be installed. Only supports SSA subs and MKV files.
# Also note that this script can take a long time to run.
# Run as `hardsub.sh FILE_NAME`
# You should be able to delete the following created files after it is done: done_subtitles.ass and the entire contents of ~/.fonts/MKV