Code Monkey home page Code Monkey logo

subtitle-merger-tool's Introduction

Subtitle Merger Tool

1. Prerequisites

  • Python 3.x
  • aeidon
  • Tkinter (usually included with Python)
  • CustomTkinter

2. Installation

  1. Clone this repository to your local machine:
git clone https://github.com/AminSallah/Subtitle-Merger-Tool
  1. Navigate to the cloned repository's directory:
cd your-repo
  1. Run the tool:
python main.py

3. Usage

  • Click the "Browse" button under "Select Subtitle Files" to choose the subtitle files you want to merge.

    You can choose multiple files for different languages, and the Smart Merge feature will analyze and merge only sibling subtitles.

    1. Press the "Browse" button to select the subtitles you want to treat as the top subtitles, then click "OK".
    2. Press the "Browse" button again to select the subtitles you want to merge with the top subtitles, then click "OK".
  • Click the "Select Directory" button to choose the output directory for the merged subtitle file.

  • Customize the font styles, sizes, and outlines for the top and bottom subtitles using the respective sections.

  • Enter a prefix for the merged subtitle filename in the "Show Name" field. This will be helpful for TV shows and merging a large number of subtitles at once.

    Example:
    srtInput > Friends.S01E01.English.srt, Friends.S01E02.English.srt, Friends.S01E03.English.srt
    srtInput > Friends.Season 01 Episode 01.English.srt, Friends.Season 01 Episode 02.English.srt, Friends.Season 03 Episode 01.English.srt
    Show name prefix = Friends.s01e01.720p
    Output files > Friends.s01e01.720p.ass, Friends.s01e02.720p.ass, Friends.s01e03.720p.ass

  • Click the "Merge Subtitles" button to start the merging process.

  • The console will display messages about the progress of the merging process.

4. Options

  • Select Subtitle Files: Use this option to choose the subtitle files you want to merge. You can select multiple files by holding down the Ctrl key while selecting.
  • Output Directory: Choose the directory where the merged subtitle file will be saved.
  • Top Style Font: Select the font style for the top subtitle.
  • Top Style Font Size: Set the font size for the top subtitle.
  • Outline for Top Style: Set the outline thickness for the top subtitle.
  • Bottom Style Font: Select the font style for the bottom subtitle.
  • Bottom Style Font Size: Set the font size for the bottom subtitle.
  • Outline for Bottom Style: Set the outline thickness for the bottom subtitle.
  • Show Name: Enter a prefix for the merged subtitle filename.
  • Merge Subtitles: Click this button to initiate the merging process.

5. Notes

  1. The tool currently supports .srt and .ass subtitle formats. (.ass converted to srt automatically and saved into srt directory)
  2. Make sure to provide correct and consistent episode numbers in the subtitle filenames for accurate merging.
  3. You can choose different font styles, sizes, and outlines for the top and bottom subtitles.
  4. The merged subtitles will be saved with the specified prefix and the appropriate extension.

I'm actively working on expanding the customization options, and in the future, you can look forward to more features being added. If you have any specific feature requests or suggestions, feel free to reach out.

ko-fi

Your support and feedback are greatly appreciated and will help shape the future development of this tool.


subtitle-merger-tool's People

Contributors

aminsallah avatar

Stargazers

 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.