Giter Club home page Giter Club logo

Comments (6)

Gerome100 avatar Gerome100 commented on September 4, 2024

image
I have a similar problem but I have to say that I use the English branch

from mpv-config.

zhongfly avatar zhongfly commented on September 4, 2024

I have a similar problem but I have to say that I use the English branch

Because that script need luasocket, but shinchiro's build don't have it.Download mpv from https://github.com/dyphire/mpv-winbuild/releases

from mpv-config.

verygoodlee avatar verygoodlee commented on September 4, 2024

识别不了 Get-FileHash 可能是powershell版本低于5,但是也不应该啊,powershell4是win8.1时代的东西了,win10内置的就是5了,执行下powershell $PSVersionTable.PSVersion检查版本

from mpv-config.

dyphire avatar dyphire commented on September 4, 2024

第一个问题:

这里提示Get-Hash不能识别;

识别不了 Get-FileHash 可能是powershell版本低于5,但是也不应该啊,powershell4是win8.1时代的东西了,win10内置的就是5了,执行下powershell $PSVersionTable.PSVersion检查版本

问题出在这里:

path = utils.join_path(mp.get_property('working-directory'), path)

history-bookmark.lua 代码中使用了 utils.join_path 来获取绝对路径,而 utils.join_path 无法正确处理和组合类似./../这样的相对路径,它能接受的相对路径形式是mpv test.mkvmpv subdir\test.mkv
仅针对.\的简单修复方式,..\不可能得到修复,应该也没人在播放器中这么用:

path = utils.join_path(mp.get_property('working-directory'), path:gusb('^%.[\\/]',''))

当系统路径中的lua5.4优先使用,会出现调用错误;如果把系统中scoop安装的lua5.4 uninstall,问题不复现,这个要怎么设置mpv调用自己目录下的lua

依赖问题自行解决,这是 mpv 的问题,和此配置无关

from mpv-config.

verygoodlee avatar verygoodlee commented on September 4, 2024

normalize-path可以解决,但这个命令是近几个月才引入的,旧版本用不了

local utils = require('mp.utils')
print(mp.command_native({'normalize-path', utils.join_path('D:\\dir', '..\\a.mp4')}))
print(mp.command_native({'normalize-path', utils.join_path('D:\\', '.\\a.mp4')}))

输出
image

甚至可以不用手动拼working-directory mp.command_native({'normalize-path', '.\\a.mp4'}) 会自动把工作目录拼上

from mpv-config.

dyphire avatar dyphire commented on September 4, 2024

在提交 d3e1942 中为较新的 mpv 使用 normalize-path 命令处理路径

from mpv-config.

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.