Coffee is a native Rust player for video, music, and photos, using libmpv and FFmpeg.
Coffee 1.16 · Latest release · SHA-256 checksums
| OS | Architecture |
|---|---|
Linux — Ubuntu, Kubuntu, Debian (.deb) |
x86-64 · ARM64 |
Linux — Fedora (.rpm) |
x86-64 · ARM64 |
Linux — Arch and other distributions (.tar.gz) |
x86-64 · ARM64 |
macOS (.zip) |
Apple Silicon (ARM64) · Intel (x86-64) |
| Windows x64 | Setup (.exe) · Portable (.zip) · Runtime sources |
Coffee requires libmpv 0.41 or newer.
- Ubuntu, Kubuntu, and Debian-based systems: use the
.debon a release that provides libmpv 0.41 or newer. Older stock repositories may not supply a new enough version. - Fedora: use the
.rpmon Fedora 44 or newer. Arch and other Linux distributions: use the Linux.tar.gzwith your distribution’s libmpv andxdg-utils. For file dialogs, install your desktop’sxdg-desktop-portalbackend or KDialog. Coffee prefers KDialog on KDE. The archive containsbin/andshare/directories that can be installed under a user or system prefix. - Windows x64: the Windows packaging workflow now produces a per-user setup
.exeand a portable ZIP, both with libmpv, libheif, and FFmpeg included. Neither needs MSYS2 on the user’s machine. Older published ZIPs that contain onlyCoffee.exestill need MSYS2 withmingw-w64-ucrt-x86_64-mpvandmingw-w64-ucrt-x86_64-libheif. - macOS (Apple Silicon and Intel): run
brew install --cask arazgray/tap/coffeeto install Coffee and its dependencies from the project’s Homebrew tap. For a manual install, runbrew install mpv libheif ffmpegand extract the zip for your CPU. The app is not notarized, so macOS may block it on first launch.
To build from source, install Rust and run cargo test --locked and cargo build --release --locked. On Linux, sh install.sh installs the result for the current user. coffee --smoke-test path/to/media checks opening and decoding a file without creating a player window. COFFEE_LIBMPV can point to a different libmpv installation.
Smooth Playback needs the FFmpeg command-line program with libx264 and zscale for the software path. Seek thumbnails also use it; the timeline still displays times and chapter names without it. Install ffmpeg from your Linux package manager or brew install ffmpeg on macOS. Set COFFEE_FFMPEG to use a different executable. On Linux, the subtitle font picker uses fc-list from the fontconfig package.
Coffee checks GitHub in the background when the main window opens and periodically while it stays open. When a newer stable version is available, Update appears beside Info in the top bar, or inside Info in a narrow window. Clicking Update downloads the matching package, verifies its SHA-256, saves your playback position, and restarts Coffee after installation. The check alone never installs anything. Set COFFEE_NO_UPDATE_CHECK=1 to turn off background checks, or use coffee --check-update for a one-time check.
Linux .deb and .rpm installs use the system package manager and may ask for administrator approval via PolicyKit (pkexec). On macOS, Coffee uses Homebrew for its cask in Applications or replaces a standalone Coffee.app; macOS may ask for approval. For the portable Windows build, keep Coffee in its own folder and close any separate photo windows before updating.
- Music and video share one playback window. Open or drop more songs and videos to add them to the playlist and start the first new item. Open → Add files to queue appends without interrupting active playback.
- Cancel stops a slow open without clearing the playlist. A failure stays visible and offers Retry, Locate file, or Skip when there is another queued item.
- When you reopen a saved local video, song, or seekable on-demand stream, Coffee waits for Resume from … or Start over without overwriting the saved position. Coffee clears the bookmark when playback finishes.
- Continue Watching on the empty screen and in Open lists unfinished items and their progress. Select an item to resume directly, or open its options to start over, locate a moved file, or remove it from the list. History stays on this device and Coffee does not autoplay when launched without a file.
- Opening or dropping a photo creates a separate viewer without interrupting music or video.
- Repeat One, just before the volume button, loops the current video or song without advancing the queue. Click it again to turn it off.
- The gear icon opens playback settings, including HDR, decoder, and rendering. Use − and + around the current speed to step down or up from 1.0×. The range is −64× (reverse) to 64× (forward). Reverse is available for seekable media and uses software decoding for video. Some formats play more slowly in reverse, and embedded subtitles may not show.
- Audio Tracks and Subtitles have separate delay controls. Use − to bring the sound or captions forward and + to delay them, in 50 ms steps. Click the delay value to reset it to zero. Delays apply only to the current file.
- Hover over the seek bar to see the timestamp and a thumbnail. For media with embedded chapters, the timeline marks chapter starts and the preview includes the chapter title. Press J or choose Chapters to jump directly. Hovering does not seek. Thumbnails use FFmpeg; seekable streams or unavailable frames show the timestamp without a thumbnail.
- With the player focused, use Space or K to play or pause, the arrow keys to seek or adjust volume, and F or Enter for fullscreen. Press P for playback settings. Tab and Shift+Tab focus controls, ↑/↓ choose menu items, and Enter activates the focused action. Compact windows keep the main controls visible and put extra actions under More. On macOS, Command+O opens files.
- Open a photo to browse nearby images with Previous and Next. Photos switch without a fade or hiding the controls. Coffee preloads five photos on each side and their Live clips in the background, prioritizing the current Live clip. The RAM cache is bounded at 256 MiB (128 MiB per file); uncached files still open normally.
- A same-named
.MOVcompanion adds a Live badge. Click it to play the clip and automatically return to the still without adding a playlist item. Live Photo transitions blend directly into the next frame over 150 ms. - In Photo mode, open Slideshow to choose Fade, Slide, or None and set Time per photo (1, 2, 3, 5, 10, 15, 30, or 60 seconds). Coffee remembers both settings; the defaults are Fade and 5 seconds. Add music if you like, then choose Play to loop through the folder in fullscreen. Move the mouse to show the controls, or press Esc to stop.
- The photo bar has Fit (show the entire image), Fill (crop to fill the window), and 100% (one image pixel per display pixel). Drag across the photo to pan along any cropped axis. The selected zoom carries over to the next photo.
- Open Streams accepts HTTP(S), HLS, DASH, RTSP and RTSPS feeds, and raw RTP or UDP. Paste with Ctrl+V (or Command+V where supported), or click a URL under Recently streamed, then choose Open stream. Changing the HLS bitrate cap reloads the stream and returns to the same position for seekable on-demand playback.
- The Subtitles panel has an LTR | RTL switch for text captions. Select the active direction again to return to the track’s default rendering. Forced direction uses plain text with the same subtitle font, size, and outline; it does not alter image-based subtitles. Use Font to search installed system fonts and choose one for text subtitles, or select System default to reset. Coffee remembers your choice. The Encoding dropdown can reload an external text track with UTF-8, Windows-1256 (Arabic), or another common encoding. Subtitles move above the playback bar when it appears.
- Playlist → Load imports
.m3u,.m3u8,.xspf, and.pls, plus native.coffee.jsonand older.kahve.jsonplaylists. Relative paths resolve against the playlist's location. Playlists refer to paths and URLs; they don't copy media. - Double-click a photo or video to toggle fullscreen. Double-click open space on either control bar to maximize or restore. Right-click for playback actions and the current item's containing folder or playlist entry.
- The player and stream dialog are always dark. On KDE Plasma 6, Coffee adds a dark window-frame rule scoped to
coffee. Other Linux compositors may control their own decorations. Coffee requests a dark frame on Windows and macOS.
Open Playback settings → Smooth Playback for any supported local video. Coffee also suggests it in the upper-right corner when a video keeps dropping frames or falling behind. Click Start in the panel to pause the original and make a reusable H.264 video track at up to 1080p, keeping the frame rate and converting HDR to SDR. The panel shows progress and an ETA; you can close the panel without stopping the job or click Cancel to discard the partial copy. Switching to another item also cancels preparation.
By default the prepared MP4 is saved beside its source: Holiday.mov becomes Holiday-coffee.mp4. Coffee adds a number if necessary to avoid overwriting an existing file. Choose Use cache instead for a read-only drive or to keep the prepared copy in Coffee’s user cache. If a prepared copy from Coffee 1.1 or earlier is still in the old cache, Save copy saves it beside the original without re-encoding it.
Select Play prepared to use the saved video track, or Use original to switch back. The MP4 itself is video-only; during playback Coffee keeps the original audio, subtitles, and playlist entry. On Linux, Coffee tries Vulkan processing and VA-API encoding when supported, and falls back to CPU conversion if needed. Coffee reuses a prepared MP4 that matches the current original.
Coffee uses the demuxers and decoders in its installed libmpv/FFmpeg build. The lists below cover Coffee’s media filters and commonly supported codecs. Use All files for other extensions. Container support does not guarantee support for every codec or profile inside it; hardware decoding also depends on the GPU and driver. See FFmpeg’s full format and codec reference for the broader list.
| Format / container | Extensions |
|---|---|
| MPEG-4 / QuickTime | .mp4, .m4v, .mov, .qt, .3gp, .3g2 |
| Matroska / WebM / Ogg | .mkv, .webm, .ogv |
| Audio Video Interleave | .avi |
| MPEG video and program streams / DVD | .mpeg, .mpg, .m1v, .m2v, .vob |
| MPEG transport streams / AVCHD | .ts, .m2t, .m2ts, .mts |
| Windows Media / ASF and Flash Video | .wmv, .asf, .flv, .f4v |
| Broadcast and legacy formats | .mxf, .dv, .rm, .rmvb, .nut |
Video codecs: H.264/AVC, H.265/HEVC, AV1, VP9, VP8, VP6, MPEG-1 Video, MPEG-2 Video, MPEG-4 Part 2 (including DivX/Xvid), H.261, H.263, Theora, VC-1, WMV7/8/9, Sorenson, RealVideo, Motion JPEG, DV, Apple ProRes, DNxHD/DNxHR, FFV1, CineForm, HuffYUV, UT Video, Hap, and raw/uncompressed video. Newer or optional decoders such as H.266/VVC depend on the bundled FFmpeg version and build options.
Streams: HLS (.m3u8), MPEG-DASH (.mpd), and direct HTTP(S) media; RTSP/RTSPS camera URLs; and raw rtp:// or udp:// unicast and multicast. Examples: rtsp://camera.local/live and udp://239.10.10.10:1234. VLC-style udp://@239.10.10.10:1234 also works. Use Open Files for a local .sdp session description when the RTP payload needs codec or channel details.
- JPEG
.jpg,.jpeg,.jfif,.jpe; PNG/APNG.png,.apng; GIF.gif; WebP.webp(lossy, lossless, transparency, and animation). - AVIF
.avif; HEIC/HEIF.heic,.heif,.heics,.heifs; JPEG XL.jxl; JPEG 2000.jp2,.j2k,.j2c; QOI.qoi. - TIFF
.tif,.tiff(also.tffif it contains TIFF data); Photoshop.psd(saved composite); SVG.svg(local static preview); BMP.bmp; ICO.ico; Targa.tga; DDS.dds; Radiance HDR.hdr; OpenEXR.exr; Netpbm.pbm,.pgm,.ppm,.pam.
Coffee renders local SVGs without an external decoder. Animations, scripts, and externally linked assets are not loaded.
Full-resolution tiled HEIC/HEIF (common on iPhones) uses libheif with an HEVC decoder. The Debian package recommends libheif-plugin-libde265; Fedora users may need libheif-freeworld from RPM Fusion. Local animated WebP works on older FFmpeg builds too. Experimental WebP v2 is not supported.
| Format / codec | Extensions |
|---|---|
| MPEG audio layers II and III | .mp2, .mp3 |
| AAC (including AAC-LC / HE-AAC) | .aac, .adts, .m4a, .m4b |
| Apple Lossless | .alac, .m4a, .m4b, .caf |
| Lossless audio (FLAC, Monkey’s Audio, WavPack, True Audio) | .flac, .ape, .wv, .tta |
| PCM and other audio in WAV, AIFF, CAF and AU | .wav, .wave, .aif, .aiff, .aifc, .caf, .au |
| Vorbis and Opus | .ogg, .oga, .opus (also .webm, .mka) |
| Windows Media Audio | .wma, .asf |
| Dolby Digital / Digital Plus, DTS, and AMR | .ac3, .eac3, .dts, .amr |
| Matroska Audio | .mka |
| Standard MIDI (formats 0 and 1) | .mid, .midi |
Coffee renders local MIDI files using a built-in, synthesized General MIDI sound bank. Set COFFEE_SOUNDFONT to an .sf2 file to use different instruments. MIDI uses the regular queue and seek controls; rendering is limited to 30 minutes per file. The built-in bank uses original waveforms generated by tools/make-midi-soundfont.py.
Many of the same audio codecs also play as tracks inside video containers, including AAC, AC-3, E-AC-3, DTS, TrueHD, FLAC, Opus, Vorbis, and PCM. Audio passthrough and multi-channel output depend on the audio hardware and system configuration.
Coffee uses libmpv's gpu-next renderer. On Wayland it tries Vulkan first, keeping video on the native renderer and the controls in an SDR overlay. Playback contains Off (SDR only), Automatic HDR, Prefer native HDR, Custom Mapping, Video decoder, and Rendering quality.
For PQ/HDR10 or HLG played to a supported SDR target, Coffee uses the default SDR Reference White Tone Mapping Operator (RWTMO) from the Skia revision pinned by Chrome 158. It prefers positive MaxCLL, then mastering-display maximum luminance, then 1,000 nits. It uses the video output's frame metadata, which mpv merges with stream metadata, and excludes renderer peak detection and MaxFALL. A PQ peak reported as exactly 10,000 nits with no corroborating metadata is indistinguishable from mpv's inferred nominal peak and is treated as unspecified.
The existing decoder and renderer handle sample range and the Y′CbCr matrix. In gpu-next, a cached 64³ conversion LUT takes the resulting nonlinear RGB and replaces libplacebo's source-to-target color map. It linearizes, applies one gain to all three channels in BT.2020, and converts to the reported SDR target gamut and transfer function. It does not read back frames, transcode the video, or use a separate video overlay. The options and LUT are updated after the renderer reports a change; mpv's normal mapping can be visible briefly while a new LUT is prepared.
Open Custom Mapping to override source peak, HDR reference white, and highlight compression. Chrome default (RWTMO) switches back without losing the manual values; Reset to Chrome defaults clears them. These controls do not affect SDR videos, HDR passthrough, or Smooth Playback's file generation. Dolby Vision, custom SMPTE ST 2094-50/AGTM curves, and targets with unknown or unhandled color profiles are outside this path.
On Linux with libmpv 0.41, the render test checks the PQ ramp and saturated swatches, HLG, metadata fallback, the manual controls, and SDR and PQ-output bypasses. Against GPU-composited Chrome 158.0.8127.88, the seven neutral PQ samples matched within two 8-bit sRGB codes per channel. The seven saturated swatches matched the scalar RWTMO reference within two codes on this setup, but differed from Chrome by up to 19 codes in one channel. Coffee does not reproduce Chrome's full color pipeline pixel for pixel.
Video info shows the actual decoder, display target, and dropped frames. Choosing a GPU cannot accelerate a codec that it does not support. The default rendering mode switches to lighter scaling and disables renderer peak detection for 4K at 50 fps or above. HDR presentation still depends on the GPU, driver, and display.
Coffee’s own source is licensed under MIT. The bundled Lucide assets are converted to SDR vector paths at build time. tools/sync-icons.mjs refreshes them with lucide 1.80 installed; tools/sync-logo.sh refreshes the logo with ImageMagick and Potrace. Neither is needed to build or run from bundled assets. The Windows downloads include third-party libraries under their own licenses; see Windows runtime notices.

