Files
SublerMKV/README.md
T
Scott GarrettandClaude Code 20438f310d Pull the contrib dependency from Gitea too
Bumps MP42Foundation to its .gitmodules rewrite and rewrites the build
docs: clone/update instructions for the nested submodules, the SSH key
prerequisite, and a note that Sparkle still comes from upstream via SPM.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-28 13:46:30 -05:00

3.6 KiB

Subler

Subler is a macOS app for muxing and tagging MP4/M4V/M4A files. The main features include:

  • Creation of tx3g subtitle tracks, compatible with all Apple devices (iPod, Apple TV, iPhone, QuickTime).
  • Mux video, audio, chapters, subtitles and closed-caption tracks from mov, mp4 and mkv sources.
  • Raw formats: H.264 elementary streams (.h264, .264), AAC (.aac), AC3 (.ac3), Scenarist (.scc), VobSub (.idx).
  • Metadata editing with TMDb, TVDB and iTunes Store lookups.

About this fork

This is a standalone working copy maintained at git.technomancer.com in Scott Garrett's Misc Files and Scripts; it is not a staging ground for pull requests against upstream. The original project is SublerApp/Subler by Damiano Galassi, and this tree starts from its history.

Changes on top of upstream

Native Matroska support — the headline change. .mkv/.mka/.mks files open directly and are edited in place instead of being converted to MP4:

  • Tags and the four per-track fields Matroska stores (name, language, enabled, forced subtitle) rewrite the file in place (mkvpropedit-style), never touching the media clusters.
  • Deleted or added tracks, and Save-As, go through a stream-copy remuxer that copies every block verbatim and rebuilds the container bookkeeping (SeekHead, Cues, Duration).
  • Chapters are editable: update via .csv, add via .txt (mp4chaps) import, insert one chapter or add them at a fixed interval; chapter changes ride the remuxer.
  • Subtitle tracks (.srt/.ssa/.ass) can be added to an open Matroska document.
  • File ▸ Optimize performs a full structural rebuild on Matroska documents; the AppleScript save as command routes Matroska correctly.
  • The companion MP42Foundation submodule carries the engine for all of this (EBML scanner, tag mapping, in-place tag writer, stream-copy remuxer, importer changes).

VobSub muxing — added VobSub tracks are muxed at the frame size declared in their .idx file.

Metadata search from file names — names carrying embedded IDs such as The Movie (2024) {tmdb-1015812} or {imdb-tt15239678} now parse to a clean title, and the ID drives a direct TMDb lookup (with title-search fallback) in the metadata search sheet, in queue jobs, and in the AppleScript metadata fetch command.

Build and run

Everything the app builds from lives on this server: the MP42Foundation submodule, and inside it a nested contrib submodule (the vendored mp4v2 sources). Both are Scott-Files repos cloned over SSH, so an SSH key registered with your Gitea account is required.

Clone the repository with all submodules

git clone --recurse-submodules gitea@git.technomancer.com:Scott-Files/Subler.git

If you already cloned without submodules, cd into the Subler directory and fetch them (including the nested one) with

git submodule update --init --recursive

To bring an existing checkout up to date:

git pull --rebase
git submodule update --init --recursive

The only dependency not hosted here is Sparkle (auto-updates), which Xcode resolves from its upstream via Swift Package Manager on first build.

Open Subler.xcodeproj in Xcode, select the Subler scheme (Product → Scheme → Subler) and press Run. Command-line builds need a deployment-target override on recent toolchains, which refuse the projects' 10.13 target:

xcodebuild -project Subler.xcodeproj -scheme Subler -configuration Debug build MACOSX_DEPLOYMENT_TARGET=12.0

There is no test target; changes are verified by building and running the app.