GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - mathewcallaghan/WhipIt: Secure, bit-perfect AccurateRip CD ripper for Linux (EAC alternative)

BranchesTags
Open more actions menu

Latest commit

 

History

69 Commits
69 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
scripts
scripts
 
 
whipit
whipit
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
install.sh
install.sh
 
 
pyproject.toml
pyproject.toml
 
 
requirements.lock
requirements.lock
 
 
uninstall.sh
uninstall.sh
 
 

Repository files navigation


WhipIt Icon

WhipIt πŸ’Ώ

A modern, bit-perfect AccurateRip CD ripper for Linux.

WhipIt brings secure, bit-perfect audio CD extraction to the Linux desktop. Powered by Whipper and cd-paranoia, it provides an intuitive PyQt6 graphical interface for audiophiles seeking an Exact Audio Copy (EAC) alternative on Linux, featuring automatic AccurateRip verification, MusicBrainz & Discogs tagging, Cover Art Archive retrieval, and dual FLAC archival / Opus portable mirrors.

WhipIt Interface

πŸ” Click to view WhipIt UI Dialogs (Calibration, Metadata Editor, About)
WhipIt edit metadata WhipIt drive calibration WhipIt diagnostics WhipIt about dialog

Features

  • Accurate two-pass extraction: Drives Whipper and cd-paranoia with drive sample offsets and C2 error recovery. Each track is read and verified in two passes to guarantee sample-accurate audio.
  • AccurateRip verification: Validates ripped tracks against the online AccurateRip database and verifies FLAC stream integrity with flac -t -s.
  • Dual output formats: Creates a bit-perfect FLAC archive (including CUE sheet, log, and embedded artwork) alongside a 192 kbps VBR Opus mirror for phones and portable players.
  • Concurrent multi-drive & batch ripping: Automatically creates independent tabs for every internal SATA and external USB optical drive connected. Includes one-click Rip All Ready Discs for simultaneous extractions, Eject All Drives, automatic multi-disc set linking, and per-drive session isolation.
  • MusicBrainz release matching: Queries MusicBrainz by disc ID. When multiple pressings exist, an edition dropdown lets you choose the exact release (displaying country, year, and catalog numbers).
  • Cover art handling: Retrieves full-resolution front cover art from the Cover Art Archive, generates scaled images for tag embedding to prevent file bloat, and lets you drag or select custom artwork.
  • ReplayGain volume leveling: Applies track and album EBU R128 loudness tags across both FLAC and Opus files using loudgain.
  • Desktop automount suppression: Silences file manager popups and automount dialogs during rips on GNOME, XFCE (thunar-volman), MATE, and Cinnamon.
  • Live speed monitoring: Displays detected drive speed limits (e.g. [Max 48x]), real-time extraction speed (@ 8.4x), and final average throughput.
  • Transactional staging: Extracts and transcodes into an isolated staging directory (.whipit-stage.<job-id>) before publishing. If an error occurs or a rip is cancelled, the staging area is rolled back cleanly.
  • Crash recovery: Unfinished or interrupted rips are detected on startup, giving you the choice to resume publishing or safely discard staging files.
  • Custom Metadata & Smart Tracklist Import: Users can open the metadata editor to customize artist, album, year, and genre, or paste a raw tracklist copied from Bandcamp, Wikipedia, or Discogs (WhipIt automatically strips leading track numbers, timestamps, and quotes).
  • MusicBrainz Submission Helper: For uncataloged discs, the GUI displays an Add this Disc to MusicBrainz link with the disc's TOC pre-filled, plus a Copy Submission Note button that formats a ready-to-paste edit note (containing drive model, TOC timings, and track count).
  • Discogs Cross-Reference: When a MusicBrainz release matches, WhipIt automatically looks up and links the matching Discogs release.
  • Cryptographically Verified Updates: The application includes an in-app updater under Help β†’ Check for Updates... that verifies release wheels against a bundled GPG keyring.
  • Screen & System Sleep Inhibit: During active rips, WhipIt inhibits system idle and suspend over D-Bus (org.freedesktop.PowerManagement and ScreenSaver) so long extractions aren't interrupted by system sleep.

