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!
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.
--progress Show progress bar.
-l, --languages Show all supported languages.
-v, --version Print the version and exit.
-h, --help Show this message and exit.
Example
$ subtrs captions.srt el --progress
Processing |######## | 47/180
An example which create multiple subtitles files:
$ subtrs matrix_en.srt zh-cn,de,ru --color
[en] << Is everything in place?
[zh-cn] >> 一切都到位了吗?
[en] << You're not to relieve me.
[zh-cn] >> 你不是来解救我的。
[en] << I know, but I felt like taking a shift.
[zh-cn] >> 我知道,但我想换个班。
[en] << You like him, don't you?
[zh-cn] >> 你喜欢他,不是吗?
[en] << You like watching him.
[zh-cn] >> 你喜欢看他。
[en] << Don't be ridiculous.
[zh-cn] >> 别开玩笑了。
[en] << We're going to kill him.
[zh-cn] >> 我们要杀了他。
.
.
.
This command should translate and create three different files, one with Chinese 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
Donate
If you feel satisfied with this project and want to thanks me make a donation.
Copyright
Copyright 2022 © dslackw
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.7.tar.gz
(36.0 kB
view details)
File details
Details for the file subtrs-1.7.tar.gz
.
File metadata
- Download URL: subtrs-1.7.tar.gz
- Upload date:
- Size: 36.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5e862593387fdb10a32eb1e7777c98f5cc1f6f3ab2d13ccec4b329c3ca3cbee |
|
MD5 | f8f04bc007839438bcfabe22a494ec4b |
|
BLAKE2b-256 | 63e5eb28e58c7417944f2d671722b283b0559fc23d2bbcef889d645196e01657 |