amazon-translate-subtitles-cli
v1.2.0
Published
A template for creating npm CLI tools using TypeScript and VSCode
Downloads
7
Maintainers
Readme
amazon-translate-subtitles-cli
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
- amazon-translate-subtitles - API for this CLI