Why WhipIt?

For years, Linux users seeking bit-perfect, AccurateRip-verified CD rips had to choose between running Exact Audio Copy (EAC) under Wine or using command-line tools like Whipper.

Feature WhipIt Whipper (CLI) Asunder / RipperX EAC (via Wine)
Secure cd-paranoia extraction βœ… βœ… ⚠️ Partial ❌ (Own engine)
AccurateRip v1 & v2 Verification βœ… βœ… ❌ βœ…
Modern Desktop GUI (PyQt6) βœ… ❌ βœ… (GTK legacy) ⚠️ (Emulated)
MusicBrainz & Discogs Integration βœ… βœ… ❌ (FreeDB/CDDB) ⚠️
Concurrent Multi-Drive / Batch Ripping βœ… ❌ ❌ ❌
Dual Archival (FLAC) + Portable (Opus) βœ… ❌ ❌ ❌
Transactional / Crash-Safe Staging βœ… ❌ ❌ ❌

System Requirements & Dependencies

WhipIt runs on Linux with Python 3.9+ and standard audio CLI utilities.

Debian / Ubuntu / Linux Mint

sudo apt update && sudo apt install -y whipper flac opus-tools loudgain eject libnotify-bin python3-venv unzip

Fedora

sudo dnf install -y whipper flac opus-tools eject libnotify python3-virtualenv unzip

Arch Linux / Manjaro

sudo pacman -S --needed whipper flac opus-tools eject libnotify unzip

Note: loudgain can be installed from the AUR (yay -S loudgain or paru -S loudgain).

Installation

For standard use, download and run the installer from the latest release:

  1. Download the latest release .zip archive from the Releases Page.
  2. Extract the archive and enter the folder:
    unzip whipit-*.zip
    cd whipit-*
  3. Run the installer script:
    chmod +x install.sh
    ./install.sh

The installer will:

  • Set up an isolated Python virtual environment in ~/.local/share/whipit/venv with hash-checked, pinned dependencies.
  • Symlink the application launcher to ~/.local/bin/whipit.
  • Install the application icon and desktop launcher menu entry (whipit.desktop).

Tip: If running whipit in your terminal says command not found, ensure ~/.local/bin is in your $PATH by adding export PATH="$HOME/.local/bin:$PATH" to your ~/.bashrc or ~/.zshrc.

Development

Clone the repository and run the installer:

git clone https://github.com/mathewcallaghan/WhipIt.git
cd WhipIt
chmod +x install.sh
./install.sh

Developer Mode (Editable Install)

To develop locally so changes reflect immediately without reinstalling:

./install.sh -e

To also install test and static-analysis dependencies ([test,audit]) and expose the whipit-pytest command in ~/.local/bin:

./install.sh --dev

Using WhipIt

Launch WhipIt from your application menu or run whipit in your terminal.

  • Drive & Disc Detection: Detects SATA and external USB optical drives, showing the drive's rated hardware speed (e.g. [Max 48x]) and active disc status (Audio CD Loaded, Enhanced CD, or Tray Empty).
  • Multi-Drive Tabs & Batch Operations: When multiple optical drives are connected, WhipIt automatically creates independent, hot-swappable tabs for each drive node (sr0, sr1, etc.):
    • Rip All Ready Discs (πŸ’Ώ Rip All Ready Discs): Click once in the top batch bar to start concurrent, isolated extractions across all loaded drives simultaneously. Each drive runs in its own process without locking conflicts or cross-talk.
    • Eject All Drives (⏏ Eject All Drives): Safely opens all motorized drive trays at once when a batch completes.
    • Multi-Disc Box Set Detection: If you insert Disc 1 and Disc 2 of the same box set across different drives, WhipIt identifies the match, informs you in the batch bar, and publishes them cleanly into numbered subfolders (Disc 1, Disc 2) under the shared album root.
  • Drive Offset Calibration: AccurateRip verification requires your drive's sample read offset. WhipIt automatically prompts you or allows you to run drive calibration by inserting a popular commercial CD, querying the AccurateRip database, and saving the offset to ~/.config/whipit/offsets.
  • Disc Identification: Reads the disc Table of Contents (TOC) on load and queries MusicBrainz for release info, track titles, and lengths before ripping.
  • Pressing Selector: If multiple editions match the disc ID, select your pressing from the drop down to view its country, release date, catalogue number, and track listing.
  • Cover Art: Front cover art is retrieved from the Cover Art Archive automatically. Click the artwork preview or "Change..." to select a local image (.jpg, .png).
  • Extraction Options:
    • Read Speed: Select an upper speed limit (8x (Recommended), 4x (Safe / Scratched), Full Speed (Maximum), 12x, 16x, 24x).
    • Offset Override: Manually override drive sample offsets (or rely on auto-calibrated values).
    • Rescue readable tracks (--keep-going): Continues ripping readable tracks when encountering scratched discs.
    • Allow unknown disc (-U): Rips uncatalogued discs or CD-Rs with generic track tags.
    • Overwrite existing: Safely replaces an earlier rip of the same album while preserving a backup during the transaction.
  • Progress & Speed Tracking: Follows real-time progress across extraction, two-pass verification, Opus transcoding, and ReplayGain tagging, showing instantaneous throughput (@ 8.4x) and overall average speed upon completion.
  • Live Activity Console: Collapsible log window showing raw output from Whipper and cd-paranoia.
  • Uncatalogued Discs & Submission Assistant: For uncatalogued discs, click Add this Disc to MusicBrainz to attach the disc TOC, or use Copy Submission Note to copy a pre-formatted edit note with drive model, track counts, and timings directly to your clipboard.
  • Custom Metadata & Clipboard Import: Click Edit Metadata... to manually adjust artist, album, year, or track titles. You can also paste raw tracklists from Bandcamp, Wikipedia, or text filesβ€”durations and track numbers are parsed and cleaned automatically.
  • In-App Updates: Help β†’ Check for Updates... compares your installed version with the newest release tag. Source-checkout installs update by fast-forwarding to the newest version tag from the official repository.

Command-Line Usage

whipit [OPTIONS]

Options:
  -d, --device PATH      Specify CD-ROM drive path (e.g. /dev/sr0)
  -o, --output-dir PATH  Override destination directory
  --calibrate-drive      Run the drive read offset calibration wizard
  -v, --version          Show application version
  --help                 Show all available options

Output Directory Structure

By default, WhipIt saves to independent roots (~/Music/FLAC/CD and ~/Music/Opus/CD, configurable in Edit β†’ Preferences or via WHIPIT_OUTPUT_DIR).

Single-Disc Album (Decoupled Roots)

~/Music/FLAC/CD/
└── Artist - Album Title/
    β”œβ”€β”€ 01. First Track.flac
    β”œβ”€β”€ 02. Second Track.flac
    β”œβ”€β”€ cover.jpg
    β”œβ”€β”€ Artist - Album Title.cue
    └── Artist - Album Title.log

~/Music/Opus/CD/
└── Artist - Album Title/
    β”œβ”€β”€ 01. First Track.opus
    β”œβ”€β”€ 02. Second Track.opus
    └── cover.jpg

Multi-Disc Sets (Decoupled Roots)

~/Music/FLAC/CD/
└── Artist - Album Title/
    β”œβ”€β”€ Disc 1/
    β”‚   β”œβ”€β”€ 01. Track One.flac
    β”‚   β”œβ”€β”€ cover.jpg
    β”‚   └── Artist - Album Title (Disc 1).cue
    └── Disc 2/
        β”œβ”€β”€ 01. Track One.flac
        └── cover.jpg

~/Music/Opus/CD/
└── Artist - Album Title/
    β”œβ”€β”€ Disc 1/
    β”‚   └── 01. Track One.opus
    └── Disc 2/
        └── 01. Track One.opus

Shared-Root Fallback

When both FLAC and Opus are directed to the same directory (e.g. via WHIPIT_OUTPUT_DIR), format tags are appended directly to the album folder to prevent collision without redundant nesting:

