Skip to main content

Python parser for MP4 boxes

Project description

pymp4x

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

pymp4x-2.1.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

pymp4x-2.1.0-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file pymp4x-2.1.0.tar.gz.

File metadata

  • Download URL: pymp4x-2.1.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.8.18 Linux/6.2.0-1018-azure

File hashes

Hashes for pymp4x-2.1.0.tar.gz
Algorithm Hash digest
SHA256 447496e4becefddaffd42c31da9e13d55e623b244a5a9aa603921a257f703134
MD5 f91ae3045af70a5a68c4694455515850
BLAKE2b-256 80d49d681720a2edc11ca0e9ba27cb43e473acceef8dbe16092ee672146507b2

See more details on using hashes here.

File details

Details for the file pymp4x-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: pymp4x-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.8.18 Linux/6.2.0-1018-azure

File hashes

Hashes for pymp4x-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e46e796d11bf2f14a441060ba86b3910ba062874464d34cb74d897140659204
MD5 9f87c8b3a6a5fceaadc74ccd58ab05b3
BLAKE2b-256 7c7c366c9786b72d4703a8d14d60888fb47c9cc54b8e21ef75ba362d32c87032

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