/sync-video-subtitle-name

Synchronize video and subtitle file names.

Primary LanguageJavaMIT LicenseMIT

sync-video-subtitle-name

This project is a simple, lightweight console application that synchronizes subtitle file names to video file names.

Built in java language, distributed in JAR executable format, so you need Java Runtime Environment to run. Recommend JRE 11 or above.

Logics

Even if video files and subtitle files are named different, those names have one thing in common: They have episode number in it.

  • video files:

    • awesome drama S01E01.mp4
    • awesome drama S01E02.mp4
    • awesome drama S01E03.mp4
  • subtitle files:

    • Awesome_drama season_1 episode_1.ass
    • Awesome_drama season_1 episode_2.ass
    • Awesome_drama season_1 episode_3.ass

The program asks user index starting from the left of the number to use, uses it to synchronize subtitle file names.

In above example, since the number the program wants is the second occurrence of the number in file name, insert 2.

The program will then show the preview of synchronization results and ask you if this is the result you want. Since the program cannot detect duplicated episode video/subtitle files and 1 to N mapping errors, watch the preview carefully.

⚠️ If the indices of the number in video/subtitle file names do not match (such as [1080p]awesome drama E1.mp4 and awesome drama E1.ass), this program will not work.