pym
pymp4
pypi i pymp4
pym

pymp4

A Python MP4 Parser and toolkit

by beardypig

1.2.0 (see all)License:Apache 2.0
pypi i pymp4
Readme

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

VersionTagPublished
1.2.0
3yrs ago
1.1.0
5yrs ago
1.0.2
6yrs ago
1.0.1
6yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate