Files
SublerMKV/Classes
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
..
2026-09-22 20:02:45 +02:00
2024-07-19 18:25:15 +02:00
2026-10-05 08:16:39 +02:00
2026-09-22 20:02:45 +02:00
2026-09-22 20:02:45 +02:00
2025-07-05 09:30:19 +02:00
2021-12-09 20:02:52 +01:00
2026-09-29 12:14:37 +02:00
2021-02-23 11:11:09 +01:00
2019-03-05 10:41:54 +01:00