A cli tool for delaying/hastening subtitles in stored in TMP format.
Project description
offsettmpsubs
A cli tool for delaying/hastening subtitles in stored in TMP format.
Installation
$ pip install --user offsettmpsubs
Usage
$ offsettmpsubs --help
usage: offsettmpsubs [-h] OFFSET INFILE OUTFILE
Delay or hasten subtitles in MTP format.
positional arguments:
OFFSET amount of time, by which the timestamps in the output file
should be delayed (if negative) or hasten. Examples of allowed
values: "10" (delay by ten seconds), "-10", "+10", "-01:00"
(hasten by one minute), "01:00:00" (delay by one hour)
INFILE file name of the original subtitle file
OUTFILE file name of the new file with delayed/hastened subtitles
options:
-h, --help show this help message and exit
$ head s05e09_subs_en.txt
00:00:02:Here are our final actual costs for this year.
00:00:05:Okay.
00:00:06:As you can see, we did pretty well, so...
00:00:08:Yes. Yes, I can see
00:00:11:that we did indeed.
00:00:14:Why don't you explain this to me|like I am an eight-year-old?
00:00:17:All right, well, this is the overall|budget for this fiscal year
00:00:21:along the X axis.
00:00:24:Yes. There's the X axix.|Right there.
00:00:26:You can see clearly on this page|that we have a surplus
$ offsettmpsubs 01:23 s05e09_subs_en.txt delayed.txt
$ head delayed.txt
00:01:25:Here are our final actual costs for this year.
00:01:28:Okay.
00:01:29:As you can see, we did pretty well, so...
00:01:31:Yes. Yes, I can see
00:01:34:that we did indeed.
00:01:37:Why don't you explain this to me|like I am an eight-year-old?
00:01:40:All right, well, this is the overall|budget for this fiscal year
00:01:44:along the X axis.
00:01:47:Yes. There's the X axix.|Right there.
00:01:49:You can see clearly on this page|that we have a surplus
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
offsettmpsubs-1.0.0.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file offsettmpsubs-1.0.0.tar.gz.
File metadata
- Download URL: offsettmpsubs-1.0.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8620483f887da481bf7180f401098dbcb3af97f6dbeaedb64d46438cdef4b9f6
|
|
| MD5 |
1b0bef0a99b21e766cf4774219e96161
|
|
| BLAKE2b-256 |
79efc7228872437af7506c9b23821b9bcc029b7a31a35fe4f51dddba3a8eac74
|
File details
Details for the file offsettmpsubs-1.0.0-py3-none-any.whl.
File metadata
- Download URL: offsettmpsubs-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03fa1a0e9187da77a548190701fbff1e30e8f09a6d42d7d12cc0847e7997ab3a
|
|
| MD5 |
8941752ce27373b19efd69e3746a60e3
|
|
| BLAKE2b-256 |
0b0f3395617ed524664964b92300d07b9403ecec5943dec1f7f05c288d48ac30
|