Skip to main content

A simple tool that translates video subtitles

Project description

About

Translate Video Subtitles

subtrs is a simple tool that translates subtitles from files.

The main idea came when using the YouTube auto-tool to translate my videos subtitles, I saw that the translation sucked.
So I decided to create this simple tool and translate my subtitles more successfully.

Enjoy!

https://gitlab.com/dslackw/images/raw/master/subtrs/subtrs.gif

Installing

$ pip3 install subtrs --upgrade

Command line usage

Usage: subtrs [subtitles_file] [destination languages]

       Simple tool that trlanslates video subtitles

       Support subtitles files [*.sbv, *.vtt, *.srt]
       Destination languages [en,de,ru] etc.

Optional arguments:
       --color      View translate text language with colour.
       --silent     Silent method, without viewing.
  -l,  --languages  Show all supported languages.
  -v,  --version    Show the version and exit.
  -h,  --help       Show this message and exit.

Example

An example which create multiple subtitles files:

$ subtrs captions.srt en,de,ru --color

This command should translate and create three different files, one with English subtitles, one with German and one with Russia subtitles.

Project layout

├── CHANGES.md
├── LICENSE.txt
├── README.rst
├── bin
   ├── __init.py__
   └── subtrs
├── requirements.txt
├── setup.py
└── subtrs
        ├── __init__.py
        └── main.py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

subtrs-1.5.tar.gz (34.5 kB view details)

Uploaded Source

File details

Details for the file subtrs-1.5.tar.gz.

File metadata

  • Download URL: subtrs-1.5.tar.gz
  • Upload date:
  • Size: 34.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.9.10

File hashes

Hashes for subtrs-1.5.tar.gz
Algorithm Hash digest
SHA256 99a40b48f5f6206c01e29372c28d5a48e813fa9a3b903848ef54e59133665757
MD5 a6a8373d80ae35ff0cdb4edff479f38f
BLAKE2b-256 925c9a9032b44281decb8f93828ef179f2ccf203fd3720fca97b72478b2be383

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page