yangyi-student/vip-stream-resolver
About
Windows desktop video-link resolver with a loopback HLS player, offline-tested security boundaries and bilingual documentation.
Design & MediaWhat you can do
- Link handling - Normalises protocols, recognises major platforms and already-resolved links
- Bilibili channel - Native bangumi / film / video resolution: official playurl (durl mp4 or dash) first, then same-title same-episode m3u8 from aggregation sites — see docs/BILIBILI.md
- Tiered fallback - Probes parsers.json endpoints by tier after the primary endpoint fails
- Concurrent racing - Same-tier endpoints are raced; the first usable result wins
Measured star growth
- in 24h
- Collecting history
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Original
VIP Stream Resolver
把视频播放页链接变成能在浏览器里直接播的 HLS 流
本地回环播放 · 无需安装播放器 · 源链接只发给可配置的第三方端点
中文 · English · 使用指南 · 安全策略 · 审计报告
作者 & 维护者 Author & Maintainer @yangyi-student
[!IMPORTANT] 本项目把用户提供的视频页链接发送给第三方解析端点,并在本机回环地址上播放返回的媒体地址。 使用前请阅读免责声明,并确认你的使用方式符合所在地法律与平台条款。
中文
这是什么
一个 Windows 桌面小工具:粘贴腾讯视频 / 优酷 / 爱奇艺 / 哔哩哔哩等平台的播放页链接,程序把链接交给第三方解析端点,拿到媒体清单后在本机 127.0.0.1 上起一个播放器服务,用浏览器播放。
它不是下载器,不托管任何视频,不保存账号信息。

