![monorip_logo](https://git.ku-it.org/terrabeam/monorip/src/branch/main/assets/monorip.png)

# MonoRip: ISO to Monolith MKV Pipeline

MonoRip is an automated workflow script designed to transform bulky Blu-ray/DVD images into lean, high-quality, and highly compatible MKV files. It handles everything from raw extraction to precision encoding and final assembly with zero manual intervention.

## 🚀 Key Features

- Automated Extraction: Automatically parses .iso files or folder structures to extract the main feature using MakeMKV, retaining all English and Dutch audio/subtitle tracks.
- Intelligent Media Analysis: Inspects the source for resolution, bit-depth, and duration. It performs a dedicated scan for black bars to calculate the perfect crop settings.
- Profile-Based Encoding: Re-encodes video using hardware-aware profiles triggered by the media analysis, ensuring optimal quality-to-size ratios.
- Audio Refinement: Retains original high-quality tracks while automatically generating an additional down-mixed Stereo AAC track for maximum device compatibility.
- The "Monolith" Merge: Finalizes the process by merging the optimized video, original audio, new stereo track, and subtitles into a single, definitive .mkv container.

## 🛠 How It Works

1 RIP: Input an ISO/Folder $\rightarrow$ Extract core assets.

2 SCAN: Detect black bars $\rightarrow$ Identify stream properties.

3 BOTTLE: Transcode video $\rightarrow$ Down-mix audio $\rightarrow$ Merge all streams.

## 📋 Requirements

MakeMKV (CLI)
FFmpeg (with cropdetect and preferred encoders)
mkvtoolnix (mkvmerge & mkvinfo)