ChSrt

Tool to modify SRT files from a command line.

Currently it supports the following features:

  • ASS tag cleanup
  • HTML tag cleanup
  • Time adjustment
  • Encoding auto-detection
  • Fixing indices

The easiest way to use it is to just let it do all adjustments:

chsrt -ia *.srt

However, if only a subset is desired, here is the full syntax:

chsrt [options] <file>...
  • -a, --all: Executes most common fixes (equivalent to -icf)
  • -b, --backup: Creates a backup of the original file before editing
  • -c, --clean-all: Executes all available cleanup operations
  • --clean-ass: Cleans ASS tags
  • --clean-html: Cleans HTML tags
  • --clean-html-all: Cleans HTML tags (including bold and italic)
  • -f, --fix-all: Executes all available fixup operations
  • --fix-indices: Fixes subtitle indices
  • --fix-order Sorts all subtitles by time
  • --fix-overlap: Fixes overlapping subtitles
  • -i, --in-place: Edit file in place
  • -t, --time-adjust <time-adjust>: Time adjustment in seconds (can be negative) [default: 0]
Debian Package
Tar Archive [SHA-256: d5e73611 2e20cc07 e37155ca c72a4fd2 634a0cc7 7587e09c 6adba69e 4e63edf4]
Install via repository:
wget -O- http://packages.medo64.com/keys/medo64.asc \
    | sudo tee /etc/apt/trusted.gpg.d/medo64.asc

echo "deb http://packages.medo64.com/deb stable main" \
    | sudo tee /etc/apt/sources.list.d/medo64.list

sudo apt-get update
sudo apt-get install chsrt