GithubHelp home page GithubHelp logo

Comments (11)

hooke007 avatar hooke007 commented on August 20, 2024

这个问题怎么说呢。。
这确实符合 screenshot window 的预期,但是当前的release版本我没给出(绑定)按键提示(下个版本会修改,参见lite分支的提交)

我不喜欢 screenshot video 的截图结果,你也可以选择重绑定到对应命令。

s screenshot # 截屏(有字幕、有OSD) 输出原始分辨率
S screenshot video # 截屏(无字幕、无OSD) 输出原始分辨率
Ctrl+s screenshot window # 截屏(有字幕、有OSD) 输出实际分辨率

from mpv_lazy.

Youxikong avatar Youxikong commented on August 20, 2024

我自己绑个按键吧。这个不适合放在右键菜单。

from mpv_lazy.

hooke007 avatar hooke007 commented on August 20, 2024

很多功能都不适合用菜单触发(例如均衡器),依然选择放在那里的原因是菜单的一个功能是按钮提示

from mpv_lazy.

hooke007 avatar hooke007 commented on August 20, 2024

尝试了一圈没有找到完美的解决方案,当前的提交只是堪用的水平。

from mpv_lazy.

dyphire avatar dyphire commented on August 20, 2024

比起直接修改 uosc.lua 脚本,我更推荐使用第三方脚本来实现延时命令。比如此脚本:delay-command.lua
针对这一问题的使用案例:

s                screenshot subtitles                                            #menu: 视频 > 截屏 > 同源尺寸-有字幕-无OSD-单帧
S                screenshot video                                                #menu: 视频 > 截屏 > 同源尺寸-无字幕-无OSD-单帧
CTRL+s           script-message delay-command 0.3 screenshot window              #menu: 视频 > 截屏 > 实际尺寸-有字幕-有OSD-单帧
ALT+s            subtitles+each-frame                                            #menu: 视频 > 截屏 > 同源尺寸-有字幕-无OSD-逐帧
ALT+S            screenshot video+each-frame                                     #menu: 视频 > 截屏 > 同源尺寸-无字幕-无OSD-逐帧
CTRL+S           script-message delay-command 0.3 screenshot window+each-frame   #menu: 视频 > 截屏 > 实际尺寸-有字幕-有OSD-逐帧

from mpv_lazy.

hooke007 avatar hooke007 commented on August 20, 2024

尝试了一圈

你说的这个也属于我说的废弃方案。一开始我是在input_plus里加新命令然后uosc去绑定。
但是这个条目属于我的默认菜单内容,捆绑一个(非强相关的)外部脚本的命令不理想,相当于强制要安装另外的脚本。(虽然之前我已经做过了这样的反面案例)
另外延迟零点几秒截屏这种需求实在过于奇葩,也是为了uosc才专门搞了这样的命令,放在uosc脚本内成了最终的方案。

edit:
我当前提交的设想是通过uosc的内部函数临时隐藏ui,结果就是我想多了显然没有提供这样的功能,于是注释掉了大部分内容;mpv也没提供临时停用libass的功能。

from mpv_lazy.

dyphire avatar dyphire commented on August 20, 2024

这种考虑可以理解。如果没有其他延迟命令需求的话单独为截屏这一个案例引入一个新的脚本确实不太合适

from mpv_lazy.

hooke007 avatar hooke007 commented on August 20, 2024

我把事情想简单了,*_persistency 的存在又破坏了我另一个新的想法(原本打算看看控件栏截屏的可行性)。
我选择只绕过菜单/暂停指示/背景帘幕这三个元素

from mpv_lazy.

hooke007 avatar hooke007 commented on August 20, 2024

我基本满意当前的状态。
@Youxikong 请测试

from mpv_lazy.

Youxikong avatar Youxikong commented on August 20, 2024

简单试了下,截图已经不包含菜单了。

from mpv_lazy.

hooke007 avatar hooke007 commented on August 20, 2024

一个可行的完美途径参考 tomasklaen/uosc@c2b10b6
先不管了,目前的处理够用了

from mpv_lazy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.