Neural Subtitles Translator
Automatic subtitles translation with a local neural machine translation model. No third-party service required: the translation is done locally with small but efficient neural network models.
Github repository: https://github.com/tdhm/subtitles-translator/
Documentation https://tdhm.github.io/Subtitles-Translator/
| Original movie in French | Output of automatic translation |
|---|---|
Note Screenshots are taken from Bon voyage, a short French language propaganda film made by Alfred Hitchcock for the British Ministry of Information. This film is now in the Public Domain.
Installation
Subtitles Translator is available as subtitles_translator on PyPI:
pip install subtitles_translator
You'll also need to install ffmpeg, which is available from most package managers:
# on macOS using Homebrew (https://brew.sh/)
brew install ffmpeg
# on Windows using Chocolatey (https://chocolatey.org/)
choco install ffmpeg
# on Ubuntu or Debian
sudo apt update && sudo apt install ffmpeg
Usage
Note Please note that the current version only supports MP4 video files (MKV support coming soon). Your MP4 must contain only one subtitles track, which will be translated and replaced in a new MP4 file. You can also translates SRT subtitles files, or extract and translate SRT files from a MP4 (look at the doc!).
With the following command, subtitles from 'video.mp4' will be extracted and translated from 'french' to 'english'. The video containing translated subtitles will be saved as 'translated_video.mp4':
subtitles_translator -i video.mp4 -o translated_video.mp4 -s fr -t en
Metadata
Release files for subtitles-translator 0.0.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 |
|---|---|---|---|---|
| subtitles_translator-0.0.3.tar.gz | 19.7 kB | Without provenance | Details for subtitles_translator-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| subtitles_translator-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for subtitles_translator-0.0.3-py3-none-any.whl |
Total release size: 40.4 kB
Release files / subtitles_translator-0.0.3.tar.gz
| Download URL | subtitles_translator-0.0.3.tar.gz |
|---|---|
| Size | 19.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
608927c24ca232ed415b353de025c493650a0b274e0853680f43f838799eae19
|
|
BLAKE2b-256 checksum How to use checksums |
73d637938eb3102047cb5da2c7bad75ce837883837a34ec780d6fb22d940d5da
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.11 Linux/5.15.0-1037-azure
|
Release files / subtitles_translator-0.0.3-py3-none-any.whl
| Download URL | subtitles_translator-0.0.3-py3-none-any.whl |
|---|---|
| Size | 20.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53015b8bf3cb9d5e55059fe339d3cc466df07da49f077fde639b577c28bf7703
|
|
BLAKE2b-256 checksum How to use checksums |
2df56c22a8d099ea217c1a922037f200e3b875d9b749472f06a73d7a47865471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.11 Linux/5.15.0-1037-azure
|
Security for subtitles-translator 0.0.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.