No project description provided
Project description
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 📄
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file subdesc-0.2.1.tar.gz
.
File metadata
- Download URL: subdesc-0.2.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.9.3 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | efb17db9e30db262247f247a309633d780d9bdddcf7b1665bb696b9966bce78c |
|
MD5 | 6f5ec2a62c26d1c72c5c0dea375321f9 |
|
BLAKE2b-256 | 91aeada2a62dd84831243454dfb3d9410653d1dc6859172f8324232631eb5702 |
File details
Details for the file subdesc-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: subdesc-0.2.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.9.3 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 150f23578666d2f7c0d2d4f4bc3e3d194e2308b0ad6f692e5545bbab3eef928e |
|
MD5 | 62c7ffc087202941e80fc9e32ad1f9b3 |
|
BLAKE2b-256 | 8391223cceb5a3b2bbdb001f62471165b79878c8c98a86de60a3f088446a92aa |