Skip to content
EasyTidyPublic

About

将 Emby/Jellyfin 播放投放到本地播放器 · 智能路由 · 零侵入 | Cast to local player with smart routing (local/WebDAV/stream) · No scripts needed

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

MeowFlix logo

MeowFlix 🎬

Formerly MeowFlixEmby. The executable (meowflix.exe), config file (meowflix.yaml), release assets, the Windows service name and the install folder keep the old names, so existing installs and auto-updates need no migration.

An Emby / Jellyfin casting bridge with a local media library companion.

Go version License Platform Media Server

Cast Emby / Jellyfin web playback to a local player,
and browse the same folders in a built-in library: scan local or mounted cloud storage, scrape TMDB metadata, write NFO/artwork, play locally.
Smart routing · no userscript · no server changes · mpv / VLC / MPC-HC / PotPlayer

🇨🇳 简体中文  ·  📖 Getting Started (Windows)  ·  ⚙️ Configuration Guide


Contents

How It Works

MeowFlix is a local daemon with two cooperating paths:

① Web casting
┌─────────────────┐     WebSocket      ┌──────────────┐     IPC / CLI      ┌───────────┐
│  Emby / Jellyfin │ ◄────────────────► │   MeowFlix   │ ─────────────────► │   mpv /   │
│    (web client)  │   PlayOn + remote  │  (this PC)   │   launch + control │   VLC …   │
└─────────────────┘                    └──────┬───────┘                    └───────────┘
                                              │ ② built-in media library (SQLite)
                                              ▼
                                    scan folders → TMDB match → index/NFO/artwork
                                    browse locally → play here → keep progress
  1. Web casting: registers itself as a castable session over WebSocket. Click Play On in the web client and the server pushes playback here; the local player launches, and pause/seek/next plus progress reports stay in sync.
  2. Local media library: scans mounted folders (local disks, NAS, cloud-drive mounts) directly, matches metadata with TMDB, stores an SQLite index plus NFO/artwork, and lets you browse, search, resume and play on this PC without streaming through the server.

Smart Routing

Priority Source Playback
1 Cloud-drive mount (strm / direct HTTP source) Direct cloud URL — bypasses the server
2 NAS disk mounted locally Local disk path — direct file access
3 Everything else HTTP Direct Stream — server stream

Features

Casting & playback

  • Remote cast — "Play On" in the web client launches the local player; remote control and progress sync
  • Smart routing — local disk → cloud direct → DirectURL → server stream
  • Players — mpv (full control), VLC, MPC-HC, PotPlayer, any executable
  • Auto-next — next episode at ≥90% completion

Built-in media library

  • Library UI — home, movies, TV, detail, search; continue watching, optional genre shelves, poster wall
  • TMDB scraping — recognises movies, shows, seasons and episodes (including Chinese naming); title+year matching; manual re-match when unsure
  • NFO / artwork — Emby / Jellyfin / Kodi compatible .nfo, posters, fanart and episode stills
  • Local playback & progress — click an item to play here; progress is stored in SQLite and powers "Continue watching"
  • Library management — add/edit/delete folders, folder picker, per-library scan, live progress

Experience

  • Settings page — double-click meowflix.exe or use the tray menu; changes apply without a restart
  • Light / dark theme and Chinese / English UI
  • Tray icon (optional, Windows): settings / check updates / reload / quit, four icon styles
  • Auto-update — GitHub Releases → SHA256 verification → replace and restart; configurable download mirror
  • Cross-platform start-up — Windows service / login autostart (no admin), Linux systemd, macOS launchd
  • FFI embedding — C shared library with the cast lifecycle and the full scraper API

Installation

Download Prebuilt (Recommended)

From the Releases page. Every platform has an installer and a plain archive:

