Subtitle Track Merge
This flow element will search for external subtitles and add them as input files to the FFmpeg Builder. Then once run these external subtitles will be part of the output video file.
Subtitles
The subtitles to search for to add
Use Source Directory
If checked the original source directory will be searched, otherwise the working directory will be used.
Match Filename
When checked only subtitles with the same filename as the input file or the working file will be merged.
For example, Input: MyFile.mkv Match: MyFile.srt Not Match: OtherFile.srt
Filename Detection
The language and flags of the subtitle are detected from the subtitle's filename. These are detected even when Match Filename is not checked.
| Filename | Detected |
|---|---|
Home Alone.spa.srt | Language: Spanish |
Home Alone.spa.forced.srt | Language: Spanish, Forced |
Home Alone.spa.sdh.srt | Language: Spanish, Hearing Impaired |
Home Alone.spa.default.srt | Language: Spanish, Default |
Home Alone.Spanish(Commentary).srt | Language: Spanish, Commentary |
Hearing impaired is detected from sdh, cc or closedcaptions. Sections can be separated with ., - or wrapped in brackets, e.g. Home Alone.spa.forced.srt, Home Alone-spa-forced.srt or Home Alone.spa(forced).srt.
If a commentary subtitle is detected and no Title is set, the title will be the language followed by (Commentary), e.g. Spanish (Commentary).
When Match Filename is checked the detected language takes priority over the Language field, otherwise the Language field takes priority. Detected flags are always added to the Forced, Default and Hearing Impaired options.
Pattern
An optional regular expression that can be used in place of Match Filename to filter for subtitles.
Title
The title of the newly added subtitle. If not set, and a Language is either found or defined, the Language will be used for the title.
Forced
If the new subtitle will be set to forced.
Default
If the new subtitle will be the default subtitle.
Hearing Impaired
If the new subtitle will be marked as hearing impaired.
Outputs
- Subtitles found and added
- Subtitles not found