Skip to main content

pyparsebluray

Parse and extract binary data from bluray files

Installation

pip install pyparsebluray

Example

Load a whole playlist file at once:

from pyparsebluray import mpls

playlist_file = mpls.load_mpls("/BD-ROM/BDMV/PLAYLIST/00001.mpls")

for play_item in playlist_file.playlist.play_items:
    print(play_item.clip_information_filename, play_item.intime, play_item.outtime)

for mark in playlist_file.playlist_marks.playlist_marks:
    print(mark.mark_timestamp)

load_mpls also accepts a binary file you have already opened.

Or load each part separately:

import os

from pyparsebluray import mpls

with open("/BD-ROM/BDMV/PLAYLIST/00001.mpls", "rb") as mpls_file:
    print("_____________Header_____________")
    header = mpls.load_movie_playlist(mpls_file)
    print(header)

    print("_____________AppInfo_____________")
    appinfo = mpls.load_app_info_playlist(mpls_file)
    print(appinfo)

    print("_____________Playlist_____________")
    mpls_file.seek(header.playlist_start_address, os.SEEK_SET)
    pls = mpls.load_playlist(mpls_file)
    print(pls)

    print("_____________Playlist Mark_____________")
    mpls_file.seek(header.playlist_mark_start_address, os.SEEK_SET)
    marks = mpls.load_playlist_mark(mpls_file)
    print(marks)

    print("_____________Extension_____________")
    if header.extension_data_start_address != 0:
        mpls_file.seek(header.extension_data_start_address, os.SEEK_SET)
        extension = mpls.load_extention_data(mpls_file)
        print(extension)

TODO

  • Add clpi, index table and movie object

Credits

Metadata

Release files for pyparsebluray 0.2.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 pyparsebluray 0.2.0
File Size Uploaded Provenance Actions
pyparsebluray-0.2.0.tar.gz 16.7 kB Without provenance Details for pyparsebluray-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 34.2 kB

Release files / pyparsebluray-0.2.0.tar.gz

Download URL pyparsebluray-0.2.0.tar.gz
Size 16.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a3cd59502a6a8c7e455d37961f5f50f3817ceab4520dee8538343d0035e7eb0e
BLAKE2b-256 checksum
How to use checksums
0bcd6e5b972ccc111e6741fca54e67cf42865631065da376b0db1a24ccec7102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.11 {"installer":{"name":"uv","version":"0.13.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pyparsebluray-0.2.0-py3-none-any.whl

Download URL pyparsebluray-0.2.0-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
baa5f7589e794e97145c171f532fec2286cc0356adc5344a0f02483809f2cfb4
BLAKE2b-256 checksum
How to use checksums
2651e15658d525b3a2f65d50e820f261d49e691cca0f588c6f1f8da1923ecdcd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.11 {"installer":{"name":"uv","version":"0.13.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for pyparsebluray 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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