Delete: the phase-1 gate against deleting the chapter pseudo-track on
Matroska documents is obsolete now that chapter changes ride the
stream-copy remuxer — a removed pseudo-track simply makes the model
report "no chapters", which removes the Chapters element on save (the
same path emptying the Chapters tab already took). The toolbar Delete
button's validation is corrected too; it still rejected chapter-only
selections after deleteSelection was opened up.
Insert: the Actions toolbar gets a single "Insert a chapter" item, and
"Insert a chapter every" (previously MP4-only) is enabled on Matroska.
Both create the chapter track when the document has none, doing the
tags-only bookkeeping the model needs (dense display trackId,
updateChangeCount). A single insert lands 1s after the latest start,
clamped to the track duration, so it can never tie with a stored
chapter — ties get clamped +1ms on write and would silently shift the
user's own chapter times.
Language: the chapter row's language popup stays editable on MKV
documents (the value rides the remuxer's chapter rebuild, not the tag
writer, since the pseudo-track has no TrackEntry), and the Matroska
chapters snapshot carries it so a language-only edit triggers the
remux. Pairs with the submodule's ChapterLanguage round trip.
Co-Authored-By: Claude Code <noreply@anthropic.com>
.mkv/.mka/.mks now open directly into a tags-only document instead of
forcing the convert-import sheet:
- Metadata, cover art, and the four per-track fields Matroska stores
(name, language, enabled, subtitle forced) save back into the same
file via MP42MkvTagWriter; MP4-only properties stay read-only.
- Real tracks can be deleted and Save-As is enabled; both go through
MP42MkvRemuxer's stream-copy rebuild (Document keeps an importer-order
track snapshot and pairs TrackEntry elements by object identity).
Destinations must stay .mkv/.mka/.mks.
- Info.plist: the Matroska document type becomes Editor so NSDocument
offers .mkv Save-As instead of defaulting to the MP4 type.
- Delete on MKV docs skips organizeAlternateGroups/
inferMediaCharacteristics because they reorder the model, which the
TrackEntry pairing depends on; chapter rows stay undeletable.
Bumps MP42Foundation for the Matroska tagging/remux support.
Co-Authored-By: Claude Code <noreply@anthropic.com>