amazon-translate-subtitles-cli

A template for creating npm CLI tools using TypeScript and VSCode

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
amazon-translate-subtitles-cli
1.2.0a year agoa year agoMinified + gzip package size for amazon-translate-subtitles-cli in KB

Readme

amazon-translate-subtitles-cli
!npm packagenpm-imgnpm-url !Build Statusbuild-imgbuild-url !Downloadsdownloads-imgdownloads-url !Issuesissues-imgissues-url !Code Coveragecodecov-imgcodecov-url !Commitizen Friendlycommitizen-imgcommitizen-url !Semantic Releasesemantic-release-imgsemantic-release-url
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