Skip to main content

udfkit

udfkit

Write DVD-Video and Blu-ray disc images in pure Python: no external programs, no root, no dependencies beyond the standard library.

  • DVD-Video (udfkit.dvd): UDF 1.02 + ISO 9660 "bridge", the file systems DVD players and libdvdread (VLC, mpv) read. The VIDEO_TS files are placed where their IFO files say they start, as genisoimage -dvd-video -udf does, and the image comes out the same size with the same sector map.
  • Blu-ray (udfkit.bluray): UDF 2.50 with a metadata partition, as BD-ROM discs use and libbluray (through libudfread) reads.
  • Volume names (udfkit.info): the ISO 9660 and UDF names of an image.

Images are deterministic: the same files and date give the same bytes.

日本語の説明は README.ja.md にあります。

Why

Python's ISO library (pycdlib) writes UDF 2.60 only. DVD players expect UDF 1.02, and Blu-ray discs use 2.50. The other ways to make such images are:

  • old command-line tools (mkisofs / genisoimage);
  • macOS's own hdiutil;
  • tools that need a mounted file system and root (udftools).

udfkit runs anywhere Python runs.

Install

pip install udfkit

A release is made by the version: when the version in pyproject.toml (and udfkit/__init__.py) reaches main without a tag of its own, .github/workflows/release.yml runs the tests, builds the package, makes the GitHub release with its tag and publishes to PyPI (trusted publishing, environment pypi). Merging the version bump is all it takes.

Use

udfkit dvd    path/to/disc  disc.iso --label MY_DISC   # disc/ holds VIDEO_TS (and AUDIO_TS, extras)
udfkit bluray path/to/bd    bd.iso   --label MY_BD     # bd/ holds BDMV
udfkit info   disc.iso
from udfkit import dvd, bluray

stats = dvd.write_image("disc", "disc.iso", "MY_DISC")
print(stats["bytes"], stats["extents"]["/VIDEO_TS/VTS_01_1.VOB"])   # (first sector, size)

bluray.write_image("bd", "bd.iso", "MY_BD")

dvd.write_image(..., shift=n) puts n empty sectors before VIDEO_TS. It is used to put a dual-layer disc's layer break on an ECC block (16 sectors).

Tests

python -m unittest discover -s tests -t .

The tests read every structure back with their own reader, independent of the writer: every descriptor tag, checksum and CRC, and the UDF and ISO 9660 directories. When these tools are installed, the tests also check:

  • isoinfo lists and extracts the files of a DVD image;
  • libudfread (the reader libbluray uses) reads every file of a Blu-ray image back;
  • ffmpeg + dvdauthor + genisoimage: a real VIDEO_TS gives the same image size and sector map as genisoimage -dvd-video -udf.

udfkit was first written for oncemore, a DVD and Blu-ray authoring app. There its images are played back with libdvdnav and libbluray on every change.

Support

udfkit is free and stays free. If it saves you time, you can support its development through GitHub Sponsors (the Sponsor button at the top of this repository). Bug reports help just as much: Issues.

The logo, colours and writing rules: docs/DESIGN.md.

License

Apache License 2.0. See LICENSE and NOTICE.

Metadata

Release files for udfkit 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for udfkit 0.1.0
File Size Uploaded Provenance Actions
udfkit-0.1.0.tar.gz 39.2 kB With provenance Details for udfkit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for udfkit 0.1.0
File Interpreter ABI Platform Actions
udfkit-0.1.0-py3-none-any.whl Python 3 none any Details for udfkit-0.1.0-py3-none-any.whl

Total release size: 69.7 kB

Release files / udfkit-0.1.0.tar.gz

Download URL udfkit-0.1.0.tar.gz
Size 39.2 kB
Tags Source
SHA-256 checksum
How to use checksums
335f41cb62d8d7abb042d66eb42b7720a66d06b3d2c509f9fc3e24d2ed8f0c1a
BLAKE2b-256 checksum
How to use checksums
e9546839ff4b0384f81f36a5e867c11a5ee108547a0e2034bb9d5d292f2ec6b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 11, 2026.

Transparency log

Release files / udfkit-0.1.0-py3-none-any.whl

Download URL udfkit-0.1.0-py3-none-any.whl
Size 30.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e0d92f18f98aa1eb9574f295d3e6b48c2493222c10d7be5c8f7619fccde0c6ad
BLAKE2b-256 checksum
How to use checksums
17f408417c47400d25e1d672ebcb5b38e94090452eabd329ddd0327939eed59d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 11, 2026.

Transparency log

Security for udfkit 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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for udfkit-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 Oct 11, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page