GithubHelp home page GithubHelp logo

Comments (6)

m13253 avatar m13253 commented on August 18, 2024

我播放成功了。
请问:

  1. 你的 Danmaku2ASS 模块版本是否为最新?(删了 danmaku2ass.py 再启动会自动更新)
  2. 你的 Python3 版本是多少?(启动 python3 第一行有提示)
  3. 其它视频可以播放吗?

from bilidan.

skt041959 avatar skt041959 commented on August 18, 2024
  1. Danmaku2ASS是最新的
  2. Python3.4
  3. 给出的4个视频,其他三个都可以

from bilidan.

m13253 avatar m13253 commented on August 18, 2024

请加上 -d -v 两个参数,它会提供更多有价值的信息。
谢了。

from bilidan.

skt041959 avatar skt041959 commented on August 18, 2024

$ ./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 avatar m13253 commented on August 18, 2024

这是修 m13253/danmaku2ass#16 的时候的副作用。
正在抢修中。

from bilidan.

m13253 avatar m13253 commented on August 18, 2024

已修复。请删除现有的 danmaku2ass.py 文件。
下次启动的时候会自动更新。
如果有问题请再告诉我。

from bilidan.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.