Increments srt files forwards or backwards in time
Project description
Overview
Command changes the timestamps of an srt file using a constant time increment. This can be useful if an srt file lags behind or in front of a movie you want to watch
Installation
pip install subtitle-increment
Usage
python -m subtitle_increment --help
usage: __main__.py [-h] [--seconds SECONDS] [--milliseconds MILLISECONDS]
[--output OUTPUT]
file_name
Increment subtitle file
positional arguments:
file_name Subtitle file to increment
optional arguments:
-h, --help show this help message and exit
--seconds SECONDS, -s SECONDS
seconds to increment dialogue
--milliseconds MILLISECONDS, -ms MILLISECONDS
milliseconds to increment dialogue
--output OUTPUT, -o OUTPUT
output file name of incremented subtitle. Defaults to
new_subtitle.srt
Example
python -m subtitle_increment La.Notte.1961.1080p.BluRay.x264-PublicHD.ita-Italian.srt -s -5 -ms -100 --output new_subtitles.srt
This command decrements all the dialogue in the subtitle file by 5 seconds and 100 milliseconds. The output srt file is new_subtitle.srt
Quirks
- Program assumes utf-8 encoding.
- No Unit Tests since code is brutally simple
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
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 subtitle-increment-1.0.0.tar.gz.
File metadata
- Download URL: subtitle-increment-1.0.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
952203d51214953b6f46078a4757306c3e46ab0f252f2aa035e5eaa0c8e98c96
|
|
| MD5 |
0146f5e82b3a5b9681deca3bc00c1fab
|
|
| BLAKE2b-256 |
c97dfd61fb1c5a3308edce3a96dcf5294838f4db87b562fd387452c511bef050
|
File details
Details for the file subtitle_increment-1.0.0-py3-none-any.whl.
File metadata
- Download URL: subtitle_increment-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.5.0.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a59c832e57ce61e4d333f09bca13673b3d235d5d9ea1e9ffe1192d726aced0f
|
|
| MD5 |
46b77b696cd042223f9b4c43a53fff37
|
|
| BLAKE2b-256 |
b6a8e516826a144bc3f56476297704070c6454c267fc9c4cb741838b861549c1
|