/srt2vtt

Script to convert srt subtitles to vtt

Primary LanguageShellGNU General Public License v3.0GPL-3.0

srt2vtt

Script to convert .srt subtitles to .vtt

Usage

$ ./srt2vtt.sh subtitle.srt

Also support bash wildcards:

$ ./srt2vtt.sh *.srt

The output will be the same filename with .vtt extension instead .srt.

Dependencies

You will need dos2unix, uchardet, iconv and sed installed in your system.

I've tested just on:

  • dos2unix 7.3.4 (2016-05-24)
  • uchardet Version 0.0.6
  • iconv (GNU libc) 2.25
  • sed (GNU sed) 4.4