~/WhipIt/
β”œβ”€β”€ Artist - Album Title (FLAC)/
β”‚   β”œβ”€β”€ 01. First Track.flac
β”‚   └── ...
└── Artist - Album Title (Opus)/
    β”œβ”€β”€ 01. First Track.opus
    └── ...

Configuration & Data Paths

WhipIt adheres to the XDG Base Directory specification:

Path Purpose
~/.config/whipit/offsets Stored AccurateRip drive read offsets
~/.local/state/whipit/jobs/ JSON transaction manifests for active and recoverable jobs
~/.local/state/whipit/ Session execution logs and error logs
~/.cache/whipit/ Temporary extraction staging and cd-paranoia WAV cache
~/.cache/whipit/covers/ Cached Cover Art Archive downloads
~/.local/share/applications/whipit.desktop Desktop launcher menu entry
~/.local/share/icons/hicolor/scalable/apps/whipit.svg Application icon

Environment Variables

Variable Default Purpose
WHIPIT_OUTPUT_DIR ~/WhipIt Default destination directory for FLAC and Opus outputs
WHIPIT_LOG_LEVEL INFO Logging verbosity (DEBUG, INFO, WARNING, ERROR)
WHIPIT_DRIVE (Auto-detected) Path to optical device node (e.g. /dev/cdrom or /dev/sr0)

Uninstallation

To remove WhipIt, its desktop launcher, and command links:

./uninstall.sh

To purge all configuration files, saved offsets, and logs as well:

./uninstall.sh --purge

Testing & Quality Audits

Install the development environment (./install.sh --dev), then run tests using the virtual-environment-aware wrapper (which auto-detects ~/.local/share/whipit/venv or WHIPIT_VENV_DIR and configures QT_QPA_PLATFORM=offscreen):

./scripts/test.sh -v

If installed with --dev, you can also invoke pytest from any directory via the symlinked command:

whipit-pytest whipit/tests/ -v

Automated Audit Pipeline

Run the full static-analysis, security, linting, and branch-coverage suite:

./scripts/audit.sh          # Skips optional uninstalled tools
./scripts/audit.sh --strict # Fails if any audit tool is missing

scripts/audit.sh executes:

  • Ruff: Base lint (E4, E7, E9, F) and extended checks (B, DTZ, S, RUF006, RUF012, RUF015) configured via pyproject.toml.
  • Mypy: Static type verification across whipit/services and whipit/models.py.
  • Bandit: Security scanning across whipit/ (-ll).
  • Pytest + Branch Coverage: Full test suite (./scripts/test.sh --cov=whipit --cov-branch --cov-report=term-missing), including:
    • Headless Core Decoupling (whipit/tests/test_core_zero_qt_leakage.py): Subprocess-isolated check ensuring core models and domain services import with zero PyQt6 dependencies.
    • Parser & Sanitizer Fuzzing (whipit/tests/test_fuzz_invariants.py): Deterministic seeded fuzzing of CUE sheets, Whipper reports, duration parsing, UTF-8 byte-bounded filename sanitization, and integer parsing.
    • Golden Log Replay & Failure Injection (test_log_replay.py, test_failure_injection.py, test_cli_and_env.py).
  • ShellCheck: Linting for install.sh, uninstall.sh, scripts/test.sh, and scripts/audit.sh.
  • Pip-Audit: Vulnerability audit against requirements.lock.

License & Acknowledgments

WhipIt is released under the GNU General Public License v3.0 (GPL-3.0).

Built on top of:

  • Whipper & cd-paranoia for robust audio extraction and AccurateRip verification.
  • MusicBrainz & the Cover Art Archive for release metadata and artwork lookup.
  • loudgain for EBU R128 ReplayGain calculation.
  • PyQt6 for the Linux desktop user interface.

About

Secure, bit-perfect AccurateRip CD ripper for Linux (EAC alternative)

Topics

accurateripaudio-archivingcd-paranoiacd-rippereac-alternativeflaclinux-desktopmusicbrainzopuspyqt6replaygainwhipper

Resources

Readme
GPL-3.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402775 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.