# bilibili_video_to_mp4 **Repository Path**: suichenTree/bilibili_video_to_mp4 ## Basic Information - **Project Name**: bilibili_video_to_mp4 - **Description**: b战视频转换为mp4 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-20 - **Last Updated**: 2026-02-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # BiliBili_video_to_MP4 该python 脚本工程主要是将bilibili视频,转换为mp4格式。支持带弹幕。 使用python运行converter.py文件即可。 该代码仓库是在 BiliCache2MP4 代码仓基础上进行了部分修改。 [参考仓库 BiliCache2MP4](https://github.com/kaixinol/BiliCache2MP4) # 功能 哔哩哔哩 BiliBili 视频缓存的\*.m4s 文件批量转换为.mp4 文件工具。 - [x] 支持同时将弹幕转换 - [x] 支持每个视频组一个文件夹 - [x] 支持旧 BLV 视频 - [x] 支持提取 NFO 信息 # 用法 1. 需要先行安裝`ffmpeg`,并将其添加到环境变量中。 2. 下载该python文件,保存到本地。 3. 导入依赖包 ```bash pip install loguru curl_cffi ``` 4. 运行converter.py文件即可 ```bash python converter.py 缓存文件夹 -o 释放文件夹 -danmaku -folder ## 举例 python converter.py D:\BilibiliCache -o D:\BilibiliMP4 -danmaku -folder ``` ## Usage ```text usage: converter.py [-h] [-f FFMPEG] [-folder] [-danmaku] [-o OUTPUT] [-t THREAD] [-nfo] FILE positional arguments: FILE b站缓存文件文件夹 options: -h, --help show this help message and exit -f FFMPEG, --ffmpeg FFMPEG FFmpeg的路径,默认从环境变量中寻找 -folder 是否每一个视频一个文件夹 -danmaku 是否转换.xml到弹幕文件.ass -o OUTPUT, --output OUTPUT 释放的位置,默认为本脚本所在目录 -t THREAD, --thread THREAD 多线程数,默认为cpu当前核数 -nfo 是否添加nfo文件 ```