0.1.14 • Published 5 months ago

mpv-easy v0.1.14

Weekly downloads
-
License
MIT
Repository
-
Last release
5 months ago

mpv-easy

TS and React toolkit for mpv script mpv-easy

install

install

CONTRIBUTING

CONTRIBUTING

dev

bash

export MPV_SCRIPT_DIR=/your_mpv_dir/portable_config/scripts && pnpm run dev-copy

fish

set -x MPV_SCRIPT_DIR /your_mpv_dir/portable_config/scripts ; pnpm run dev-copy

scripts

mpv-easy-scripts

short key

keycommand
ENTERcycle fullscreen
[script-message change-speed -0.25
]script-message change-speed +0.25
cscript-message cut
Cscript-message crop
oscript-message output
gscript-message output-gif
ESCscript-message cancel
UPscript-message change-volume +10
DOWNscript-message change-volume -10
ctrl+UPscript-message change-fontSize +0.25
ctrl+DOWNscript-message change-fontSize -0.25
ctrl+oscript-message open-dialog
ctrl+tscript-message translate
ctrl+iscript-message interactive-translate
ctrl+Tscript-message mix-translate
CTRL+0script-message Anime4K-Clear
CTRL+1script-message Anime4K-AA-HQ
CTRL+2script-message Anime4K-B-HQ
CTRL+3script-message Anime4K-C-HQ
CTRL+4script-message Anime4K-A-HQ
CTRL+5script-message Anime4K-BB-HQ
CTRL+6script-message Anime4K-CA-HQ
CTRL+vscript-message clipboard-play
CTRL+cscript-message copy-screen
CTRL+Cscript-message copy-time
MOUSE_BTN0script-message mouse-left-click
MOUSE_BTN1script-message mouse-mid-click
MOUSE_BTN2script-message mouse-right-click
MOUSE_BTN3script-message mouse-wheel-up
MOUSE_BTN4script-message mouse-wheel-down

UI

uosc

osc

oscx

example

drag-ball

drag-ball

snake

snake

i18n

i18n

counter-ui

counter-ui

config

mouseHoverStyle

Only supports Windows, requires installation of PowerShell to enable script execution permissions

set-executionpolicy remotesigned

mouseHoverStyle

quick start

mpv-easy-demo

more example

mpv-easy-tpl

Q&A

mujs stack overflow

If your code throw a stack overflow error with mujs, you need to use the babel plugin hack.js . It adds a function variable at the beginning of all functions to expand the stack size. Alternatively, you can use a custom compiled version of mujs and mpv, change mujs JS_STACKSIZE

fixed: Increase default stack sizes.

- #define JS_STACKSIZE 256	/* value stack size */

+ #define JS_STACKSIZE 1024	/* value stack size */

perf

Maybe should use GitHub action to automatically update this

js enginefirst renderaveragejs file size
qjs358ms3.58ms1.4M
qjs+minify334ms3.42ms300K
mujs+es5402 ms14.05ms1.1M
deno291 ms0.23ms1.4M
deno+minify464 ms0.23ms306K
boa+es6400 ms21.88ms1.2M

changlog

todo

  • flex (30%)
  • grid
  • logo
  • bilibili
  • youtube
  • animation
  • es2022
  • test
  • mpv prop type
  • plugin system
  • menu system
  • CI snapshot test
  • font rem
  • node console
  • es/cjs plugin module
  • real-time subtitle translation
  • sourcemap

star-history

0.1.13

7 months ago

0.1.14

5 months ago

0.1.12

9 months ago

0.1.10

1 year ago

0.1.9-alpha.1

1 year ago

0.1.9-alpha.8

1 year ago

0.1.6-alpha.3

1 year ago

0.1.6-alpha.2

1 year ago

0.1.6-alpha.0

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

2 years ago

0.1.1

2 years ago

0.0.1

2 years ago