Scott Garrett and Claude 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
ce4ee8e0f1
Reorganize headers.
2020-02-08 13:53:32 +01:00
Damiano Galassi
40dd77c363
Fix some deadlocks.
2018-03-23 12:43:33 +01:00
Damiano Galassi
3557220f53
Remove 10.9 support.
2018-02-03 10:43:45 +01:00
Damiano Galassi
dd10b73a0f
Fix multiple MP42SampleBufferFlagEndOfFile being sent on the same track.
2017-10-27 09:07:53 +02:00
Damiano Galassi
f0f7a0704b
Add __autoreleasing to NSError
2017-10-09 12:34:55 +02:00
Damiano Galassi
8d8aaa0be6
Rename SBSubSerializer to MP42SubSerializer, remove some casts, fix SSA timestamp parsing.
2017-10-03 08:52:48 +02:00
Damiano Galassi
826704ac9c
Quite incomplete and untested ssa parser.
2017-10-02 12:45:35 +02:00
Damiano Galassi
1f65513c84
Init the FIFOs only when needed.
2017-10-01 16:35:39 +02:00
Damiano Galassi
972ead6f0b
Convert MP42FileImporter to ARC, and clean up some imports.
2017-09-30 11:11:31 +02:00
Damiano Galassi
7a8cae556e
Fix headers.
2017-09-29 22:10:09 +02:00
Damiano Galassi
9f7089b831
Write the sgpd/sbgp only when importing tracks, do not write a guessed delay on save on every mp4.
...
Fixed another crash in avfoundation edit lists code.
2017-09-03 11:41:28 +02:00
Damiano Galassi
adb8735bf4
Fix some more sync issues from avfoundation edit lists.
2017-09-02 17:06:20 +02:00
Damiano Galassi
ad673993f5
Make Thread Sanitizer happy.
2017-06-20 16:17:17 +02:00
Damiano Galassi
7861e4fe2c
Fixes some Xcode 9 warning.
2017-06-10 21:07:58 +02:00
Damiano Galassi
1d100a1db0
Clean up MP42Track a bit.
2016-09-13 12:05:40 +02:00
Damiano Galassi
fe908428f4
Prefer AVFoundation to our ac3 demuxer.
2016-09-13 08:51:14 +02:00
Damiano Galassi
7b1c7d0384
Clean up headers and MP42SampleBuffer.
2016-07-27 17:37:27 +02:00
Damiano Galassi
1b0316237c
Retain the fileImporters classes array.
2016-07-25 17:39:05 +02:00
Damiano Galassi
3b941b8c9e
Remove 32bit only files (QuickTime) and update headers.
2016-07-25 17:19:22 +02:00
Damiano Galassi
ccf675cefe
Simplify the muxer cancel flow, now it just cancels the file importers and drain the remainings fifo.
2016-07-25 10:25:16 +02:00
Damiano Galassi
6a2b4a1fad
Use a sample to indicate a reader EOF.
2016-07-23 17:20:31 +02:00
Damiano Galassi
f3187b1e2a
Better compatibility with mov create by Perian.
2016-04-09 09:35:15 +02:00
Damiano Galassi
15a0509306
Try the next importer if one fails.
2016-04-01 08:26:47 +02:00
Damiano Galassi
e276837efb
Add a default to enable the old QuickTime importer.
2016-02-16 19:46:27 +01:00
Damiano Galassi
e43433e63a
Forgot to add MP42AACImporter to the list of the available importers.
2015-09-28 13:44:16 +02:00
Damiano Galassi
d69be89c01
Fixed a memory leak
2015-09-19 11:50:08 +02:00
Damiano Galassi
d5a1e7cfcc
Removed RegexKitLite, reimplemented the only two methods used in a NSString category
2015-09-18 14:00:00 +02:00
Damiano Galassi
506b145480
Remove the big if structure in MP42FileImporter init.
2015-09-18 09:10:41 +02:00
Damiano Galassi
ba4aca5cfb
Add new methods.
2015-09-18 08:26:52 +02:00
Damiano Galassi
1319ffb9e2
Rename some MP42File methods and some cosmetics changes
2015-09-14 10:57:32 +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
galad87
f6b23874f6
More cosmetics
2015-08-27 18:28: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
acbc6a3f93
MacGui: random fixes.
2015-02-27 09:43:11 +01:00
Damiano Galassi
e634d55575
Fix a NSTableView issue on Yosemite.
2014-11-03 19:16:04 +01:00
Damiano Galassi
b7668b0fc8
Almost working edit lists implementation in the AVFoundation importer. yay!
2014-03-26 19:35:55 +01:00
Damiano Galassi
08e32323ce
Renamed MP42Utilites to MP42PrivateUtilities, a public header will be committed soon.
2013-11-16 13:23:01 +01: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