29 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 0a8f6fe4ea Fix build on macOS 26 SDK 2026-09-22 20:33:17 +02:00
Damiano Galassi 57236970a3 Add two methods two return the supported UTIs 2026-09-22 18:50:05 +02:00
Damiano Galassi 027cb1f6ae Update copyright year. 2022-01-02 09:31:49 +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 07f4c8faa4 Fix MP42FileImporter init nullability. 2017-11-27 09:13:18 +01:00
Damiano Galassi f0f7a0704b Add __autoreleasing to NSError 2017-10-09 12:34:55 +02:00
Damiano Galassi ad673993f5 Make Thread Sanitizer happy. 2017-06-20 16:17:17 +02:00
Damiano Galassi 7b1c7d0384 Clean up headers and MP42SampleBuffer. 2016-07-27 17:37:27 +02:00
Damiano Galassi 3b941b8c9e Remove 32bit only files (QuickTime) and update headers. 2016-07-25 17:19:22 +02:00
Damiano Galassi 6a2b4a1fad Use a sample to indicate a reader EOF. 2016-07-23 17:20:31 +02:00
Damiano Galassi d69be89c01 Fixed a memory leak 2015-09-19 11:50:08 +02:00
Damiano Galassi ba4aca5cfb Add new methods. 2015-09-18 08:26:52 +02:00
Damiano Galassi 2d00a04689 clean up the importers and remove the MP42File delegate 2015-09-07 11:44:51 +02:00
Damiano Galassi 034431894d Cosmetics 2015-09-05 13:12:06 +02:00
Damiano Galassi 81b4d88092 Made some headers private 2015-09-02 07:59:54 +02:00
Damiano Galassi 6b9a075236 Another round of code modernization 2015-08-24 20:04:19 +02:00
Damiano Galassi e5095a611a Enabled more warnings, switched the deployment target to 10.7 and minor code cleanup 2015-08-24 17:32:42 +02:00
Damiano Galassi 44ed8eb6d8 OCD 2015-08-20 13:10:57 +02:00
Damiano Galassi a6e03a0b06 Added some nullable and generics, needs Xcode 7 to compile 2015-08-19 19:55:50 +02:00
Damiano Galassi 52a5117483 Hide a private MP42Track method. Plus added @private in some classes. 2014-06-25 09:18:19 +02:00
Damiano Galassi 30564b6469 Made some more header files public to let Subler compiles. 2013-11-16 12:57:17 +01:00
Damiano Galassi 05cf06cfa9 Argh. 2013-11-03 17:10:49 +01:00
Damiano Galassi 077f0ff2f6 Public MP42TextSample 2013-11-01 11:07:35 +01:00
Damiano Galassi 796e9691ce First import. 2013-11-01 10:20:09 +01:00