Subdesc
A simple utility module for Subtitles.
Installation 🛠️
Subdesc requires mkvtoolnix and ffmpeg for working with mkv files. You can install them with the following commands:
brew install mkvtoolnix
brew install ffmpeg
Then, Just run pip install subdesc
Usage 🍿
You can use Subdesc as a command line tool as follows. subd can be replaced with subdesc as well.
Muxing Video and Subtitle
When you want to attach subtitle to your mkv file as softsub:
subd mux <video_file> <subtitle_file> <output_file>
Normalizing Subtitle
When your subtitle file has weird encoding and it's not human-readable:
subd normalize <subtitle_file>
Sync Subtitle
When your subtitle file is out of sync with your video file:
subd sync <source_file> <subtitle_file>
source_file could be a mkv file or another subtitle file
Magic 🪄
When you have OCD like me and you want to apply all of the above commands at once:
subd magic <video_file> <subtitle_file>
This will overwrite video file with the new one.
Caution ⚠️
Subdesc is still in development, and it's not stable yet.
It could delete your input files in case of interruption. So please take a backup and use it at your own risk.
Contributing 🤝
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License 📄
Metadata
Release files for subdesc 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| subdesc-0.2.1.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| subdesc-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / subdesc-0.2.1.tar.gz
| Download URL | subdesc-0.2.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
efb17db9e30db262247f247a309633d780d9bdddcf7b1665bb696b9966bce78c
|
|
BLAKE2b-256 checksum How to use checksums |
91aeada2a62dd84831243454dfb3d9410653d1dc6859172f8324232631eb5702
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.9.3 CPython/3.10.12
|
Release files / subdesc-0.2.1-py3-none-any.whl
| Download URL | subdesc-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
150f23578666d2f7c0d2d4f4bc3e3d194e2308b0ad6f692e5545bbab3eef928e
|
|
BLAKE2b-256 checksum How to use checksums |
8391223cceb5a3b2bbdb001f62471165b79878c8c98a86de60a3f088446a92aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.9.3 CPython/3.10.12
|