Skip to content

mpv lua script implements Picture-in-Picture on Windows

License

Notifications You must be signed in to change notification settings

verygoodlee/mpv-pip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpv Picture-in-Picture

Language

English

简体中文

About

mpv lua script implements Picture-in-Picture, only for Windows System,it is implemented based on luajit call win32api.

mpv-pip.gif

Install

  • Note: mpv builds with luajit is required, shinchiro/mpv-winbuild-cmake and zhongfly/mpv-winbuild is recommended.
  • put pip.lua into ~~/scripts, put pip.conf into ~~/scripts-opts, like this:
    .../mpv/
       │  ...
       └─ /portable_config/
          ├─ /scripts/
          │    pip.lua
          ├─ /script-opts/
          │    pip.conf
    

Use

You can customize the keybinding, window size and window alignment in pip.conf.
If you use the --no-input-default-bindings option, you need to customize your keybinding in input.conf:

KEY script-binding pip/toggle

Integrate with other scripts

-- get whether the Picture-in-Picture is on
local pip_is_on = mp.get_property_bool('user-data/pip/on', false)
-- turn on, turn off and toggle opertions
mp.commandv('script-message-to', 'pip', 'on')
mp.commandv('script-message-to', 'pip', 'off')
mp.commandv('script-message-to', 'pip', 'toggle')

About

mpv lua script implements Picture-in-Picture on Windows

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages