Git Product home page Git Product logo

subtitle-cleanup-script's Introduction

Subtitle Cleanup and Renumbering Utility

This utility script is designed to automate the cleanup and renumbering of subtitle files (SRT format), making it easier to maintain clean and correctly sequenced subtitles for your video content.

Features

This script offers a range of features to improve the quality of subtitle files:

  • Automatic Advertisement Removal: Detects and removes text blocks that contain advertisements, sponsor messages, or irrelevant information not part of the actual subtitles.
  • Punctuation and Spacing Correction: Fixes common issues with punctuation and spacing, ensuring that subtitles are presented in a standardized format.
  • Renumbering of Subtitle Sequences: Adjusts the numbering of subtitles to ensure a sequential order, especially important after the removal of irrelevant text blocks.

Installation

To get started with this script, you'll need to have Ruby installed on your system. This script has been tested with Ruby versions 2.0 and newer.

  1. Download the renumber_subtitles.rb script and blacklist.txt from this repository.
  2. Adjust the contents of blacklist.txt to suit your needs.

Usage

Open a terminal or command prompt and navigate to the directory where you've saved the renumber_subtitles.rb script. Use the following command syntax to run the script:

ruby renumber_subtitles.rb <path_to_subtitle_file_or_directory>

subtitle-cleanup-script's People

Contributors

vkononov avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.