diff --git a/.gitmodules b/.gitmodules index 5e5dba4..a769136 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "MP42Foundation"] path = MP42Foundation - url = https://github.com/SublerApp/MP42Foundation.git + url = git@git.technomancer.com:Scott-Files/MP42Foundation.git diff --git a/README.md b/README.md index 2a28557..8425b23 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,63 @@ -# README # - -### What is this repository for? ### - -Subler is an Mac OS X app created to mux and tag mp4 files. The main features includes: - -* Creation of tx3g subtitles tracks, compatible with all Apple's devices (iPod, AppleTV, iPhone, QuickTime?). -* Mux video, audio, chapters, subtitles and closed captions tracks from mov, mp4 and mkv. -* Raw formats: H.264 Elementary streams (.h264, .264), AAC (.aac), AC3 (.ac3), Scenarist (.scc), VobSub? (.idx). -* metadata editing and TMDb, TVDB and iTunes Store support. - -### Build and run - -Clone the repository and include all submodules -``` -git clone --recurse-submodules https://github.com/SublerApp/Subler.git -``` -If you already cloned without submodules and need to add the submodules manually, `cd` into the `./Subler` directory and clone the dependency submodules with -``` -git submodule update --init --recursive -``` -Open `Subler.xcodeproj` in XCode - -Build and run the project by selecting the 'Subler' scheme (`Product` -> `Scheme` -> `Subler`) and clicking the 'Run' button in Xcode’s toolbar. - - +# 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](https://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](https://github.com/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 + +Clone the repository and include all submodules + +``` +git clone --recurse-submodules git@git.technomancer.com:Scott-Files/Subler.git +``` + +If you already cloned without submodules, `cd` into the `Subler` directory and fetch them with + +``` +git submodule update --init --recursive +``` + +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.