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 video 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 translated text with colour.
--progress Show progress bar.
--export Export the text only.
-l, --languages Show all supported languages.
-v, --version Print the version and exit.
-h, --help Show this message and exit.
Example
$ subtrs subtitles.srt el --progress
[1/1] Translate into greek |######## | 27% - 24s
An example which create multiple subtitles files:
$ subtrs subtitles.srt zh-cn,de,ru --color
[1/3] Translate into chinese
[en] << - Did you hear that?
[zh-cn] >> - 你听到了吗?
[en] << - Hear what?
[zh-cn] >> - 听到什么?
[en] << Are you sure this line is clean?
[zh-cn] >> 你确定这条线是干净的吗?
[en] << Yeah, of course I'm sure.
[zh-cn] >> 是的,我当然确定。
[en] << I better go.
[zh-cn] >> 我最好去。
[en] << - Freeze! Police!
[zh-cn] >> - 冻结!警察!
[en] << - Hands on your head!
[zh-cn] >> - 把手放在你的头上!
[en] << Do it! Do it now!
[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
├── __metadata__.py
└── main.py
Donate
If you feel satisfied with this project and want to thanks me make a donation.
Copyright
Copyright 2022 © dslackw
License
Metadata
Release files for subtrs 2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| subtrs-2.3.tar.gz | 6.2 kB | Without provenance | Details for subtrs-2.3.tar.gz |
Release files / subtrs-2.3.tar.gz
| Download URL | subtrs-2.3.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b19a613279a251923f3b091adba62a19f2660d916bee3dfd6a5d8e6963165dc
|
|
BLAKE2b-256 checksum How to use checksums |
5fd7387204d18ad15f8e801d48986583e302ff4fbbbf2526beba928d037a5874
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.15
|
Security for subtrs 2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.