Scott GarrettandClaude Code 8520d729c6 Edit and add chapters in Matroska documents
The chapters tab leaves read-only jail on MKV docs: didSelect exempts
ChapterViewController from the tags-only blanket, and chapter-less docs
can gain chapters through the same txt/csv dispatch MP4 documents use
(selectFile's MKV branch and drag-drop now allow .txt/.csv alongside
the subtitle extensions; addChapters/updateChapters assign the display
trackId and flag the document dirty on MKV).

Chapter edits ride the remuxer, never the tag writer: Chapters sits
before the Clusters, so any size change shifts every following byte.
Document.mkvChaptersSnapshot holds the baseline rows and drives a
chaptersChanged check against the model (model-vs-model, because the
reader itself drops duplicate zero-timestamp atoms and those must not
look like user edits); when changed, remuxMatroska passes mp4.chapters
(or an empty track to delete every chapter) as the remuxer's
replacementChapters, then refreshes the snapshot so an untouched save
goes back to the byte-stable tag-writer path.

Verified live: add a chapter row in the UI, File>Save — the file gains
the atom (ties clamped to 1ms), mkvmerge/ffmpeg both read it, a
forced no-op re-save is byte-identical, and reopening shows all rows.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-26 12:54:58 -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%