Skip to content

ryansonshine/amazon-translate-subtitles-cli

Repository files navigation

amazon-translate-subtitles-cli

npm package Build Status Downloads Issues Code Coverage Commitizen Friendly Semantic Release

CLI for translating subtitles embedded in video files using Amazon Translate

Install

npm install -g amazon-translate-subtitles-cli

Usage

Usage: translate-subs [options]

Options:
  -V, --version                     output the version number
  -d, --debug                       enables verbose logging (default: false)
  -i, --input <file>                source video file path
  -t, --target-language <language>  target language to translate to (ISO 639-1)
  -s, --source-language <language>  source language to translate from (ISO 639-1) (default: "en")
  -S, --source-type <type>          type of source track to use for translation (choices: "auto", "sdh", "forced", default: "auto")
  -o, --out <file>                  path and filename to save the srt file
  -p, --profile <profile>           AWS profile to use for AWS SDK
  -n, --no-progress                 disables progress bar
  -S, --silent                      disables all logging (default: false)
  -h, --help                        display help for command

Examples:

  $ translate-subs --input my-movie.mkv --target-language th
  [amazon-translate-subtitles-cli]: Translating subtitles from video /home/ryansonshine/my-movie.mkv
  Translating [================================================] 100% / 0.0s remaining
  [amazon-translate-subtitles-cli]: Successfully saved translated subtitles at /home/ryansonshine/my-movie.th.srt

Related