Convert Bilibili cached .m4s files to .mp4 format
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bv_converter-0.1.0.tar.gz.
File metadata
- Download URL: bv_converter-0.1.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
670bd51fcc8a747444c5d2b1c7015fb55c8dba0a3f4f14e026379ed19f06ea14
|
|
| MD5 |
3d328dd360b97e33f6e77e4f1c5b2a41
|
|
| BLAKE2b-256 |
5f0e5694341b23c4cc1cdacfb41f177bf1a015706e740db3c987230336db92c4
|
Provenance
The following attestation bundles were made for bv_converter-0.1.0.tar.gz:
Publisher:
pypi.yml on Bardreamaster/bv_converter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bv_converter-0.1.0.tar.gz -
Subject digest:
670bd51fcc8a747444c5d2b1c7015fb55c8dba0a3f4f14e026379ed19f06ea14 - Sigstore transparency entry: 982779051
- Sigstore integration time:
-
Permalink:
Bardreamaster/bv_converter@19c6de1a7984babe4b3d8187d8652f9e85bb8e61 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Bardreamaster
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@19c6de1a7984babe4b3d8187d8652f9e85bb8e61 -
Trigger Event:
push
-
Statement type:
File details
Details for the file bv_converter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: bv_converter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e50df722b91266c785172e4892ca4737bde6c29f13be5067c6ab98ed54c5078c
|
|
| MD5 |
91b9d37125ab5806355c22243d74f0f4
|
|
| BLAKE2b-256 |
599fa8200fdd2cada9c6b61365e2d8d142033c2e5119a16dfd94f2aa5f4e0a73
|
Provenance
The following attestation bundles were made for bv_converter-0.1.0-py3-none-any.whl:
Publisher:
pypi.yml on Bardreamaster/bv_converter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
bv_converter-0.1.0-py3-none-any.whl -
Subject digest:
e50df722b91266c785172e4892ca4737bde6c29f13be5067c6ab98ed54c5078c - Sigstore transparency entry: 982779068
- Sigstore integration time:
-
Permalink:
Bardreamaster/bv_converter@19c6de1a7984babe4b3d8187d8652f9e85bb8e61 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/Bardreamaster
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@19c6de1a7984babe4b3d8187d8652f9e85bb8e61 -
Trigger Event:
push
-
Statement type: