Open and edit Matroska files in place, including track removal
.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>
This commit is contained in:
1 parent
0c3d7de364
commit
eb386a52c3
14 files changed
+540
-32
No files matched your search
@@ -128,3 +128,17 @@ extension String {
|
||||
return matrix[m][n]
|
||||
}
|
||||
}
|
||||
|
||||
extension NSView {
|
||||
/// Enables or disables every NSControl in this view hierarchy. Used to
|
||||
/// present the track property views read-only in Matroska (tags-only)
|
||||
/// documents, where the tracks cannot be modified.
|
||||
func setAllControlsEnabled(_ enabled: Bool) {
|
||||
if let control = self as? NSControl {
|
||||
control.isEnabled = enabled
|
||||
}
|
||||
for subview in subviews {
|
||||
subview.setAllControlsEnabled(enabled)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user