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 destination audio track. The obtained shift value is applied to the output subtitle, which will be synced to the destination track.

Audio-based Sync

You must provide:

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

Video-based Sync

You only need to provide:

  • A source video file which contains a subtitle.
  • A destination 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 destination 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
    📂Destination 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
    📂Destination 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 destination 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.1.0.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

sushi_batch-0.1.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sushi_batch-0.1.0.tar.gz
  • Upload date:
  • Size: 16.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Windows/10

File hashes

Hashes for sushi_batch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f248412ffcc69bcc9542acb7539b7547db6a8984506dafb2128afe567a6612b6
MD5 d57ef81910810590113de80b1014979b
BLAKE2b-256 0d215dc051d721f6502ea96b6be7e95dffdeac84ad5d2a66df88830fd67517f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sushi_batch-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Windows/10

File hashes

Hashes for sushi_batch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a1e05e06d77eef4057c0f7e06716d607d312f0f2a4b11d1059c436b862bb0c0
MD5 a2e92743a4633c0fb482e69b0bdd4de6
BLAKE2b-256 dfa5c0b027629553eef9cc4d99f6cc8f40d7421d2ef5bc1a7d9b9f013e5a0c1a

See more details on using hashes here.

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