-
Notifications
You must be signed in to change notification settings - Fork 285
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 站 m4s 格式视频音频分离的流解析?--新的DASH API #519
Labels
Comments
annie 已经用上 DASH API 了 |
…… 严重的挫伤了我对 @iawia002 的编程严谨信心 …… 都没想到 annie 能给出这种输出 😤 😤 😤 |
haha,并不算。其实和 iawia002 还算熟,开玩笑的。另,这不是大问题,不需要解决。只是我没想到会遭遇低级错误 |
目前 ykdl 还不支持 DASH 解析,写了个用 annie 解析 ,mpv 来播放 bili 的脚本,目前这 cdn 缓冲速度,简直太快了,不知道 b 站这个穷鬼能这么烧几个月钱。。。。 #!/bin/bash
u="$@"
echo ">>> playing $u"
json=$(annie -j $u | jq -r '.[0].streams."80".parts')
url_1=$(echo $json | jq -r '.[0].url')
url_2=$(echo $json | jq -r '.[1].url')
ext_1=$(echo $json | jq -r '.[0].ext')
if [[ $ext_1 =~ m4a ]]; then
temp=$url_1
url_1=$url_2
url_2=$temp
fi
mpv --referrer=$u --audio-file=$url_2 $url_1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
b 站的 cdn 烂的要死,偶然发现 b 站还有这样的音频,视频流分离的网页播放,可以轻松跑满200兆宽带!!
比如这个页面,用视频抓流 https://www.bilibili.com/v/game/match/singledata/6525
可见 m4s 后缀的三个流,大致这样:
都来讨论下,如何获取流地址呢? @iawia002
The text was updated successfully, but these errors were encountered: