You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract two embedded subtitle tracks from video files and merge them into a single dual-language subtitle file. Supports batch processing for `.mp4` and `.mkv`.
Example: `movie.chi-eng.srt` when auto-detecting Simplified Chinese + English.
6
31
7
-
* 安装【[Node.js/npm环境](https://nodejs.org/zh-cn/)】
32
+
## Flow
8
33
9
-
## 使用
34
+
1. For **each video**, the tool scans embedded subtitle streams.
35
+
2.**Before running**, there is a **3-second countdown**:
36
+
-**Do nothing**: It auto-selects **Simplified Chinese (chi)** and **English (eng)** and merges them. If either is missing, it lists tracks and asks you to enter the two **stream indices** to merge.
37
+
-**Press any key**: Skip auto-detect; it lists all subtitle tracks and asks you to enter the two indices to merge.
38
+
3.**Batch**: If you **manually choose indices** for any file in the run, **all following files** in that run also use manual selection (no countdown, no chi/eng auto-detect).
10
39
11
-
1. 进入视频所在目录
12
-
2. 命令行执行:`npx dual-subtitle`
40
+
## UI language
13
41
14
-
注:有些环境(比如群晖)如果没有`npx`,可以用`npm exec`代替。
42
+
-**Default**: English. If the system or environment suggests Chinese (e.g. `LANG`, `LC_ALL`, or on macOS the primary system language), the UI switches to Chinese.
43
+
-**Override**: Set `DUAL_SUBTITLE_LANG=zh` or `DUAL_SUBTITLE_LANG=en` to force the language.
Useful for players like Infuse that don’t support showing two subtitle tracks at once: merge two embedded tracks (e.g. Chinese + English) into one dual subtitle file.
0 commit comments