Skip to main content

CLI tool to encode/decode BMW NBT boot animation (.pdds) files

Project description

CustomNBT-Startup

Made with AI PyPI License: MIT

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

MIT

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

custom_nbt_startup-0.1.1.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

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

custom_nbt_startup-0.1.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

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

Hashes for custom_nbt_startup-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e6b4f088684e9b91816cc87448b7cd094aab248c72552752e4289dab6e1f773a
MD5 c01926a4e7e1ec0305eaf6ad190790a8
BLAKE2b-256 97b9920895c6ea6422d6702c2436d1e1901270271cb7edfba57cbfe8e21264ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for custom_nbt_startup-0.1.1.tar.gz:

Publisher: publish.yml on BimmerWest/CustomNBT-Startup

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

File details

Details for the file custom_nbt_startup-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for custom_nbt_startup-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3ac436be00c0efddfbc55bfd2655a3ae008b22b3767e42c59a1552c4ab6636fd
MD5 f554fcf37159c8d356baa62fd7764c68
BLAKE2b-256 c874ede3f839b5e9e76de2c1b5f8d07a0eaca19120cccf554009bb327b28018d

See more details on using hashes here.

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

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