Content
bilibili-chapter-generator avatar

bilibili-chapter-generator

Generate Bilibili-compatible video chapter lists from SRT subtitle files with strict format validation.

Introduction

The Bilibili Chapter Generator is an intelligent automation tool designed for video creators and content editors who need to streamline the process of adding navigation markers to Bilibili videos. By analyzing SRT subtitle files, the tool automatically segments video content based on thematic shifts, technical transitions, and logical flow, outputting a formatted timestamp list ready for immediate insertion into the Bilibili video editing portal. It is particularly useful for long-form tutorials, deep-dive technical reviews, and structured video series where time-based navigation is critical for viewer engagement.

  • Automatically processes SRT files by interfacing with srt-to-structured-data for accurate time-code extraction.

  • Intelligent segmentation that identifies content transitions and natural topic breaks.

  • Strict adherence to Bilibili's metadata requirements, including 3-10 chapter counts and the mandatory 00:00 starting requirement.

  • Built-in validation logic to ensure titles remain free of restricted special characters like colons, commas, or parentheses.

  • Provides concise, platform-optimized chapter titles (recommended 2-8 characters) for maximum readability.

  • Requires an input SRT file path or direct access to subtitle content within the session context.

  • The output format is explicitly tailored for Bilibili: MM:SS Title or HH:MM:SS Title.

  • Ensures minimum 5-second spacing between chapters to prevent navigation clutter and platform rejection.

  • Ideal for creators producing long-form educational content or documentation-heavy video projects.

  • The tool is best used after the initial video editing phase, allowing the AI to summarize segments effectively based on the full dialogue context.

Repository Stats

Stars
55
Forks
17
Open Issues
1
Language
Python
Default Branch
main
Sync Status
Idle
Last Synced
May 3, 2026, 06:06 AM
View on GitHub