Home

Awesome

Feature

Fork自modern的mpv osc脚本,做出了以下修改:

  1. 修改外观布局、部分按键功能;
  2. 增加类似mpv内置osc的透明度调整选项(boxalpha);
  3. 加回可用快捷键控制可视性的功能(script-binding modernf/visibility);
  4. 多布局切换,可用3种布局(reduced/original/mid);
  5. 更多细节微调

mpv osc script forked from modern.Changed the layout\some buttons' action;make boxalpha could be customized in osc.conf;make osc-visibility could be adjusted with shortcut in input.conf,just like the builtin OSC


original layout

mpv-shot0019

reduced layout调整了按键布局,便于查看字幕轨和音轨;添加了ontop按键 this layout adjusted buttons' layout for easier checking sid&aid; added a button for 'ontop'

mpv-shot0001

Installation 安装

osc.lua --> "~~/scripts/" (!!REMOVE OTHER OSC SCRIPTS!! 移除其他的osc脚本!!)

material-design-iconic-font.ttf --> "~~/fonts" (FONT LINK) 复制图标字体文件

Then edit "~~/mpv.conf", add the following line to the end. 在mpv.conf中加下列代码关闭内置osc

osc=no

thumbnail 略缩图支持

Install thumbfast

Configuration 设置

Config file locates at "~~/script-opts/modernf.conf". Supported options are listed below.

    layout = "reduced"	            -- original/reduced/mid
    showonpause=yes/no              -- show osc and no hide timeout on pause
    timetotal=yes/no                -- display total time instead of remaining time?
    timems = false                  -- display timecodes with milliseconds
    visibility=auto/always/never    -- set visibility_mode(...)
    boxalpha=80                     -- alpha of the background box,0 (opaque) to 255 (fully transparent)
    idlescreen = yes/no             -- show logo and welcome when idle
    deadzone = 200                  -- area of mouse movement for osc showhide,pixel from bottom to top 
    showwindowed=yes/no             -- show OSC when windowed?
    showfullscreen=yes/no           -- show OSC when fullscreen?
    scalewindowed=1                 -- scaling of the controller when windowed
    scalefullscreen=1               -- scaling of the controller when fullscreen
    scaleforcedwindow=2             -- scaling when rendered on a forced window
    vidscale=yes/no                 -- scale the controller with the video?
    hidetimeout=500                 -- duration in ms until the OSC hides if no mouse movement. enforced non-negative for the user but internally negative is 'always-on'.
    fadeduration=200                -- duration of fade out in ms 0=no fade
    minmousemove=3                  -- minimum amount of pixels the mouse has to move between ticks to make the OSC show up
    iamaprogrammer=yes/no           -- use native mpv values and disable OSC internal track list management (and some functions that depend on it)
    font='mpv-osd-symbols'          -- default osc font
    seekrange=yes/no                -- show seekrange overlay
    seekrangealpha=128              -- transparency of seekranges
    seekbarkeyframes=yes/no         -- use keyframes when dragging the seekbar
    title='${media-title}'          -- string compatible with property-expansion to be shown as OSC title
    windowcontrols=auto/yes/no      -- whether to show window controls
    volumecontrol=yes/no            -- whether to show mute button and volumne slider
    processvolume=yes/no            -- volume bar show processd volume
    language=eng/chs                -- eng=English chs=Chinese

Button Actions

Some buttons may accept multiple mouse actions, here is a list:

(NOTE: mbtn = mouse button)

seekbar

playlist_back/forwad

cycle_audio/subtitle

ontop

info

按键行为

一些按键可能具有多种鼠标操作功能,下面列出一些:

进度条

上一个/下一个

音频/字幕

置顶

信息