Platform Installer Archive
Windows x64 / ARM64 meowflix_<version>_windows_<arch>_setup.exe meowflix_<version>_windows_<arch>.zip
Linux x64 / ARM64 meowflix_<version>_linux_<arch>.deb / .rpm meowflix_<version>_linux_<arch>.tar.gz
macOS (Intel + Apple silicon) meowflix_<version>_darwin_universal.pkg meowflix_<version>_darwin_<arch>.tar.gz
  • Windows installer: per-user install under %LOCALAPPDATA%\Programs\MeowFlixEmby, no admin, optional desktop shortcut; uninstalling keeps the config.
  • Linux / macOS installers are system-wide (/usr/bin, /usr/local/bin); the in-app updater cannot replace them, so upgrade by installing the new package.
  • Installers are unsigned: Windows shows SmartScreen ("More info → Run anyway"); on macOS right-click → Open.
  • Archives can be extracted anywhere.

Windows users: see the Getting Started Guide.

From Source

Requires Go 1.25+.

git clone https://github.com/EasyTidy/MeowFlix.git
cd MeowFlix
go build ./cmd/meowflix

Quick Start

  1. Prepare the config (at minimum: server address, username, password):
cp configs/meowflix.example.yaml meowflix.yaml
server:
  type: emby                 # emby | jellyfin
  address: http://192.168.1.10:8096
  username: your-user
  password: "your-password"
players:
  default: mpv
  exe:
    mpv: C:\Green\mpv\mpv.exe
  1. Start it: double-click meowflix.exe (or run meowflix -config meowflix.yaml). A second double-click only opens the settings page of the running instance.

  2. Open the settings page (double-click or tray → Open settings):

    • Settings: server, players, path mapping, openlist, theme/language, tray, updates, log
    • Libraries: folders, TMDB key/mirror/language, NFO and artwork toggles
    • Scraping: scan progress, match list, manual re-match
    • YAML editor (advanced): raw config file
  3. Create a library: Libraries → Add library → pick folder and kind → enter a TMDB key → Save → Scan.

  4. Use it:

    • Web client: play → Play On → this PC
    • Or browse the built-in library and click play

For Emby to pick up the generated NFO/artwork, enable "prefer NFO / local images" in the library settings and refresh metadata.

Media Library & Scraping

Storage

All library data lives in an SQLite database next to the config (default meowflix.db):

Table / setting Contents
libraries folder name, path, kind (auto/movies/tv), enabled
settings TMDB key/API/image base/language, NFO and artwork toggles
items movies/shows/episodes: title, year, overview, rating, genres, TMDB id, images, match state
scrape_runs scan history
play_history local playback position (feeds "Continue watching", separate from Emby progress)

On first start, scrape.roots, TMDB settings and NFO/artwork toggles from the config file are imported as initial values; afterwards SQLite is authoritative. The database path and the scraper master switch stay in the config (scrape.db, scrape.enabled).

Scraper flow

  1. Scan folders: movies, show/season folders and episode files (Chinese names, years, S01E02, 第01集, 1x02, multi-episode, multi-version merging).
  2. Match with TMDB (title variants, retry without year, localized and original names); low confidence is never written silently.
  3. Write the SQLite index and, if enabled, NFO files and artwork.
  4. Re-match failures by hand from the Scraping tab.

Sidecar naming:

Kind Files
Movie <movie>.nfo (or movie.nfo for generic names) + -poster.jpg / -fanart.jpg
Show tvshow.nfo + poster.jpg / fanart.jpg
Episode <episode>.nfo + -thumb.jpg

Command Line

# every enabled library in SQLite
meowflix scrape -config meowflix.yaml

# folders as arguments (registered as libraries automatically)
meowflix scrape -config meowflix.yaml "Z:\Movies" "Z:\TV"

# one library by id (see the Libraries tab)
meowflix scrape -config meowflix.yaml -library 2

# index only
meowflix scrape -config meowflix.yaml -no-match

# override TMDB for this run only (not stored; handy for integrations)
meowflix scrape -config meowflix.yaml "Z:\Movies" \
  -tmdb-key KEY -tmdb-api https://api.themoviedb.org/3 \
  -tmdb-image https://image.tmdb.org/t/p -tmdb-lang en-US

