srtool
Zero-dependency Python CLI to fix .srt subtitles: shift, rescale (fps change), two-point sync (drift), merge, clean, renumber.
python3 srtool.py shift movie.srt -1.5 -o fixed.srt # 1.5 s earlier
python3 srtool.py rescale movie.srt 1.04271 -o fixed.srt # 23.976 -> 25 fps
python3 srtool.py sync movie.srt 00:01:00,000 00:01:02,000 01:30:00,000 01:30:09,000 -o fixed.srt
python3 srtool.py merge a.srt b.srt --offset 5400 -o both.srt
python3 srtool.py clean movie.srt -o clean.srt # strip tags, drop empty cues, fix overlaps
Handles BOM, CRLF, missing indexes. Tests: python3 -m pytest tests.
Support
If it saved you time, donations via PayPal: 4433@vp.pl
Metadata
Release files for srtool-cli 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| srtool_cli-0.1.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| srtool_cli-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / srtool_cli-0.1.0.tar.gz
| Download URL | srtool_cli-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be472d431fc530b18c62500d422d9fed2acd68ffd0061fcc0a908c54585446c8
|
|
BLAKE2b-256 checksum How to use checksums |
e39270521748186397e3cb7976bc8ab1958797bef5a7c976922a5d6a15aab14a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / srtool_cli-0.1.0-py3-none-any.whl
| Download URL | srtool_cli-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76a77f22409bc7399a9f63ea0c3bfaed44c1379d3f978ac022dce718bfcf4b74
|
|
BLAKE2b-256 checksum How to use checksums |
758be059d89803bf72fa1f4da12e143917ccfcd8f00d7b54938391284eec5ddf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|