Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

subtitle-increment-1.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

subtitle_increment-1.0.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file subtitle-increment-1.0.1.tar.gz.

File metadata

  • Download URL: subtitle-increment-1.0.1.tar.gz
  • Upload date:
  • Size: 5.3 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

Hashes for subtitle-increment-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b764ac92fde18019f6219e8fcb2872f95575dc57dae15fde3a8bdcd2c54fb0cd
MD5 96f88e3abb7a416f64b26f162f856597
BLAKE2b-256 0bbd6c515e722b30def676115e8bf0097a5ae20755cad9b92806393f5a5fd808

See more details on using hashes here.

File details

Details for the file subtitle_increment-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: subtitle_increment-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.3 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

Hashes for subtitle_increment-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 086b28c9a01e3595f14fc6edf23090cbdfaee60acc1de0cb8b57a099638e732d
MD5 9a3237b9438c0407a968f121f11a7f74
BLAKE2b-256 843b0e2c0086ec7eeab194cbdbbbc4dc14ecb616c2ad5745717d1c482bd06231

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page