26 Commits
Author SHA1 Message Date
Scott GarrettandClaude Code 1040f47542 Add Matroska tagging and track-removal support
- MP42Ebml: EBML vint/ID primitives, flat Segment scanner, block track
  number decoding, and element builders shared by all Matroska writers.
- MP42MkvImporter / MP42FileImporter: tagsOnly mode that mirrors the
  file's own track flags instead of the MP4 conversion heuristics.
- MP42MatroskaTagMapping: read/write SimpleTag maps shared by importer
  and writer, including community names for MP4-only movie fields.
- MP42MkvTagWriter: mkvpropedit-style in-place rewrite of Tags, cover
  art, and per-track name/language/enabled/forced fields with a
  size+mtime staleness guard; an untouched save is a byte-for-byte
  no-op.
- MP42MkvRemuxer: stream-copy rebuild that drops the blocks of removed
  tracks (TrackNumbers keep their gaps; block bytes are never
  rewritten), regenerates SeekHead and Cues, carries metadata edits in
  the same pass, and writes via temp file + atomic rename.
- MP42MkvTagWriter+Internal.h exposes the tag writer's scanning and
  payload builders so the remuxer reuses them unchanged.

Verified with the external matrix harness: 241 assertions green across
layout fixtures (ffmpeg/mkvmerge/streamed), removal scenarios, cue
parity, and idempotency.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-25 19:48:09 -05:00
Damiano Galassi 027cb1f6ae Update copyright year. 2022-01-02 09:31:49 +01:00
Damiano Galassi 33c5d84f51 Some preliminary changes to support multiple sample descriptions. 2021-12-18 14:03:54 +01:00
Damiano Galassi 799fdcc642 Update copyright year. 2021-02-02 10:55:04 +01:00
Damiano Galassi b2394c7c3e Update copyright. 2020-09-22 11:38:15 +02:00
Damiano Galassi 86de20e308 Remove some superfluos MP42FileImporter methods. 2020-09-21 19:27:11 +02:00
Damiano Galassi 0e421a6eef Enable and fixes more warnings. 2020-09-19 14:39:02 +02:00
Damiano Galassi f63e23f878 Adopt objc direct attributes where possible. 2020-07-01 19:48:11 +02:00
Damiano Galassi ce4ee8e0f1 Reorganize headers. 2020-02-08 13:53:32 +01:00
Damiano Galassi a7616d58b8 Properly nil importers after mux. 2017-11-29 10:53:04 +01:00
Damiano Galassi 06b31b8ecd URL property of MP42Track can be nil. 2017-10-09 17:05:11 +02:00
Damiano Galassi f0f7a0704b Add __autoreleasing to NSError 2017-10-09 12:34:55 +02:00
Damiano Galassi 972ead6f0b Convert MP42FileImporter to ARC, and clean up some imports. 2017-09-30 11:11:31 +02:00
Damiano Galassi 646585be6f Port more classes to arc. 2017-09-29 18:10:59 +02:00
Damiano Galassi ea5fc13f87 Move some files to ARC. 2017-09-29 14:00:38 +02:00
Damiano Galassi 4f5d8e8b80 Use ARC in MP42File. 2016-10-14 12:45:00 +02:00
Damiano Galassi f47dbdb62e Fix setAutoFallback: 2016-09-27 10:02:43 +02:00
Damiano Galassi acf14c20f5 Rename isEdited to edited. 2016-09-13 15:53:13 +02:00
Damiano Galassi 82dd46773d Fix warnings. 2016-09-13 15:22:49 +02:00
Damiano Galassi 815119bccb OCD. 2016-09-13 14:05:37 +02:00
Damiano Galassi f0b3466eba Remove more protected ivars from MP42Track. 2016-09-13 13:21:27 +02:00
Damiano Galassi e5c14727c9 Switch MP42Track to arc. 2016-09-13 12:31:57 +02:00
Damiano Galassi 1d100a1db0 Clean up MP42Track a bit. 2016-09-13 12:05:40 +02:00
Damiano Galassi 8a2b4460ed Fix some more display names. 2016-08-19 09:34:52 +02:00
Damiano Galassi eedbf1452d Use the new private headers 2015-09-19 11:50:44 +02:00
Damiano Galassi 6ea7af8777 Small changes to MP42Metadata and added some private headers 2015-09-19 11:48:47 +02:00