Skip to main content

Delays the subtitles in a SubRip (.srt) file.

Project description

delay_srt

Delays the subtitles in a SubRip (.srt) file by a given amount of time.

Installation

  1. Install Python.

    Python 3.11 or later should work for sure; when in doubt, just get the latest version. Older versions may work as well, but you're on your own with those.

  2. Install delay_srt

    The following command should work for most people:

     pip install ogg4osu
    

    If you want/need something more specialised, I'm sure you already know what you need to do differently.

Usage

Just run the program through Python (with the -m flag) in your command line of choice, and give it the path to the file you want to delay and the delay in milliseconds. For example, the following command will delay example.srt by 1 second:

python -m delay_srt example.srt 1000

Note that depending on your environment, you may need to use the python3 command instead.

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

delay_srt-0.1.1.tar.gz (16.0 kB view hashes)

Uploaded Source

Built Distribution

delay_srt-0.1.1-py3-none-any.whl (16.8 kB view hashes)

Uploaded Python 3

Supported by

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