Closed Goshin closed 8 years ago
看到代码里有 tudou 弹幕的解析部分,但似乎与我下载回来的弹幕不兼容。
测试视频:http://www.tudou.com/albumplay/92J2xqpSxWY.html
弹幕地址:http://service.danmu.tudou.com/list?mat=0&mcount=1&ct=1001&uid=0&iid=132648348 其中 mcount, mat 似乎与分页有关,具体意义不明。 mat 表示时间起点(分钟),mcount 表示分钟数,如 mat=1&mcount=5 为时间 1 ~ 6 min 的弹幕。
mcount
mat
mat=1&mcount=5
截取了一部分。
{ "result": [ { "aid": 116018, "content": "土豆,我这一辈子都不会卖屏幕上出现的商品", "createtime": 1451060829000, "id": 61955942, "iid": 132648348, "ipaddr": 30254764, "level": 1, "lid": 0, "mat": 1, "ouid": 102599789, "playat": 114000, "propertis": "{\"color\":3646691,\"pos\":4,\"effect\":0,\"size\":1}", "status": 99, "type": 1, "uid": 97773723, "ver": 1 }, { "aid": 116018, "content": "假发:嘀嘀嘀,待机中", "createtime": 1451057680000, "id": 61954013, "iid": 132648348, "ipaddr": 2002405118, "level": 1, "lid": 0, "mat": 1, "ouid": 102599789, "playat": 118000, "propertis": "", "status": 99, "type": 1, "uid": 469328303, "ver": 1 } ], "count": 165, "filtered": false }
playat 是出现的时间毫秒数。 弹幕的样式都移到了 propertis 里,与原来的样式属性意义相同。
playat
propertis
我的解析实现:https://github.com/Goshin/danmaku2ass/commit/f530b3789edd92dfd97c3c133c05e6893f94aaa3?diff=unified
谢谢你! :bow: 我很久没有去土豆弹幕站观看了,看来确实改版了。
能否烦请你发一个 Pull Request,以便让我把你的改进合并到主分支?
不必客气。
Fixed in #30
另外我在 https://github.com/Goshin/Yatto 集成了Danmaku2ASS 和 Tudou 弹幕视频的解析播放。
支持。我把它写到danmaku2ass的readme里去。
看到代码里有 tudou 弹幕的解析部分,但似乎与我下载回来的弹幕不兼容。
测试视频:http://www.tudou.com/albumplay/92J2xqpSxWY.html
弹幕地址:http://service.danmu.tudou.com/list?mat=0&mcount=1&ct=1001&uid=0&iid=132648348
其中mcount
,mat
似乎与分页有关,具体意义不明。mat
表示时间起点(分钟),mcount
表示分钟数,如mat=1&mcount=5
为时间 1 ~ 6 min 的弹幕。格式
截取了一部分。
playat
是出现的时间毫秒数。 弹幕的样式都移到了propertis
里,与原来的样式属性意义相同。我的解析实现:https://github.com/Goshin/danmaku2ass/commit/f530b3789edd92dfd97c3c133c05e6893f94aaa3?diff=unified