bv_converter
将B站缓存中的 .m4s 文件转换为 .mp4 格式,并导出到指定目录。
功能特性
- 自动递归搜索缓存目录中的所有视频
- 智能识别音频和视频流并合并
- 从
videoInfo.json提取视频标题和 BVID
安装
前置依赖
确保已安装 FFmpeg:
# macOS
brew install ffmpeg
# Ubuntu/Debian
sudo apt install ffmpeg
使用 pip 安装
pip install bv-converter
从源码安装
git clone https://github.com/jinqi/bv_converter.git
cd bv_converter
python3 -m pip install -e .
使用方法
bv_converter <cache_dir> <export_dir>
参数说明
cache_dir: B 站缓存根目录路径export_dir: 导出 MP4 文件的目标目录
示例
# macOS/Linux
bv_converter ~/Movies/bilibili ~/Movies/bilibili/output
Metadata
Release files for bv-converter 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bv_converter-0.1.0.tar.gz | 3.8 kB | With provenance | Details for bv_converter-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bv_converter-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for bv_converter-0.1.0-py3-none-any.whl |
Total release size: 8.0 kB
Release files / bv_converter-0.1.0.tar.gz
| Download URL | bv_converter-0.1.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
670bd51fcc8a747444c5d2b1c7015fb55c8dba0a3f4f14e026379ed19f06ea14
|
|
BLAKE2b-256 checksum How to use checksums |
5f0e5694341b23c4cc1cdacfb41f177bf1a015706e740db3c987230336db92c4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 23, 2026.
Transparency logRelease files / bv_converter-0.1.0-py3-none-any.whl
| Download URL | bv_converter-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e50df722b91266c785172e4892ca4737bde6c29f13be5067c6ab98ed54c5078c
|
|
BLAKE2b-256 checksum How to use checksums |
599fa8200fdd2cada9c6b61365e2d8d142033c2e5119a16dfd94f2aa5f4e0a73
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 23, 2026.
Transparency logSecurity for bv-converter 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for bv_converter-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 23, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.