-list N prints indexed items, -json prints a machine-readable summary, -db selects another database.

Where Configuration Lives

What Where
Server, players, path maps, openlist, subtitle/version preference, log, UI/language, tray, updates meowflix.yaml (Settings tab)
Library folders, TMDB key/mirror/language, NFO/artwork toggles SQLite (Libraries tab)
Index, matches, scan history, local playback progress SQLite (meowflix.db)

Full reference: Configuration Guide.

Note: username + password are required to be a cast target; an API key alone cannot cast or browse the library.

Building from Source

go build ./...
go test -race ./...

scripts/build.sh          # host → dist/
scripts/build.sh all      # windows/linux/darwin × amd64/arm64
scripts/package.sh        # installers this host can build → dist/installers/
scripts/build-shared.sh   # C shared library + header

Version info is injected with -ldflags; meowflix -version prints it.

GitHub Actions Release

Pushing a v* tag runs release.yml:

Artifact Notes
Binaries windows/linux/darwin × amd64/arm64 (.zip on Windows, .tar.gz elsewhere)
Installers Windows NSIS _setup.exe, Linux .deb/.rpm, universal macOS .pkg (packaging/)
FFI library .dll / .so / .dylib + header
Checksums SHA256SUMS.txt, verified by the in-app updater

Running Modes

Use a login autostart or the Windows service, not both. Foreground always works.

1. Foreground (default)

meowflix -config meowflix.yaml   # Ctrl+C to stop

On Windows, double-click 2-启动.bat.

2. Windows Login Autostart (no admin)

deploy\windows\setup-autostart.ps1 -Action install -Exe C:\meowflix\meowflix.exe -Config C:\meowflix\meowflix.yaml

Or use the "Start methods" card on the settings page.

3. Windows Service (admin)

meowflix.exe -service install,start -config C:\meowflix\meowflix.yaml
meowflix.exe -service stop
meowflix.exe -service uninstall

The settings page can install/start/stop/uninstall it with one UAC prompt.

Windows Double-Click Entry Points

File Purpose
1-首次设置.bat create the config and open it in Notepad
2-启动.bat run in the foreground, keep errors visible
3-开机自启-安装.bat / -卸载.bat login autostart on/off
double-click meowflix.exe open the settings page (starts the daemon first if needed)

Linux (systemd user) / macOS (launchd)

See deploy/systemd/meowflix.service and deploy/launchd/com.easytidy.meowflix.plist.

Advanced

HTTP API

The settings page is a loopback HTTP service (default 127.0.0.1:18096, ui.listen) that only accepts local sessions. Main endpoints: /api/status, /api/local/* (browse/play the local library), /api/scrape/* (scan/match), /api/libraries (library management).

FFI Embedding

scripts/build-shared.sh   # dist/{meowflix.dll,libmeowflix.so,libmeowflix.dylib} + meowflix.h
  • Lifecycle: MeowflixStart/Stop/IsRunning/Version/LastError/SetEventCallback; event schema in api/ffi/EVENTS.md
  • Scraper: MeowflixScrapeStart/Cancel/Status/List/Search/Match, plus MeowflixScrapeStartEx (per-run TMDB overrides) and MeowflixScrapeSetTMDB (persist to SQLite)
  • Scan progress arrives as type: "scrape" events

Design Docs

# English 中文
0 Getting Started (Windows) 新手入门指南
1 Requirements & Background 需求与背景分析
2 Architecture Decision & Language Rationale 方案选型与语言论证
3 Architecture Design 架构设计
4 Go Project Layering & Conventions Go 工程分层与规范
5 Implementation Plan 实施计划
Configuration Guide 配置指南

License

MIT

About

将 Emby/Jellyfin 播放投放到本地播放器 · 智能路由 · 零侵入 | Cast to local player with smart routing (local/WebDAV/stream) · No scripts needed

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages