CLI tool to encode/decode BMW NBT boot animation (.pdds) files
Project description
CustomNBT-Startup
CLI tool to encode custom boot animations for BMW NBT head units.
Converts MP4 videos into the .pdds format used by the NBT system for startup animations.
Requirements
- Python 3.11+
- uv (recommended)
- LZO compression library (system dependency)
Installing LZO
# macOS
brew install lzo
# Debian/Ubuntu
sudo apt install liblzo2-dev
On macOS you need to export the paths so python-lzo can find the headers:
export C_INCLUDE_PATH=$(brew --prefix lzo)/include
export LIBRARY_PATH=$(brew --prefix lzo)/lib
You can add these to your shell profile to make them permanent.
Installation
# Install from PyPI
pip install custom-nbt-startup
# Or with uv
uv pip install custom-nbt-startup
# Or install from source
uv pip install .
Quick Start
# One-liner with uvx (no install needed)
uvx --from custom-nbt-startup nbt-startup encode video.mp4
Usage
# Basic usage — outputs <video_name>.pdds
nbt-startup encode video.mp4
# Custom output path
nbt-startup encode video.mp4 -o boot_animation.pdds
# Custom frame count (default: 150)
nbt-startup encode video.mp4 -n 200
# Custom resolution
nbt-startup encode video.mp4 -W 800 -H 480
Running without installing
# Via uvx (uses the published PyPI package)
uvx --from custom-nbt-startup nbt-startup encode video.mp4
# Via uv run (from a cloned repo)
uv run nbt-startup encode video.mp4
Options
| Option | Description |
|---|---|
-o, --output |
Output .pdds file path (default: <input_stem>.pdds) |
-n, --frames |
Number of frames to extract (default: 150) |
-W, --width |
Frame width in pixels (default: 1280, must be multiple of 4) |
-H, --height |
Frame height in pixels (default: 480, must be multiple of 4) |
--version |
Show version |
--help |
Show help |
License
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 custom_nbt_startup-0.1.1.tar.gz.
File metadata
- Download URL: custom_nbt_startup-0.1.1.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6b4f088684e9b91816cc87448b7cd094aab248c72552752e4289dab6e1f773a
|
|
| MD5 |
c01926a4e7e1ec0305eaf6ad190790a8
|
|
| BLAKE2b-256 |
97b9920895c6ea6422d6702c2436d1e1901270271cb7edfba57cbfe8e21264ca
|
Provenance
The following attestation bundles were made for custom_nbt_startup-0.1.1.tar.gz:
Publisher:
publish.yml on BimmerWest/CustomNBT-Startup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
custom_nbt_startup-0.1.1.tar.gz -
Subject digest:
e6b4f088684e9b91816cc87448b7cd094aab248c72552752e4289dab6e1f773a - Sigstore transparency entry: 1206600282
- Sigstore integration time:
-
Permalink:
BimmerWest/CustomNBT-Startup@ddb20fce91b926d6b9fac7ab052de0bace149653 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/BimmerWest
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ddb20fce91b926d6b9fac7ab052de0bace149653 -
Trigger Event:
release
-
Statement type:
File details
Details for the file custom_nbt_startup-0.1.1-py3-none-any.whl.
File metadata
- Download URL: custom_nbt_startup-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.7 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 |
3ac436be00c0efddfbc55bfd2655a3ae008b22b3767e42c59a1552c4ab6636fd
|
|
| MD5 |
f554fcf37159c8d356baa62fd7764c68
|
|
| BLAKE2b-256 |
c874ede3f839b5e9e76de2c1b5f8d07a0eaca19120cccf554009bb327b28018d
|
Provenance
The following attestation bundles were made for custom_nbt_startup-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on BimmerWest/CustomNBT-Startup
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
custom_nbt_startup-0.1.1-py3-none-any.whl -
Subject digest:
3ac436be00c0efddfbc55bfd2655a3ae008b22b3767e42c59a1552c4ab6636fd - Sigstore transparency entry: 1206600294
- Sigstore integration time:
-
Permalink:
BimmerWest/CustomNBT-Startup@ddb20fce91b926d6b9fac7ab052de0bace149653 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/BimmerWest
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ddb20fce91b926d6b9fac7ab052de0bace149653 -
Trigger Event:
release
-
Statement type: