@warren-bank/node-ttml2srt-cli

An extremely lightweight command-line utility to convert a subtitle file from .ttml to .srt format

Usage no npm install needed!

<script type="module">
  import warrenBankNodeTtml2srtCli from 'https://cdn.skypack.dev/@warren-bank/node-ttml2srt-cli';
</script>

README

ttml2srt

An extremely lightweight command-line utility to convert a subtitle file from .ttml to .srt format


Installation (global w/ npm):

npm install --global @warren-bank/node-ttml2srt-cli

Binary (global):

ttml2srt '/path/to/input.ttml' '/path/to/output.srt'

Installation (local w/ wget via github):

mkdir 'workspace'
cd    'workspace'

wget --content-disposition --no-check-certificate 'https://github.com/warren-bank/node-ttml2srt-cli/archive/master.zip'
unzip 'node-ttml2srt-cli-master.zip'
rm -f 'node-ttml2srt-cli-master.zip'

cd 'node-ttml2srt-cli-master'
npm install

Binary (local):

npm start -- '/path/to/input.ttml' '/path/to/output.srt'

Credits:

  • this project merely adds a CLI wrapper to easily access and use the library: ttml2srt

Legal: