Scott GarrettandClaude Code 330236735d Add subtitle tracks to open Matroska documents
MKV docs can now import .srt/.ssa/.ass subtitle files, written as
S_TEXT/UTF8 by MP42MkvRemuxer (submodule bump). Video/audio adds and
other subtitle formats stay refused by both sides.

- DocumentWindowController: split selectFile: validation so MKV docs
  get an Import panel restricted to matroskaSubtitleExtensions (kept
  in sync with the remuxer's gate); showImportSheet routes MKV docs
  to importSubtitleTracksForMatroska, which imports each file with a
  plain MP42FileImporter (no track-selection sheet), attaches the
  conversion-settings defaults addTrack: asserts on, and assigns the
  next display trackId. Drag-drop already funnels through
  showImportSheet. didSelect skips
  organizeAlternateGroups/inferMediaCharacteristics on MKV docs —
  same TrackEntry-pairing protection as delete.
- Document: the tagsChanged check already caught additions; the
  post-remux snapshot now appends the added tracks behind the kept
  ones, matching the TrackEntry order in the written file, so a
  later tags-only save pairs correctly instead of double-appending.
- ScriptCommand: the AppleScript "save as" command called
  mp4.write(to:) directly, which muxed a QuickTime MP4 over a
  Matroska document. Route isMatroska documents through
  Document.save(saveAsOperation) so writeMatroska picks the
  tag-writer/remux path and enforces the mkv destination.

Verified with the /tmp/subler-mkv-test harness (matrix PASS=276: add
srt/ass, add+drop mix, no-cues source, bad-file and drop-all
refusals, idempotent re-save, post-add tag edit) and against the
live app (scripted import + save on a fixture copy; output checked
with mkvmerge/mkvextract/ffmpeg and reopened cleanly).

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-26 11:53:50 -05:00
2025-09-18 15:27:37 +02:00
2024-07-19 17:21:05 +02:00
2024-07-19 18:25:15 +02:00
2026-09-23 09:00:33 +02:00
2026-09-22 20:02:45 +02:00
2026-10-05 08:16:39 +02:00
2026-09-23 09:00:33 +02:00
2026-09-29 12:14:37 +02:00
2026-10-05 08:56:50 +02:00
2026-09-22 20:02:45 +02:00
2026-09-23 09:00:33 +02:00
2015-08-19 18:52:35 +02:00
2024-02-21 10:16:51 +01:00
2024-07-03 11:14:00 +02:00
2024-07-03 11:14:00 +02:00
2024-07-03 11:14:00 +02:00
2026-10-05 08:09:19 +02:00
OCD
2019-03-11 18:36:10 +01:00

README

What is this repository for?

Subler is an Mac OS X app created to mux and tag mp4 files. The main features includes:

  • Creation of tx3g subtitles tracks, compatible with all Apple's devices (iPod, AppleTV, iPhone, QuickTime?).
  • Mux video, audio, chapters, subtitles and closed captions tracks from mov, mp4 and mkv.
  • Raw formats: H.264 Elementary streams (.h264, .264), AAC (.aac), AC3 (.ac3), Scenarist (.scc), VobSub? (.idx).
  • metadata editing and TMDb, TVDB and iTunes Store support.

Build and run

Clone the repository and include all submodules

git clone --recurse-submodules https://github.com/SublerApp/Subler.git

If you already cloned without submodules and need to add the submodules manually, cd into the ./Subler directory and clone the dependency submodules with

git submodule update --init --recursive

Open Subler.xcodeproj in XCode

Build and run the project by selecting the 'Subler' scheme (Product -> Scheme -> Subler) and clicking the 'Run' button in Xcode’s toolbar.

S
Description
This is a fork of Subler 1.9.5. I have added full support for the editing of MKV tags (where allowed; MKV is restrictive on allowed tags), and fixed a number of bugs and filename parsing annoyances.
Readme GPL-2.0
10 MiB
0 Stars 1 Watchers 0 Forks
Languages
Swift 92.4%
Perl 4.7%
Shell 1.7%
Objective-C 0.6%
Rich Text Format 0.6%