Comments (6)
我播放成功了。
请问:
- 你的 Danmaku2ASS 模块版本是否为最新?(删了
danmaku2ass.py
再启动会自动更新) - 你的 Python3 版本是多少?(启动
python3
第一行有提示) - 其它视频可以播放吗?
from bilidan.
- Danmaku2ASS是最新的
- Python3.4
- 给出的4个视频,其他三个都可以
from bilidan.
请加上 -d -v 两个参数,它会提供更多有价值的信息。
谢了。
from bilidan.
$ ./bilidan.py -d -v http://www.bilibili.com/video/av314/
DEBUG: Detected mpv version: 0.8.0
INFO: Loading video info...
DEBUG: Fetch: http://api.bilibili.com/view?appkey=85eb6835b0a1034e&page=1&type=json&id=314&sign=babbb44b2d7e41743b016ac7d8221b62
INFO: Got video cid: 529622
INFO: Loading video content...
DEBUG: Fetch: http://interface.bilibili.com/playurl?appkey=85eb6835b0a1034e&sign=d5bd30833fb98756df789c2ff2d0da7c&cid=529622
INFO: Got media URLs:
1: http://edge.v.iask.com.lxdns.com/83873314.hlv?KID=sina,viask&Expires=1424966400&ssig=HA5drDRw6H
INFO: Determining video resolution...
DEBUG: Executing: ffprobe -icy 0 -loglevel repeat+warning -print_format json -select_streams v -show_streams -timeout 60000000 -user-agent 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36' -- 'http://edge.v.iask.com.lxdns.com/83873314.hlv?KID=sina,viask&Expires=1424966400&ssig=HA5drDRw6H'
INFO: Video resolution: 512x384
INFO: Loading comments...
DEBUG: Fetch: http://comment.bilibili.com/529622.xml
INFO: Invoking Danmaku2ASS, converting to /tmp/tmp-danmaku2ass-6utyyuny.ass
ERROR: '8'
Traceback (most recent call last):
File "./bilidan.py", line 466, in
sys.exit(main())
File "./bilidan.py", line 451, in main
retval = retval or biligrab(url, debug=args.debug, verbose=args.verbose, media=args.media, cookie=args.cookie, quality=quality, source=source, mpvflags=mpvflags, d2aflags=d2aflags)
File "./bilidan.py", line 296, in biligrab
comment_out = convert_comments(video_metadata['cid'], video_size)
File "./bilidan.py", line 207, in convert_comments
log_or_raise(e, debug=debug)
File "./bilidan.py", line 406, in log_or_raise
raise exception
File "./bilidan.py", line 205, in convert_comments
danmaku2ass.Danmaku2ASS([comment_in], comment_out, *_d2a_args)
File "/home/skt/code/BiliDan/danmaku2ass.py", line 777, in Danmaku2ASS
comments = ReadComments(input_files, font_size)
File "/home/skt/code/BiliDan/danmaku2ass.py", line 805, in ReadComments
comments.extend(CommentProcessor(FilterBadChars(f), font_size))
File "/home/skt/code/BiliDan/danmaku2ass.py", line 181, in ReadCommentsBilibili
yield (float(p[0]), int(p[4]), i, c, {'1': 0, '4': 2, '5': 1, '6': 3}[p[1]], int(p[3]), size, (c.count('\n')+1)_size, CalculateLength(c)*size)
KeyError: '8'
from bilidan.
这是修 m13253/danmaku2ass#16 的时候的副作用。
正在抢修中。
from bilidan.
已修复。请删除现有的 danmaku2ass.py 文件。
下次启动的时候会自动更新。
如果有问题请再告诉我。
from bilidan.
Related Issues (20)
- Mac 10.11.3 Error app has been blocked , can't get 'cid' from ... HOT 7
- Error message: app has been blocked. HOT 2
- 部分视频无法播放 HOT 3
- 为什么会播放失败 HOT 3
- Application broken.. HOT 11
- Can not get 'cid' HOT 1
- ERROR: Can not get 'cid' HOT 1
- mpv version detection HOT 3
- Bilibili 新增了番剧字站,URL 格式发生改变 HOT 9
- Bangumi Parse Issue HOT 4
- 请教一下为什么我无法转换B站弹幕呢?提示:ValueError: Unknown comment file format HOT 1
- ERROR: Invalid URL: http://www.bilibili.com/av5697545/ HOT 7
- fake ip功能失效 HOT 2
- ERROR: Can not get valid media URLs. HOT 3
- Can't use oversea source HOT 4
- is it possible that I play an local video from bilibili which i download via you-get HOT 2
- mpv全屏后无法退出全屏 HOT 2
- "Error message: overspeed" when trying to acquire cid HOT 5
- ERROR: 'bytes' object has no attribute 'hex' HOT 4
- Please add support to support https. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bilidan.