Skip to main content

Batch Subtitle Synchronization Tool

Project description

Sushi Batch

Batch subtitle synchronization tool based on FichteFoll's fork of Sushi.

WARNING

Sushi is not perfect, an can output subtitles with broken timings. You should check if the subtitle was synced correctly on completed tasks with high shift average (10s or greater).

Installation

pip install sushi-batch

Required apps

Windows

Add the required binaries to PATH or install them via a package manager like Chocolatey. You can also copy the executables to the directory from which you run this app (not recommended).

Linux

Most distros link installed packages to PATH automatically, so just make sure to install the required apps via your distribution's package manager.

How does Sushi work?

Sushi works by finding the closest similar pattern between a provided source and sync target audio track. The obtained shift value is applied to the output subtitle, which will be synced to the sync target track.

Audio-based Sync

You must provide:

  • A subtitle file (ASS, SRT, SSA).
  • The original audio track for that subtitle.
  • A sync target audio track to sync the subtitle to.

Video-based Sync

You only need to provide:

  • A source video file which contains a subtitle.
  • A sync target video file.

You can select a specific subtitle or audio track from the video files. This allows you to add multi-language subtitles for a specific audio track.

FFmpeg will take care of extracting the audio and subtitle tracks for processing.

Usage

This program allows for:

  • Batch synchronization of files within selected directories / selected files.
  • Queueing of synchronization tasks
  • Merging synced subtitles with sync target video (more below)

Folder Structures for Directory Select modes

Audio-Sync

  
    📂Source Folder
     ┣ 🔊Fullmetal Alchemist - 01 (DVD).flac
     ┣ 📜Fullmetal Alchemist - 01 (DVD).ass
     ┣ 🔊Fullmetal Alchemist - 02 (DVD).flac
     ┣ 📜Fullmetal Alchemist - 02 (DVD).ass
     ┣ 🔊Fullmetal Alchemist - 03 (DVD).flac
     ┗ 📜Fullmetal Alchemist - 03 (DVD).ass
    📂Sync Target Folder
     ┣ 🔊Fullmetal Alchemist - 01 (BD).flac
     ┣ 🔊Fullmetal Alchemist - 02 (BD).flac
     ┗ 🔊Fullmetal Alchemist - 03 (BD).flac
  

Video-Sync

  
    📂Source Folder
     ┣ 📺Fullmetal Alchemist - 01 (DVD).mkv
     ┣ 📺Fullmetal Alchemist - 02 (DVD).mkv
     ┗ 📺Fullmetal Alchemist - 03 (DVD).mkv
    📂Sync Target Folder
     ┣ 📺Fullmetal Alchemist - 01 (BD).flac
     ┣ 📺Fullmetal Alchemist - 02 (BD).mkv
     ┗ 📺Fullmetal Alchemist - 03 (BD).mkv
  

Merge synced subs with video

If mkvmerge is installed, the app will automatically merge the synced subtitle to the specified sync target video file. The merge can also be started manually inside the Job Queue section.

You can customize the arguments used for merging via the app's settings.

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

sushi_batch-0.4.1.tar.gz (35.2 kB view details)

Uploaded Source

Built Distribution

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

sushi_batch-0.4.1-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

Details for the file sushi_batch-0.4.1.tar.gz.

File metadata

  • Download URL: sushi_batch-0.4.1.tar.gz
  • Upload date:
  • Size: 35.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sushi_batch-0.4.1.tar.gz
Algorithm Hash digest
SHA256 9058d4e0d63fdc03fb354ba2ef7e55fc42d4286437a1ba4790ca537352d563ec
MD5 c46c5738dfde555acc5b453e6804391d
BLAKE2b-256 babc744487063ba86af535bf205c8be68e4843b076ec98fff04356c58700738c

See more details on using hashes here.

File details

Details for the file sushi_batch-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: sushi_batch-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for sushi_batch-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64764f2c779c1dcda48d9e3144b523a244c5a27a2d0a620ccddfb7c91d8d45b7
MD5 eaafb598444a2be7763dcb9126262b6d
BLAKE2b-256 27704d4e3c9719c402eedf6c99e00dab6b038929fe6d03a50df02cfa91f80530

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