功能一览
| 能力 | 说明 |
|---|---|
| 链接识别 | 自动补全协议,识别主流平台与解析直链 |
| 平台入口 | 爱奇艺 / 腾讯视频 / 优酷视频 / 哔哩哔哩 四个快捷入口,点一下开官网,粘贴链接就地解析 |
| 启动声明 | 每次启动弹窗:片源来自第三方聚合站,画面中广告真假未知,因轻信广告导致的损失由用户自负 |
| B 站通道 | 番剧 / 影视 / 投稿原生解析:官方 playurl 直取(durl mp4 或 dash),失败自动转聚合站同名同集 m3u8,详见 docs/BILIBILI.md |
| 多线路回退 | 主端点失败后按 tier 逐层探测 parsers.json 中的备用线路 |
| 并发抢跑 | 同类线路并发探测,先出可用结果者胜出 |
| 本地播放器 | 内嵌 hls.js 1.5.17,直连与本机代理两种模式,支持快进、全屏、重载 |
| 实时日志 | 解析过程逐条显示,查询参数自动脱敏 |
| 可配置 | 线路、超时、优先级全部写在 parsers.json,无需重新打包 |
| 图形界面 | Tk Canvas 自绘深色工作台,高 DPI 自适应 |
工作方式
flowchart LR
A["播放页链接"] --> B["第三方解析端点"]
B --> C{"返回媒体清单?"}
C -- 是 --> D["校验协议 / 大小 / 公网地址"]
C -- 否 --> E["外部标签页打开解析页"]
D --> F["127.0.0.1 本地服务"]
F --> G["浏览器 hls.js 播放"]
本地服务只绑定回环地址,每次启动生成随机会话令牌;所有外部请求与重定向都做协议、凭据与私网地址检查。
快速开始
方式一:直接运行 EXE
vip-stream-resolver.exe
方式二:从源码运行(需要 Python 3.11+ 与 Tk)
git clone https://github.com/yangyi-student/vip-stream-resolver.git
cd vip-stream-resolver
python vip_stream_resolver.py
粘贴链接后按 Enter 开始解析。
界面与快捷键
| 按键 | 作用 |
|---|---|
Enter |
解析并播放 |
Ctrl + Enter |
解析并复制完整结果链接 |
Esc |
清空输入框 |
F5 |
用上一条链接重新解析 |
| 鼠标滚轮 | 浏览日志并暂停自动跟随 |
数据流与网络边界
| 环节 | 行为 |
|---|---|
| 提交链接 | 源页 URL 先发送至默认主端点 api-api.789jiexi.net,失败后按层级探测 parsers.json 中的备用线路 |
| 第三方返回 | 可能是媒体清单,也可能只是解析页;解析页改为显式点击后在外部标签页打开 |
| 本地服务 | 仅 127.0.0.1,随机端口,随机会话令牌 + Host / Origin / Sec-Fetch-Site 校验 |
| 出站请求 | 仅允许 HTTP(S),拒绝内嵌凭据、私网、回环、保留域名与组播地址,重定向逐跳复查 |
| TLS | 使用系统信任库验证证书链与主机名 |
| 日志 | 界面与命令行输出移除 URL 查询串;只有你主动按 Ctrl+Enter 才复制完整链接 |
配置
parsers.json 最多 32 条线路,每条包含 name、带 url= 或 jx= 目标参数的 url、0–19 的 tier,以及可选的 1–60 秒 timeout:
{
"version": 2,
"parsers": [
{ "name": "Example resolver", "url": "https://resolver.example/parse?url=", "tier": 0, "timeout": 8 }
]
}
字段约束见 parsers.schema.json。resolver.example 仅用于展示格式,不是内置线路;配置存在但格式错误时会明确报错,不会静默换一组服务。
B 站凭据:大会员 Cookie 写在同目录 bili.json 的 sessdata 字段(也可用环境变量 BILI_SESSDATA 覆盖)。留空时会员集只能拿 180 秒试看,会自动走聚合兜底。另有开关 prefer_original:优先播采集站原始 mp4(vod_down_url)。该文件已加入 .gitignore,不会随仓库分发。完整字段说明见 docs/BILIBILI.md。
测试与构建
python -m unittest discover -s tests -v # 90 项离线测试,不访问外网
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements-build.txt
.\.venv\Scripts\python.exe -m pip check
.\build.ps1 # 测试 → EXE → ZIP → SHA256SUMS
产物写入 dist/ 与 release/,不进入 Git。构建依赖按精确版本与 wheel SHA-256 锁定。
更换图标:替换 assets/icon-source.jpg 后执行 python tools/make_icons.py(需要 Pillow)。
项目结构
vip_stream_resolver.py 入口 · 解析引擎 · 桌面界面 · 本地播放服务
net_security.py TLS / URL / 重定向 / 请求来源 / 读取上限
player.html 本地播放器页面
hls.min.js hls.js 1.5.17(仅移除缺失的 source map 引用)
parsers.json 线路配置 parsers.schema.json 配置规范
app.ico / app.png 程序图标与窗口图标
assets/ · tools/ 图标素材、图标生成、单次发布脚本
docs/ 用户指南 · 开源前审计报告
licenses/ Apache-2.0 与 hls.js 许可正文
tests/ 离线测试 · 显式在线集成脚本
常见问题
解析失败怎么办?
先看界面下方的日志:每轮探测的结果和原因都在里面。可以在播放器点“重载”,或回主界面按 F5 重新解析;临时媒体地址有时效,过期需要重新解析。
为什么有时会打开一个外部网页?
部分线路只提供解析页而不是媒体清单。这类结果不会嵌入本地播放器,而是给出一个外部链接,由你决定是否打开。
会不会上传我的观看记录?
程序本身不收集数据,也没有自更新和统计上报。但源页链接会发送给你配置的第三方端点;链接里的视频 ID 或签名参数会随之传递,分享日志前请自行检查。
支持哪些系统?
64 位 Windows 10 / 11,浏览器需要 Chrome 或 Edge(支持 MediaSource)。
贡献者
| 角色 | 身份 |
|---|---|
| 作者 / 维护者 | @yangyi-student |
贡献流程与代码约定见 CONTRIBUTING.md,漏洞反馈见 SECURITY.md,社区行为准则见 CODE_OF_CONDUCT.md。
免责声明
下载、运行或分发本项目,即视为你已阅读并理解以下内容。
- 工具性质:本项目是客户端工具,把用户提供的播放页链接交给第三方解析端点,并在本机回环地址上播放第三方返回的媒体地址。它不提供、不托管、不缓存、不分发任何视频内容。
- 无关联:本项目与腾讯视频、优酷、爱奇艺、芒果 TV 等平台,以及
parsers.json中列出的任何第三方服务,均无隶属、合作、授权或背书关系。平台名称、商标与内容归各自权利人所有。 - 依赖第三方:解析线路由第三方维护,其可用性、返回内容、日志记录与合规状况不受本项目控制。线路失效、返回异常内容或服务变更,不属于本项目的缺陷范围。
- 不含破解组件:仓库中不包含账号登录、会员凭据、付费绕过或 DRM 解密实现;程序能力完全取决于第三方端点返回的结果。
- 片源与广告:视频画面中的贴片、中插、悬浮、水印、二维码、推广链接等广告均由第三方插入,本项目无法核实其真实性、合法性与安全性。请勿扫码、不要转账、不要填写个人信息;因轻信视频中广告而造成的任何损失,与本项目作者无关。
- 使用责任:请在所在地区法律、平台服务条款与版权要求允许的范围内使用;不得用于商业传播、二次分发受版权保护的内容或其他违法用途。因使用产生的后果由使用者自行承担。
- 无担保:软件按 MIT 许可证“现状”提供,不附带任何明示或默示担保,包括适销性、特定用途适用性与不侵权担保。
- 责任限制:在适用法律允许的最大范围内,作者与贡献者不对因使用或无法使用本项目而产生的任何直接、间接、附带或后果性损失承担责任。
- 权利通知:若权利人认为本项目或其文档存在不当之处,请通过仓库 Issue 或 Security 渠道联系,维护者核实后会及时处理。
许可
原始代码采用 MIT License;hls.js 采用 Apache-2.0,来源、哈希与许可见 THIRD_PARTY_NOTICES.md 与 licenses/。外部平台名称、媒体与服务归各自权利人。
English
What it is
A small Windows desktop tool: paste a video-page link, hand it to a third-party resolver endpoint, then play the returned media through a player served from 127.0.0.1 in your browser.
It is not a downloader, it hosts no video, and it stores no account data.

Features
| Capability | Detail |
|---|---|
| Link handling | Normalises protocols, recognises major platforms and already-resolved links |
| Bilibili channel | Native bangumi / film / video resolution: official playurl (durl mp4 or dash) first, then same-title same-episode m3u8 from aggregation sites — see docs/BILIBILI.md |
| Tiered fallback | Probes parsers.json endpoints by tier after the primary endpoint fails |
| Concurrent racing | Same-tier endpoints are raced; the first usable result wins |
| Local player | Bundled hls.js 1.5.17 with direct and loopback-proxy modes, seek, fullscreen, reload |
| Live log | Per-attempt diagnostics with query strings redacted |
| Configurable | Endpoints, timeouts and priority live in parsers.json; no rebuild needed |
| Native UI | Self-drawn Tk Canvas workbench with high-DPI scaling |
How it works
flowchart LR
A["Video page URL"] --> B["Third-party endpoint"]
B --> C{"Media playlist?"}
C -- yes --> D["Scheme / size / public-address checks"]
C -- no --> E["Open resolver page in a new tab"]
D --> F["127.0.0.1 local service"]
F --> G["Browser hls.js playback"]
The local service binds to loopback only and mints a random per-process session token; every outbound request and redirect is checked for scheme, embedded credentials and private addresses.
Quick start
Run the executable
vip-stream-resolver.exe
Run from source (Python 3.11+ with Tk)
git clone https://github.com/yangyi-student/vip-stream-resolver.git
cd vip-stream-resolver
python vip_stream_resolver.py
Paste a link and press Enter.
Shortcuts
| Key | Action |
|---|---|
Enter |
Resolve and play |
Ctrl + Enter |
Resolve and copy the full result link |
Esc |
Clear the input |
F5 |
Retry with the previous link |
| Wheel | Scroll the log, pausing auto-follow |
Network boundaries
| Stage | Behaviour |
|---|---|
| Submission | The page URL goes first to the default endpoint api-api.789jiexi.net, then to parsers.json fallbacks by tier |
| Third-party reply | Either a media playlist or a resolver page; pages open in an explicit new tab |
| Local server | 127.0.0.1 only, random port, random session token, Host / Origin / Sec-Fetch-Site checks |
| Outbound calls | HTTP(S) only; embedded credentials, private, loopback, reserved and multicast addresses rejected; every redirect re-checked |
| TLS | System trust store, certificate chain and hostname verification |
| Logging | Query strings stripped from UI and CLI output; only an explicit Ctrl+Enter copies the full link |
Configuration
parsers.json accepts up to 32 endpoints; each entry has a name, a url carrying a url= or jx= target parameter, a tier from 0 to 19, and an optional timeout from 1 to 60 seconds:
{
"version": 2,
"parsers": [
{ "name": "Example resolver", "url": "https://resolver.example/parse?url=", "tier": 0, "timeout": 8 }
]
}
The schema lives in parsers.schema.json. resolver.example documents the format only and is not a bundled endpoint; a malformed existing file reports an error instead of silently switching services.
Bilibili credentials: put the premium (大会员) cookie in sessdata inside a sibling bili.json, or override it with the BILI_SESSDATA environment variable. Leaving it empty limits premium episodes to the official 180-second preview, and the engine falls back to aggregation sources automatically. One switch sits alongside it: prefer_original plays the site's uploaded original mp4. The file is git-ignored; full field reference in docs/BILIBILI.md.
Test and build
python -m unittest discover -s tests -v # 90 offline tests, no network access
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements-build.txt
.\.venv\Scripts\python.exe -m pip check
.\build.ps1 # tests → EXE → ZIP → SHA256SUMS
Artifacts land in dist/ and release/ and stay out of Git. Build dependencies are pinned by exact version and wheel SHA-256.
To change the icon, replace assets/icon-source.jpg and run python tools/make_icons.py (Pillow required for that step only).
Project layout
vip_stream_resolver.py entry point, resolver engine, desktop UI, local player service
net_security.py TLS, URL, redirect, request-origin and read limits
player.html local player page
hls.min.js hls.js 1.5.17 (only the missing source-map reference removed)
parsers.json endpoint config parsers.schema.json its schema
app.ico / app.png application and window icons
assets/ · tools/ icon artwork, icon generation, single-shot publish script
docs/ user guide and pre-release audit report
licenses/ Apache-2.0 and hls.js license text
tests/ offline suite and explicit online integration script
FAQ
Resolution failed. What now?
Read the log panel: each round reports what was tried and why it failed. Use “reload” in the player or press F5 in the main window; temporary media URLs expire, so re-resolve after a while.
Why did a web page open?
Some endpoints return a resolver page rather than a media playlist. Those results are never embedded in the local player; you get an external link and choose whether to open it.
Does it upload my viewing history?
The program collects nothing and has no telemetry or self-updater. The page URL is still sent to the endpoints you configure, including any video IDs or signature parameters it contains; review logs before sharing them.
Contributors
| Role | Identity |
|---|---|
| Author / maintainer | @yangyi-student |
See CONTRIBUTING.md for the workflow and code conventions, SECURITY.md for vulnerability reports, and CODE_OF_CONDUCT.md for community expectations.
Disclaimer
Downloading, running, or redistributing this project means you have read and understood the following.
- What this is. A client-side tool that hands a user-supplied page URL to third-party resolver endpoints and plays the media address those endpoints return over a loopback address on your own machine. It does not provide, host, cache, or distribute any video content.
- No affiliation. This project has no affiliation with, partnership with, authorization from, or endorsement by Tencent Video, Youku, iQIYI, Mango TV, any other platform, or any endpoint listed in
parsers.json. Platform names, trademarks, and content belong to their respective owners. - Third-party dependency. Resolver endpoints are operated by third parties. Their availability, returned content, logging, and compliance are outside this project's control. A dead endpoint, unexpected response, or service change is not a defect in this project.
- No circumvention components. The repository contains no account login, membership credentials, payment bypass, or DRM decryption implementation; the program's capability is limited to whatever a third-party endpoint returns.
- Sources and ads. Pre-roll, mid-roll, overlay, watermark, QR-code and promo-link ads inside the video are inserted by third parties; this project cannot verify their authenticity, legality or safety. Do not scan those codes, send money, or enter personal data. Any loss caused by trusting such an ad is unrelated to the author of this project.
- Your responsibility. Use this project only where the law of your jurisdiction, platform terms of service, and copyright requirements allow it. Do not use it for commercial distribution, redistribution of copyrighted material, or any unlawful purpose. You bear the consequences of your own use.
- No warranty. The software is provided "AS IS" under the MIT License, without warranties or conditions of any kind, express or implied, including merchantability, fitness for a particular purpose, and non-infringement.
- Limitation of liability. To the maximum extent permitted by applicable law, the author and contributors are not liable for any direct, indirect, incidental, or consequential loss arising from the use of, or inability to use, this project.
- Rights notices. If a rights holder believes this project or its documentation is inappropriate, contact the maintainer through the repository's Issue or Security channel; verified concerns will be addressed promptly.
License
Original code is released under the MIT License. hls.js is Apache-2.0; provenance, hashes and license text are in THIRD_PARTY_NOTICES.md and licenses/. External platform names, media and services remain with their respective owners.
Explore related projects
Loading…