Skip to main content

Python parser for MP4 boxes

Project description

pymp4

Build status License Python versions Coverage

Python MP4 box parser and toolkit based on the construct library.

Usage

>>> from pymp4.parser import Box
>>> from io import BytesIO

>>> Box.build(dict(
    type=b"ftyp",
    major_brand="iso5",
    minor_version=1,
    compatible_brands=["iso5", "avc1"]))
b'\x00\x00\x00\x18ftypiso5\x00\x00\x00\x01iso5avc1'

>>> ftyp = Box.parse(b'\x00\x00\x00\x18ftypiso5\x00\x00\x00\x01iso5avc1')
>>> print(ftyp)
Container:
    type = ftyp
    major_brand = iso5
    minor_version = 1
    compatible_brands = ListContainer:
        iso5
        avc1

Contributors

License

Apache License, Version 2.0

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

pymp4-1.4.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

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

pymp4-1.4.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file pymp4-1.4.0.tar.gz.

File metadata

  • Download URL: pymp4-1.4.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.8.16 Linux/5.15.0-1036-azure

File hashes

Hashes for pymp4-1.4.0.tar.gz
Algorithm Hash digest
SHA256 bc9e77732a8a143d34c38aa862a54180716246938e4bf3e07585d19252b77bb5
MD5 0fd3b6c174a44d6b974e4b144a7817a1
BLAKE2b-256 a546dfb3f5363fc71adaf419147fdcb93341029ca638634a5cc6f7e7446416b2

See more details on using hashes here.

File details

Details for the file pymp4-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: pymp4-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.8.16 Linux/5.15.0-1036-azure

File hashes

Hashes for pymp4-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3401666c1e2a97ac94dffb18c5a5dcbd46d0a436da5272d378a6f9f6506dd12d
MD5 87fad84be404535affcc36d479a0d2fb
BLAKE2b-256 aaa227fea39af627c0ce5dbf6108bf969ea8f5fc9376d29f11282a80e3426f1d

See more details on using hashes here.

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