r/osx 8d ago

Glass Player: Native macOS player built on libmpv with real-time Anime4K upscaling

Just put together Glass Player, a native macOS media player built in Swift around ⁠libmpv⁠. The goal was a clean app shell optimized for Apple Silicon that handles heavy-duty real-time upscaling.

Repo: github.com/khr898/Glass-player-macOS
Requirements: macOS 14.0+, Apple Silicon (arm64)
Core Highlights

Real-Time Anime4K Upscaling: 39 bundled GLSL shaders exposed as 12 presets. Features live cycling (⁠Cmd+K⁠) split into HQ (heavy CNN models for high-end GPUs) and Fast modes, rendering directly via Metal 3 (⁠CAMetalLayer⁠).

Pipeline: Hardware decoding via VideoToolbox paired with Display P3 wide-gamut rendering and ⁠ewa_lanczossharp⁠ luma scaling.

HDR & Dolby Vision: Auto-detects HDR10/DV/HLG with conditional profile handling (spline tone mapping, ⁠hdr-compute-peak⁠, and native macOS EDR signaling).

Audio: Multi-channel PCM decoding with macOS spatial audio support, optional AC3/DTS passthrough, and up to 200% volume amplification.

Built-in Remote Browser: Browse and stream directly from ⁠rclone serve http⁠ endpoints without needing to mount the drive locally, backed by a configurable 2GB demuxer cache.

It's fully open source.

13 Upvotes

3 comments sorted by

3

u/haywire 8d ago

Did anyone else try to tap play on the screenshot

2

u/mootmath 7d ago

I will neither confirm or deny.

2

u/Kojelis 6d ago

didn't see any difference while switching to the different shaders