GithubHelp home page GithubHelp logo

bilibili_uwp_danmaku_converter's Introduction

哔哩哔哩 UWP 弹幕转换器

这是啥?

在整理自己从 哔哩哔哩 UWP 上缓存的视频时,发现这玩意儿缓存下来的弹幕不能被 弹弹play 识别。

然后就有了这个转换器。

具体区别

BV1z7411P7NJ 中的一条弹幕举例:

<!-- 从 bilibili api 获取的弹幕 -->
<d p="2.624,1,25,16777215,1582785415,4,c4a81af0,29173083004207107">来了来了</d>
<!-- 哔哩哔哩 UWP 缓存的弹幕 -->
<d p="29173083004207107,0,2624,1,25,16777215,1582785415,0,c4a81af0">来了来了</d>

从 bilibili api 获取的弹幕:

感谢 B 站弹幕笔记 - Fachep's Blog

<d p="{time},{type},{size},{color},{timestamp},{pool},{uid_crc32},{row_id}">{Text}</d>
  • time 弹幕在视频里的时间,以秒为单位
  • type 弹幕类型
  • size 字体大小
  • color 十进制的 RGB 颜色
  • timestamp 弹幕发送时间戳
  • pool 弹幕池
  • uid_crc32 发送者 uid 的 crc32
  • row_id 用于标记顺序和历史弹幕

而 哔哩哔哩 UWP 缓存的弹幕:

<d p="{row_id},{?},{time},{type},{size},{color},{timestamp},{?},{uid_crc32}">{Text}</d>

time 以毫秒为单位、没有 pool 及两项一直为 0 的属性外,其余跟从 bilibili api 获取的弹幕格式一致。

bilibili_uwp_danmaku_converter's People

Contributors

283375 avatar

Watchers

 avatar

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.