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

b站新视频投屏PotPlayer只有720p了 #18

Open
Ahiok opened this issue Oct 27, 2023 · 2 comments
Open

b站新视频投屏PotPlayer只有720p了 #18

Ahiok opened this issue Oct 27, 2023 · 2 comments

Comments

@Ahiok
Copy link

Ahiok commented Oct 27, 2023

实测2021年的老视频还是可以1080p的,但是新发布的只能720p,请问这个问题能解决吗

@xfangfang
Copy link
Owner

如果用 PotPlayer 的话没有什么优雅的方式可以实现高清视频,用内置的mpv倒是可以,不过我现在暂时没有时间花在这个项目上了。

为什么 mpv 有可能而 PotPlayer 不行呢?

  1. 通过NVA插件可以拿到B站用户的cookie,之前是使用这个cookie通过投屏接口获取了没有跨域限制的视频链接。
  2. 在接口受限后,要想再拿到高清链接,只能通过模拟APP/PC/Web的方式获取,可以获取到的视频有两种。
  3. 1种是最高1080P flv视频,有跨域限制,请求时需要带 referrer: https://www.bilibili.com
  4. 1种是dash格式,清晰度不受限,视频流和音频流是分开的两个链接,同样需要带 referrer。
  5. 这两种貌似 PotPlayer 都没办法播,mpv 都可以。

@xfangfang
Copy link
Owner

@Ahiok

最近时间都花在 wiliwili 上,一个跨平台第三方b站客户端(基本把我手头有的所有系统都支持了,Android端因为怕有人往电视上安装所以暂未开源)。

wiliwili 内部也实现了DLNA投屏接收,如果有时间的话我会在那里重新实现一遍 NVA 协议,因为是用c++写的所以效率应该会更高一些,至少在软件打开速度上会比 Macast强一些。

目前 wiliwili 内部使用的 DLNA库 被我单独整理出来了:https://github.com/xfangfang/libpdr 如果感兴趣的话,可以把现在用 python 实现的 NVA 协议用 C++ 重写一下,欢迎PR。

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

2 participants