# BiliCache2MP4 **Repository Path**: lvyukang/BiliCache2MP4 ## Basic Information - **Project Name**: BiliCache2MP4 - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-29 - **Last Updated**: 2025-10-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # BiliCache2MP4 哔哩哔哩 BiliBili 视频缓存的\*.m4s 文件批量转换为.mp4 文件工具。 - [x] 支持同时将弹幕转换 - [x] 支持每个视频组一个文件夹 - [x] 支持旧 BLV 视频 - [x] 支持提取 NFO 信息 安卓内部儲存地址:`Android\data\tv.danmaku.bili\download` ## 下载 ## Windows(二进制文件) https://github.com/kaixinol/BiliCache2MP4/releases/ ## 类 Unix 系统 需要先行安裝`ffmpeg`,保證在環境變量裏。 ```bash pip install loguru curl_cffi curl -O -L https://github.com/m13253/danmaku2ass/raw/master/danmaku2ass.py curl -O -L https://github.com/kaixinol/BiliCache2MP4/raw/refs/heads/main/converter.py python converter.py 缓存文件夹 -o 释放文件夹 -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文件 ```