Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bv_converter-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bv_converter-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for bv_converter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 670bd51fcc8a747444c5d2b1c7015fb55c8dba0a3f4f14e026379ed19f06ea14
MD5 3d328dd360b97e33f6e77e4f1c5b2a41
BLAKE2b-256 5f0e5694341b23c4cc1cdacfb41f177bf1a015706e740db3c987230336db92c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for bv_converter-0.1.0.tar.gz:

Publisher: pypi.yml on Bardreamaster/bv_converter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for bv_converter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e50df722b91266c785172e4892ca4737bde6c29f13be5067c6ab98ed54c5078c
MD5 91b9d37125ab5806355c22243d74f0f4
BLAKE2b-256 599fa8200fdd2cada9c6b61365e2d8d142033c2e5119a16dfd94f2aa5f4e0a73

See more details on using hashes here.

Provenance

The following attestation bundles were made for bv_converter-0.1.0-py3-none-any.whl:

Publisher: pypi.yml on Bardreamaster/bv_converter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page