Skip to main content

srt-timer

srt-timer simply converts subtitles from one timing to another one.

Usage example

You downloaded Fear the Walking Dead, episode 03x06, version 720p.WEB-DL-RARBG and you want to have an Italian subtitles. However Italian subtitles are just for the version REPACK.SVA…

Now you can simply use srt-timer for convert the subtitles to the wanted version. First, you have to download English subtitles in both REPACK.SVA and 720p.WEB-DL-RARBG and then you can create repack2webdl.sdiff file with conversion information:

$ srt_timer make_sdiff --strip-original 11 \
> "Fear the Walking Dead - 03x06 - Red Dirt.REPACK.SVA.English.C.orig.Addic7ed.com.srt" \
> "Fear the Walking Dead - 03x06 - Red Dirt.WEB-DL RARBG.English.C.orig.Addic7ed.com.srt" \
> --output repack2webdl.sdiff

strip-original argument removes the preview subtitles that shouldn’t be in the final version.

Now you convert your Italian subtitles to 720p.WEB-DL-RARBG version with the created sdiff file:

$ srt_timer convert --sdiff repack2webdl.sdiff \
> "Fear the Walking Dead - 03x06 - Red Dirt.REPACK.SVA.Italian.C.orig.Addic7ed.com.srt" \
> --output italian_webdl.srt

And you’re done.

Installation

The package is on Pypi, so you can install it simply with pip install srt-timer

Usage manual

For help just type srt_timer --help or srt_timer [command] --help

For all commands, the result is printed to the standard output by default. If you define the output argument, then it’s printed to a specified file.

convert

Convert srt file from one timing to another one.

You can use it with a sdiff file like in the usage example or you can convert subtitles directly by providing original-timing and new-timing arguments instead of sdiff argument. In the second case you can also provide the strip-original argument to strip surplus subtitles on the beginning of a file.

make_sdiff

Create a sdiff file.

It has two required arguments: srt file with original timing and srt file with wanted timing. Optional arguments are strip-original and output.

The strip-original argument should be number of the last subtitle in the “You’ve seen previously…” section if it isn’t desired in a new subtitle version. If defined, it will trim all subtitles starting before or at the time of the provided subtitle.

reverse_sdiff

Create a sdiff file for the backwards conversion.

This command expects just one argument input - a sdiff file. It will change its information, so it’s possible to execute the opposite conversion.

$ srt_timer reverse_sdiff repack2webdl.sdiff -o webdl2repack.sdiff

Need help?

If you have trouble using srt-timer, make a new issue on the GitHub page of the project or mail me at thyrst@seznam.cz Changelog =========

0.2 - 2017-07-11

Added

  • reverse_sdiff command to create a sdiff file for a backwards conversion

  • Simplier entrypoint srt_timer as an opposite of srt_timer.py

0.1 - 2017-07-06

Added

  • make_sdiff command to create a sdiff file

  • convert command to convert srt file from one timing to another one

Metadata

Release files for srt-timer 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for srt-timer 0.2
File Size Uploaded Provenance
srt-timer-0.2.tar.gz 6.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for srt-timer 0.2
File Interpreter ABI Platform
srt_timer-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.3 kB

Release files / srt-timer-0.2.tar.gz

Download URL srt-timer-0.2.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
37bceaa09916022b75166ab075b9d5a2a5cbf03e98d5deb9f8f97f58418a07ea
BLAKE2b-256 checksum
How to use checksums
045fc2864381d5e649c356d5321bbb240aae8b6ac630e76d9531e34f4b6d45b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / srt_timer-0.2-py3-none-any.whl

Download URL srt_timer-0.2-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
51a75b8122fb577985522d612c6144889907c8de5c16bdba46a5b16679d869a1
BLAKE2b-256 checksum
How to use checksums
84e0ee0fa13d8c885098f86784999325013fbd2449ee0ebc5bd477e43735d9bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for srt-timer 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page