35 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 841a7d083e Some undo groundwork 2025-11-14 15:20:29 +01: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 f63e23f878 Adopt objc direct attributes where possible. 2020-07-01 19:48:11 +02:00
Damiano Galassi bf0417c97d Refactor MP42Track private methods, removed NSUserDefaults usage. 2020-02-08 13:45:56 +01:00
Damiano Galassi 66c5a72c86 Fix conversion settings nullability. 2019-04-22 10:00:57 +02:00
Damiano Galassi 0c14b18efc Improve reopening file under sandbox. 2019-03-11 09:57:34 +01:00
Damiano Galassi 2321192a5b Adda property to check if a track can be exported. 2018-10-22 11:25:35 +02:00
Damiano Galassi 32b347c638 Refactor the document window controller and the prefs controller. Some regression still in there. 2018-02-08 17:50:44 +01:00
Damiano Galassi 06b31b8ecd URL property of MP42Track can be nil. 2017-10-09 17:05:11 +02:00
Damiano Galassi fc6b9d8a4c Use NSTimeInterval to store a track start offset, rename alternate_group to alternateGroup. 2017-09-01 07:36:57 +02:00
Damiano Galassi 5c6f1a7ea8 Always use extended language tags when possible. 2016-11-26 13:14:14 +01: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 1d100a1db0 Clean up MP42Track a bit. 2016-09-13 12:05:40 +02:00
Damiano Galassi 5be581793d Rework the way conversion settings are stored. 2016-09-13 08:50:39 +02:00
Damiano Galassi 0f2057c64d More secure coding work. 2016-08-31 12:20:49 +02:00
Damiano Galassi 285e6e9667 Add back "Chapter Track" name to chapters track. 2016-08-16 10:36:35 +02:00
Damiano Galassi 6d7c418b09 Made more MP42Track ivars private. 2016-08-13 13:49:48 +02:00
Damiano Galassi 1c562a65ea Switch to FourCC instead of NSStrings for media type and formats. 2016-08-10 18:51:53 +02:00
Damiano Galassi 7b1c7d0384 Clean up headers and MP42SampleBuffer. 2016-07-27 17:37:27 +02:00
Damiano Galassi eedbf1452d Use the new private headers 2015-09-19 11:50:44 +02:00
Damiano Galassi 24d215fda9 Rename MP42Track Id to trackId 2015-09-14 11:23:14 +02:00
Damiano Galassi 187448da56 Add support for media characteristic tags 2015-09-13 08:07:07 +02:00
Damiano Galassi 6b9a075236 Another round of code modernization 2015-08-24 20:04:19 +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 4e53271070 Fix 32bit build. 2015-04-01 12:55:00 +02:00
Ching-Lan HUANG 446f2e828d Add extended language tag atom ('mdia.elng') support to select correct .traineddata file for Trad. and Simp. Chinese (to fix Subler Issue #12) 2015-03-22 00:01:01 -07: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 077f0ff2f6 Public MP42TextSample 2013-11-01 11:07:35 +01:00
Damiano Galassi 796e9691ce First import. 2013-11-01 10:20:09 +01:00