lzzzsa24

uosc_danmaku_smooth

This is an MPV danmaku plugin forked from uosc_danmaku with optimized rendering that uses the dandanplay open danmaku network to automatically match and load anime and series comments.

v2.2.0-smooth.1
Published at
Jul 26, 2026
1
Stars
15
Download
Synced at
27d ago

Latest release

v2.2.0-smooth.1Jul 26, 2026, 08:41 PM
Downloads slow? Switch the source anytime above

README

Project Overview

This plugin lets the MPV player load danmaku, built on the uosc interface framework and the dandanplay open danmaku network. It automatically identifies the video, matches it to an anime or series on dandanplay, and loads the corresponding comments, so you need not download or convert danmaku files yourself. It is a performance-optimized fork of uosc_danmaku that caches escape and font-size processing and uses dedicated binary search to cut Lua overhead during playback.

Load anime danmaku in MPV with one click, for smoother playback.

Key Features

  • Automatic matching: identifies the video via dandanplay and fetches danmaku for the matching anime or episode
  • Search menu: open a search menu from the uosc control bar to pick danmaku manually
  • Danmaku toggle: turn danmaku on or off with one click on the control bar
  • Source management: add danmaku from a network URL or a local file, and add, remove, or block sources visually
  • Style editing: adjust font, size, color, and display range in real time during playback
  • Auto-loading: once danmaku is loaded for one episode in a folder, the other episodes associate automatically
  • Cache reuse: caches matched danmaku by file name and size and refreshes in stages based on file age
  • Chinese conversion: converts danmaku between simplified and traditional Chinese
  • Duplicate merging: merges identical danmaku within a configurable time tolerance
  • Saving danmaku: saves the current danmaku as a local XML file

Target Audience

  • MPV users watching anime who want danmaku loaded automatically
  • Users who care about danmaku appearance and playback smoothness
  • Users who need to save danmaku files offline

Quick Start

  1. Download the plugin from Releases and rename the folder to uosc_danmaku, then place it under scripts in your mpv config directory
  2. Give the files under the bin directory executable permission
  3. Add the danmaku search button and toggle to the controls entry in script-opts/uosc.conf
  4. Restart mpv and play a video; the plugin matches and loads danmaku automatically
  5. To search manually, click the danmaku search button on the control bar and pick an episode
  6. To enable auto-loading, set auto_load=yes in script-opts/uosc_danmaku.conf

Core Advantages

  • Performance optimized: caches escape, font-size, and style processing to cut repeated work during playback
  • No manual filing: identifies and matches danmaku automatically, so you need not download or convert files
  • Memory saves effort: once one episode is matched, the rest of the folder associates automatically
  • Offline-capable: saves danmaku as local XML so it can load without a network

System Requirements

Item Requirement
Player MPV; hash matching needs a LuaJIT or Lua 5.2 build
UI framework uosc (recommended; some features are unavailable without it)
OS Windows, Linux
Network Internet access for fetching danmaku online

Notes

  • Without the uosc framework, some graphical features such as style and delay menus are unavailable
  • The plugin folder must be named uosc_danmaku; otherwise update the uosc control config to match
  • Hash-based auto-loading is not always accurate; manually reload when it matches the wrong episode
  • Danmaku comes from the dandanplay open danmaku network; some shows may lack danmaku or have timing offsets

Release history

Sort