What the converter does
Bilibili stores comments as XML: each <d p="12.5,1,25,16777215,…">text</d> line holds the time in seconds, the comment mode, the font size and the colour. The converter reads those and writes an ASS subtitle line for each one.
- Scrolling comments (modes 1 to 3) move right to left over the scroll time you set. Each one gets its own row, so comments posted at the same moment don't pile on top of each other. Longer comments move faster, as on Bilibili.
- Top and bottom comments (modes 5 and 4) stay centred for four seconds and stack downwards or upwards.
- Reverse comments (mode 6) scroll left to right.
- Colours and the small, normal and large sizes carry over. Text is stripped of ASS override tags, so a comment can't restyle or reposition the rest of the file.
Getting the XML in the first place
Paste the video link into our subtitle and danmaku downloader and open the Danmaku tab. It can save the XML or convert to ASS directly, with default settings. Use this page when you already have XML files from another tool, want different settings, or want to convert a whole folder of them.
The XML holds the comments Bilibili currently serves for the video, which is usually the most recent few thousand, not every comment ever posted.