Skip to main content

A Python parser for MP4 boxes

Reason this release was yanked:

1.5.0 was an incorrect version bump based on TrueDread's fork. v1.4.0 is the next release after, even though it's a lower version. v1.4.0 should be used instead.

Project description

pymp4

Python MP4 box parser and toolkit

Usage

pymp4 is based on the excellent parsing library construct.

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

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

rlaphoenix_pymp4-1.5.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

rlaphoenix_pymp4-1.5.0-py2.py3-none-any.whl (14.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file rlaphoenix_pymp4-1.5.0.tar.gz.

File metadata

  • Download URL: rlaphoenix_pymp4-1.5.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.10 Windows/10

File hashes

Hashes for rlaphoenix_pymp4-1.5.0.tar.gz
Algorithm Hash digest
SHA256 6aaa85a0503c22f8acb0ea1b334c6ad69c3f0591e78520453b0404648d5629f6
MD5 0fe03b5c0939e50e58d3953ab81157c9
BLAKE2b-256 c00648e41d2f683344ddae9eace03da1853c535ece50201a5e6b33152efc8361

See more details on using hashes here.

File details

Details for the file rlaphoenix_pymp4-1.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for rlaphoenix_pymp4-1.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2309389dd6087519a1eed8b148d586b5d7f12c9210c8f588b0aa623827d75d35
MD5 a9f8ea3f290ae2b474ccf580aaa8ff42
BLAKE2b-256 86e76c2f59185fb62e02131ebf1c3a8a42b335f38ae40420d7074d4d33f40ff0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page