BDMatch
An automatic subtitle shifter from a video to another. 将字幕由一个视频匹配到另一个的自动时间轴平移工具。
Install / Use
/learn @Thomasyse/BDMatchREADME
BDMatch
An automatic timeline shifter to match a subtitle from one video to another based on audio spectrum comparison.
Purpose
The shifter can match a subtitle synced to one video to another video. A typical scenario is TV and BD releases for the same episode, from which the project name comes.
The purpose of this project is to save the effort of manual timeline shifting. Generally, it provides better accuracy than manual shifting. It attempts to match subtitles by finding similarities in audio streams. The application of SIMD instruction set and multi-threading allows it to typically process 24 minutes of TV and BD within 10 seconds, including decoding and matching.
Downloads
The latest Windows binary release can be found in the Releases section.
How it works
Two video or audio files and one subtitle file (ASS/SRT) that synced to one of them are needed. For the video files, the first audio stream is loaded. With FFmpeg, different video and audio formats are supported.
For each timeline of the subtitles, the program will extract the corresponding audio spetrum from the source audio stream and match the most similar part of the target audio stream to obtain the offset that should be applied to the output subtitles.
Usage
For Windows users, the executable in Releases provides graphic interface.
For users of other platforms, BDMatchCore, including the core functionality of the project, can be modified and compiled into a command-line executable. A makefile and an example of CLI usage are provided for reference.
Requirements
- X64 Platform (ARM is not supported currently)
Windows Releases:
BDMatch 1.x (No English Support)
- Windows 7 or newer
- CPU with AVX instruction set
- .Net Framework 4.5 or newer
- Microsoft Visual C++ Redistributable for Visual Studio 2019
BDMatch 2.x
- Windows 10 1809 (17763) or newer
- CPU with AVX instruction set
- .Net 8 or newer (Release with .Net runtime is available in
Releases) - Windows App SDK 1.7 or newer (Releases from 2.0.1 onwards include this runtime by default)
- Microsoft Visual C++ Redistributable for Visual Studio 2022
BDMatchCore Compilation:
- FFmpeg shared and dev builds
- FFTW shared and dev builds
Related Skills
docs-writer
99.5k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
340.5kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
ddd
Guía de Principios DDD para el Proyecto > 📚 Documento Complementario : Este documento define los principios y reglas de DDD. Para ver templates de código, ejemplos detallados y guías paso
arscontexta
2.9kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
