Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't support linux? #124

Open
bluesiboy opened this issue Nov 6, 2023 · 7 comments
Open

don't support linux? #124

bluesiboy opened this issue Nov 6, 2023 · 7 comments

Comments

@bluesiboy
Copy link

as title

@LuckyPuppy514
Copy link
Owner

not support, I‘m not familiar with Linux Desktop
but you can add x-scheme-handler yourself to achieve it, maybe need bash script to analysis parameters

@MarkGhanz
Copy link

@bluesiboy I have the same problem too. The decoder on firefox is not good, and chrome/chromium's decoder only supports intel GPU. Someone submitted a bug report about 6 months ago and it got absolutely no attention from the devs.
司马谷歌,Linux上chromium硬件解码只支持intel,人在7840u framework laptop上。

@detiam
Copy link

detiam commented Dec 23, 2023

https://github.com/detiam/mpv-url
找到了个远古handle,修改了下能用了。
Play-With-MPV 设置里自定义播放器,都用框里默认的配置就行。记得每个参数后面都加个空格 否则参数会黏在一起出错!

@sf467
Copy link

sf467 commented May 28, 2024

https://github.com/detiam/mpv-url 找到了个远古handle,修改了下能用了。 Play-With-MPV 设置里自定义播放器,都用框里默认的配置就行。记得每个参数后面都加个空格 否则参数会黏在一起出错!

您好,可以指点一下如何修改那个仓库里的文件吗

@detiam
Copy link

detiam commented May 29, 2024

https://github.com/detiam/mpv-url 找到了个远古handle,修改了下能用了。 Play-With-MPV 设置里自定义播放器,都用框里默认的配置就行。记得每个参数后面都加个空格 否则参数会黏在一起出错!

您好,可以指点一下如何修改那个仓库里的文件吗

何意味,fork成你的仓库不就可以修改了。原仓库的话都6年没更新了

@sf467
Copy link

sf467 commented May 29, 2024

https://github.com/detiam/mpv-url 找到了个远古handle,修改了下能用了。 Play-With-MPV 设置里自定义播放器,都用框里默认的配置就行。记得每个参数后面都加个空格 否则参数会黏在一起出错!

您好,可以指点一下如何修改那个仓库里的文件吗

何意味,fork成你的仓库不就可以修改了。原仓库的话都6年没更新了

哦我说的是如何修改成可用,没事了,已经折腾好了

@shmilee
Copy link

shmilee commented Jun 26, 2024

Linux 自定义 mpv 和 https://greasyfork.org/zh-CN/scripts/416271-play-with-mpv 用法类似吗?

${EvideoUrl} 表示 videoUrl 进行 URL 编码后的值. 这个编码和 mpv-handler 的是不是不一样?

我已经测试成功的有

  1. mpv --ytdl
  2. 416271-play-with-mpv 配合 mpv-handler,占用了 mpv://, mpv-debug:// 协议

在尝试此项目脚本 444056-play-with-mpv过程中,选用自定义,点击后无反应。
配合 mpv-url,那和 mpv-handler 有冲突吗?

Edit: 看来有冲突,换个 mpv-url:// 调试出内容了. EvideoUrl 和 mpv-handler 也没关系。

由于协议未知,无法导航至
“mpv-url://"https%3A%2F%2Fxy112x22xy.mcdn.bi-1-100113.m4s" --audio-file="[https://xy112x20x12x38xy2409y8720yb201y300yy6y8402xy.mcdn.bilivideo.cn:4483/upgcxcode/87/94/1596769487/1596769487-1-30280.m4s?

mpv:// mpv-url://, 只要区分开两个协议,均可以正常工作了。

$ cat .local/share/applications/mpv-url.desktop

[Desktop Entry]
Name=mpv url handler
GenericName=Multimedia player
Comment=Handle URL Scheme mpv-url://
Exec=mpv-url %u
Terminal=false
Type=Application
MimeType=x-scheme-handler/mpv-url;
Icon=link
Categories=AudioVideo;Audio;Video;Player;TV;
NoDisplay=true
$ cat /usr/bin/mpv-url
#!/bin/bash

# delete "mpv-url://"
request=${1:10}
# "decode" uri components
decoded=$(printf '%b' "${request//%/\\x}")

# launch mpv
if ! mpv_output=$(sh -c "mpv $decoded"); then
    if which notify-send >/dev/null; then
        notify-send -u critical "$mpv_output"
    elif which kdialog >/dev/null; then
        kdialog --error "$mpv_output"
    elif which zenity >/dev/null; then
        zenity --error "$mpv_output"
    elif which xmessage >/dev/null; then
        xmessage "$mpv_output"
    fi
fi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants